X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fsoap.h;h=79264f62f84a8a770b41657bdad075b781d02211;hb=a4500a53ecbff46db730bcaa8703d2c9a0e6328b;hp=9c60462bedf18d9572918749f39f7c4d1f2748ac;hpb=c620a713f1418315efcd4e6fab225e036775d365;p=yaz-moved-to-github.git diff --git a/include/yaz/soap.h b/include/yaz/soap.h index 9c60462..79264f6 100644 --- a/include/yaz/soap.h +++ b/include/yaz/soap.h @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: soap.h,v 1.1 2003-02-12 15:06:43 adam Exp $ + * $Id: soap.h,v 1.4 2003-03-24 22:26:50 adam Exp $ */ #ifndef YAZ_SOAP_H @@ -10,11 +10,6 @@ #include -#if HAVE_XSLT -#include -#include -#endif - typedef struct { char *fault_code; char *fault_string; @@ -40,15 +35,23 @@ typedef struct { const char *ns; } Z_SOAP; +typedef int (*Z_SOAP_fun)(ODR o, void * ptr, void **handler_data, + void *client_data, const char *ns); typedef struct { char *ns; void *client_data; - int (*f)(ODR o, xmlNodePtr ptr, void **handler_data, - void *client_data, const char *ns); + Z_SOAP_fun f; } Z_SOAP_Handler; YAZ_EXPORT int z_soap_codec(ODR o, Z_SOAP **pp, char **content_buf, int *content_len, Z_SOAP_Handler *handlers); +YAZ_EXPORT int z_soap_codec_enc(ODR o, Z_SOAP **pp, + char **content_buf, int *content_len, + Z_SOAP_Handler *handlers, const char *encoding); + +YAZ_EXPORT int z_soap_error(ODR o, Z_SOAP *p, + const char *fault_code, const char *fault_string, + const char *details); #endif