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
SRW record retrieval works for ZOOM
[yaz-moved-to-github.git]
/
zutil
/
soap.c
diff --git
a/zutil/soap.c
b/zutil/soap.c
index
a19fc57
..
157533c
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.2 2003-02-14 18:49:24 adam Exp $
+ * $Id: soap.c,v 1.3 2003-02-17 14:35:42 adam Exp $
*/
#include <yaz/soap.h>
*/
#include <yaz/soap.h>
@@
-54,7
+54,7
@@
int z_soap_codec(ODR o, Z_SOAP **pp,
/* check that root node is Envelope */
ptr = xmlDocGetRootElement(doc);
if (!ptr || ptr->type != XML_ELEMENT_NODE ||
/* check that root node is Envelope */
ptr = xmlDocGetRootElement(doc);
if (!ptr || ptr->type != XML_ELEMENT_NODE ||
- strcmp(ptr->name, "Envelope"))
+ strcmp(ptr->name, "Envelope") || !ptr->ns)
{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
{
xmlFreeDoc(doc);
return z_soap_error(o, p, "SOAP-ENV:Client",
@@
-183,6
+183,8
@@
int z_soap_codec(ODR o, Z_SOAP **pp,
envelope_ptr = xmlNewNode(0, "Envelope");
ns_env = xmlNewNs(envelope_ptr, p->ns, "SOAP-ENV");
envelope_ptr = xmlNewNode(0, "Envelope");
ns_env = xmlNewNs(envelope_ptr, p->ns, "SOAP-ENV");
+ xmlSetNs(envelope_ptr, ns_env);
+
body_ptr = xmlNewChild(envelope_ptr, ns_env, "Body", 0);
xmlDocSetRootElement(doc, envelope_ptr);
body_ptr = xmlNewChild(envelope_ptr, ns_env, "Body", 0);
xmlDocSetRootElement(doc, envelope_ptr);