projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set smallSetElementSetName always in piggyback mode
[yaz-moved-to-github.git]
/
zutil
/
soap.c
diff --git
a/zutil/soap.c
b/zutil/soap.c
index
0b34cdb
..
2fbbc17
100644
(file)
--- a/
zutil/soap.c
+++ b/
zutil/soap.c
@@
-2,7
+2,7
@@
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
* 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.9 2003-04-23 20:36:05 adam Exp $
*/
#include <yaz/soap.h>
*/
#include <yaz/soap.h>
@@
-30,13
+30,6
@@
int z_soap_error(ODR o, Z_SOAP *p,
return -1;
}
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,
int z_soap_codec_enc(ODR o, Z_SOAP **pp,
char **content_buf, int *content_len,
Z_SOAP_Handler *handlers,
@@
-236,11
+229,11
@@
int z_soap_codec_enc(ODR o, Z_SOAP **pp,
return 0;
}
#else
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"
"<?xml version=\"1.0\"?>\n"
"<SOAP-ENV:Envelope"
" xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n"
@@
-260,3
+253,10
@@
int z_soap_codec(ODR o, Z_SOAP **pp,
return -1;
}
#endif
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);
+}
+