2 * Copyright (c) 2002-2004, Index Data.
3 * See the file LICENSE for details.
5 * $Id: soap.h,v 1.8 2004-10-15 00:18:59 adam Exp $
9 * \brief Header for SOAP
31 #define Z_SOAP_fault 1
32 #define Z_SOAP_generic 2
33 #define Z_SOAP_error 3
38 Z_SOAP_Generic *generic;
39 Z_SOAP_Fault *soap_error;
44 typedef int (*Z_SOAP_fun)(ODR o, void * ptr, void **handler_data,
45 void *client_data, const char *ns);
52 YAZ_EXPORT int z_soap_codec(ODR o, Z_SOAP **pp,
53 char **content_buf, int *content_len,
54 Z_SOAP_Handler *handlers);
55 YAZ_EXPORT int z_soap_codec_enc(ODR o, Z_SOAP **pp,
56 char **content_buf, int *content_len,
57 Z_SOAP_Handler *handlers,
58 const char *encoding);
59 YAZ_EXPORT int z_soap_codec_enc_xsl(ODR o, Z_SOAP **pp,
60 char **content_buf, int *content_len,
61 Z_SOAP_Handler *handlers,
63 const char *stylesheet);
65 YAZ_EXPORT int z_soap_error(ODR o, Z_SOAP *p,
66 const char *fault_code, const char *fault_string,