added code to soup_soap_response_from_string to ignore header element
authorHarish Krishnaswamy <kharish@src.gnome.org>
Fri, 9 Jan 2004 16:05:57 +0000 (16:05 +0000)
committerHarish Krishnaswamy <kharish@src.gnome.org>
Fri, 9 Jan 2004 16:05:57 +0000 (16:05 +0000)
while forming response objects, if they are present.

libsoup/soup-soap-response.c

index 478f539..a537a6c 100644 (file)
@@ -174,6 +174,8 @@ soup_soap_response_from_string (SoupSoapResponse *response, const char *xmlstr)
 
        if (xml_root->xmlChildrenNode != NULL) {
                xml_body = xml_root->xmlChildrenNode;
+               if (strcmp (xml_body->name, "Header") == 0)
+                       xml_body = xml_root->xmlChildrenNode->next;
                if (strcmp (xml_body->name, "Body") != 0) {
                        xmlFreeDoc (response->priv->xmldoc);
                        response->priv->xmldoc = old_doc;