* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.151 2003-03-24 22:26:50 adam Exp $
+ * $Id: seshigh.c,v 1.152 2003-03-25 09:55:11 adam Exp $
*/
/*
memcpy (db, p0, p1 - p0);
db[p1 - p0] = '\0';
}
+#if HAVE_XML2
if (p1 && *p1 == '?' && p1[1])
{
Z_SRW_PDU *res = yaz_srw_get(o, Z_SRW_searchRetrieve_response);
}
}
}
+#endif
#ifdef DOCDIR
if (strlen(hreq->path) >= 5 && strlen(hreq->path) < 80 &&
!memcmp(hreq->path, "/doc/", 5))
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: soap.c,v 1.7 2003-03-18 13:34:37 adam Exp $
+ * $Id: soap.c,v 1.8 2003-03-25 09:55:12 adam Exp $
*/
#include <yaz/soap.h>
return -1;
}
-int z_soap_codec(ODR o, Z_SOAP **pp,
- char **content_buf, int *content_len,
- Z_SOAP_Handler *handlers)
-{
- return z_soap_codec_enc(o, pp, content_buf, content_len, handlers, 0);
-}
-
int z_soap_codec_enc(ODR o, Z_SOAP **pp,
char **content_buf, int *content_len,
Z_SOAP_Handler *handlers,
return 0;
}
#else
-int z_soap_codec(ODR o, Z_SOAP **pp,
- char **content_buf, int *content_len,
- Z_SOAP_Handler *handlers)
+int z_soap_codec_enc(ODR o, Z_SOAP **pp,
+ char **content_buf, int *content_len,
+ Z_SOAP_Handler *handlers, const char *encoding)
{
- const char *err_xml =
+ static char *err_xml =
"<?xml version=\"1.0\"?>\n"
"<SOAP-ENV:Envelope"
" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
return -1;
}
#endif
+int z_soap_codec(ODR o, Z_SOAP **pp,
+ char **content_buf, int *content_len,
+ Z_SOAP_Handler *handlers)
+{
+ return z_soap_codec_enc(o, pp, content_buf, content_len, handlers, 0);
+}
+