Commit 7d0baa8ae03 for php

commit 7d0baa8ae035620eee1b1f6187b3668cbfa3ac62
Author: Jakub Zelenka <bukka@php.net>
Date:   Thu Nov 19 18:32:40 2026 +0100

    ext/soap: fix DTD node being matched as an element

    The DTD node kept by the GHSA-4646-p932-gw34 fix is named after the
    DOCTYPE, so lookups for definitions, schema or Envelope could return it.
    Typemap to_xml() output with a DOCTYPE or PI before the root is now
    handled as well.

    Fixes GH-25628
    Closes GH-25605

    Co-authored-by: ndossche <7771979+ndossche@users.noreply.github.com>

diff --git a/NEWS b/NEWS
index c01a3436660..5b8579cfdd2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? ????, PHP 8.2.37

+- SOAP:
+  . Fixed bug GH-25628 (SOAP crashes when importing the XMLDSIG schema).
+    (Jakub Zelenka, ndossche)

 19 Nov 2026, PHP 8.2.36

diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index 32ba6c7524f..8fbfc03487d 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -609,8 +609,12 @@ xmlNodePtr to_xml_user(encodeTypePtr type, zval *data, int style, xmlNodePtr par
 		}
 		if (Z_TYPE(return_value) == IS_STRING) {
 			xmlDocPtr doc = soap_xmlParseMemory(Z_STRVAL(return_value), Z_STRLEN(return_value));
-			if (doc && doc->children) {
-				ret = xmlDocCopyNode(doc->children, parent->doc, 1);
+			if (doc) {
+				/* Skip a DOCTYPE or processing instruction before the root. */
+				xmlNodePtr root = xmlDocGetRootElement(doc);
+				if (root) {
+					ret = xmlDocCopyNode(root, parent->doc, 1);
+				}
 			}
 			xmlFreeDoc(doc);
 		}
diff --git a/ext/soap/php_xml.c b/ext/soap/php_xml.c
index a692ba8dcdc..1e4cc4a2377 100644
--- a/ext/soap/php_xml.c
+++ b/ext/soap/php_xml.c
@@ -276,6 +276,10 @@ int attr_is_equal_ex(xmlAttrPtr node, char *name, char *ns)

 int node_is_equal_ex(xmlNodePtr node, char *name, char *ns)
 {
+	/* A DTD node can carry the same name but is not an xmlNode. */
+	if (node->type != XML_ELEMENT_NODE) {
+		return FALSE;
+	}
 	if (name == NULL || ((node->name) && strcmp((char*)node->name, name) == 0)) {
 		if (ns) {
 			xmlNsPtr nsPtr = node_find_ns(node);
@@ -339,6 +343,9 @@ xmlNodePtr get_node_with_attribute_ex(xmlNodePtr node, char *name, char *name_ns
 			if (node==NULL) {
 				return NULL;
 			}
+		} else if (node->type != XML_ELEMENT_NODE) {
+			node = node->next;
+			continue;
 		}

 		attr = get_attribute_ex(node->properties, attribute, attr_ns);
diff --git a/ext/soap/tests/dtd_named_like_root_request.phpt b/ext/soap/tests/dtd_named_like_root_request.phpt
new file mode 100644
index 00000000000..9078c028baa
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_request.phpt
@@ -0,0 +1,27 @@
+--TEST--
+SOAP: DOCTYPE named like the envelope is not taken for it when rejecting a request
+--EXTENSIONS--
+soap
+--FILE--
+<?php
+function test($x) {
+    return $x;
+}
+
+$request = <<<XML
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Envelope [<!NOTATION n SYSTEM "x">]>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="urn:test">
+  <env:Body>
+    <ns1:test><param0>x</param0></ns1:test>
+  </env:Body>
+</env:Envelope>
+XML;
+
+$server = new SoapServer(null, ['uri' => 'urn:test']);
+$server->addFunction('test');
+$server->handle($request);
+?>
+--EXPECT--
+<?xml version="1.0" encoding="UTF-8"?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:Code><env:Reason><env:Text>DTD are not supported by SOAP</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
diff --git a/ext/soap/tests/dtd_named_like_root_request_input.phpt b/ext/soap/tests/dtd_named_like_root_request_input.phpt
new file mode 100644
index 00000000000..579f5cf5f17
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_request_input.phpt
@@ -0,0 +1,25 @@
+--TEST--
+SOAP: DOCTYPE named like the envelope is not taken for it when rejecting a posted request
+--POST--
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Envelope [<!NOTATION n SYSTEM "x">]>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:test">
+  <SOAP-ENV:Body>
+    <ns1:test><param0>x</param0></ns1:test>
+  </SOAP-ENV:Body>
+</SOAP-ENV:Envelope>
+--EXTENSIONS--
+soap
+--FILE--
+<?php
+function test($x) {
+    return $x;
+}
+
+$server = new SoapServer(null, ['uri' => 'urn:test']);
+$server->addFunction('test');
+$server->handle();
+?>
+--EXPECT--
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>DTD are not supported by SOAP</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
diff --git a/ext/soap/tests/dtd_named_like_root_schema.phpt b/ext/soap/tests/dtd_named_like_root_schema.phpt
new file mode 100644
index 00000000000..930f3aa4367
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_schema.phpt
@@ -0,0 +1,22 @@
+--TEST--
+SOAP: DOCTYPE named like the schema root element is not taken for it
+--EXTENSIONS--
+soap
+--INI--
+soap.wsdl_cache_enabled=0
+--FILE--
+<?php
+$client = new SoapClient(__DIR__ . '/dtd_named_like_root_schema.wsdl');
+var_dump($client->__getTypes());
+?>
+--EXPECT--
+array(2) {
+  [0]=>
+  string(30) "struct Imported {
+ string a;
+}"
+  [1]=>
+  string(30) "struct Included {
+ string b;
+}"
+}
diff --git a/ext/soap/tests/dtd_named_like_root_schema.wsdl b/ext/soap/tests/dtd_named_like_root_schema.wsdl
new file mode 100644
index 00000000000..be8c462cd9e
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_schema.wsdl
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+             xmlns:tns="urn:test"
+             targetNamespace="urn:test"
+             name="Test">
+  <types>
+    <xsd:schema targetNamespace="urn:test">
+      <xsd:import namespace="urn:imported" schemaLocation="dtd_named_like_root_schema_import.xsd"/>
+      <xsd:include schemaLocation="dtd_named_like_root_schema_include.xsd"/>
+    </xsd:schema>
+  </types>
+  <message name="echoRequest"><part name="p" type="tns:Included"/></message>
+  <message name="echoResponse"><part name="r" type="tns:Included"/></message>
+  <portType name="TestPort">
+    <operation name="echo">
+      <input message="tns:echoRequest"/>
+      <output message="tns:echoResponse"/>
+    </operation>
+  </portType>
+  <binding name="TestBinding" type="tns:TestPort">
+    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction="urn:test#echo"/>
+      <input><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
+      <output><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
+    </operation>
+  </binding>
+  <service name="TestService">
+    <port name="TestPort" binding="tns:TestBinding">
+      <soap:address location="http://localhost/test"/>
+    </port>
+  </service>
+</definitions>
diff --git a/ext/soap/tests/dtd_named_like_root_schema_import.xsd b/ext/soap/tests/dtd_named_like_root_schema_import.xsd
new file mode 100644
index 00000000000..23291a1985c
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_schema_import.xsd
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Same DOCTYPE shape as the W3C xmldsig-core-schema.xsd -->
+<!DOCTYPE schema
+  PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
+ [
+   <!ATTLIST schema
+     xmlns:im CDATA #FIXED "urn:imported">
+   <!ENTITY im 'urn:imported'>
+   <!ENTITY % p ''>
+   <!ENTITY % s ''>
+  ]>
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:im="urn:imported"
+        targetNamespace="urn:imported">
+  <complexType name="Imported">
+    <sequence>
+      <element name="a" type="string"/>
+    </sequence>
+  </complexType>
+</schema>
diff --git a/ext/soap/tests/dtd_named_like_root_schema_include.xsd b/ext/soap/tests/dtd_named_like_root_schema_include.xsd
new file mode 100644
index 00000000000..faefc880324
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_schema_include.xsd
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+        targetNamespace="urn:test">
+  <complexType name="Included">
+    <sequence>
+      <element name="b" type="string"/>
+    </sequence>
+  </complexType>
+</schema>
diff --git a/ext/soap/tests/dtd_named_like_root_wsdl.phpt b/ext/soap/tests/dtd_named_like_root_wsdl.phpt
new file mode 100644
index 00000000000..61a57a63a59
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_wsdl.phpt
@@ -0,0 +1,16 @@
+--TEST--
+SOAP: DOCTYPE named like the WSDL root element is not taken for it
+--EXTENSIONS--
+soap
+--INI--
+soap.wsdl_cache_enabled=0
+--FILE--
+<?php
+$client = new SoapClient(__DIR__ . '/dtd_named_like_root_wsdl.wsdl');
+var_dump($client->__getFunctions());
+?>
+--EXPECT--
+array(1) {
+  [0]=>
+  string(22) "string echo(string $p)"
+}
diff --git a/ext/soap/tests/dtd_named_like_root_wsdl.wsdl b/ext/soap/tests/dtd_named_like_root_wsdl.wsdl
new file mode 100644
index 00000000000..16430f4c5bf
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_wsdl.wsdl
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE definitions [<!NOTATION n SYSTEM "x">]>
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+             xmlns:tns="urn:test"
+             targetNamespace="urn:test"
+             name="Test">
+  <message name="echoRequest"><part name="p" type="xsd:string"/></message>
+  <message name="echoResponse"><part name="r" type="xsd:string"/></message>
+  <portType name="TestPort">
+    <operation name="echo">
+      <input message="tns:echoRequest"/>
+      <output message="tns:echoResponse"/>
+    </operation>
+  </portType>
+  <binding name="TestBinding" type="tns:TestPort">
+    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction="urn:test#echo"/>
+      <input><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
+      <output><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
+    </operation>
+  </binding>
+  <service name="TestService">
+    <port name="TestPort" binding="tns:TestBinding">
+      <soap:address location="http://localhost/test"/>
+    </port>
+  </service>
+</definitions>
diff --git a/ext/soap/tests/dtd_named_like_root_wsdl_import.phpt b/ext/soap/tests/dtd_named_like_root_wsdl_import.phpt
new file mode 100644
index 00000000000..898efae353d
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_wsdl_import.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SOAP: DOCTYPE named like the schema root element is not taken for it in a WSDL import
+--EXTENSIONS--
+soap
+--INI--
+soap.wsdl_cache_enabled=0
+--FILE--
+<?php
+$client = new SoapClient(__DIR__ . '/dtd_named_like_root_wsdl_import.wsdl');
+var_dump($client->__getTypes());
+?>
+--EXPECT--
+array(1) {
+  [0]=>
+  string(30) "struct Imported {
+ string a;
+}"
+}
diff --git a/ext/soap/tests/dtd_named_like_root_wsdl_import.wsdl b/ext/soap/tests/dtd_named_like_root_wsdl_import.wsdl
new file mode 100644
index 00000000000..a140437e930
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_wsdl_import.wsdl
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
+             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+             xmlns:im="urn:imported"
+             xmlns:tns="urn:test"
+             targetNamespace="urn:test"
+             name="Test">
+  <import namespace="urn:imported" location="dtd_named_like_root_wsdl_import.xsd"/>
+  <message name="echoRequest"><part name="p" type="im:Imported"/></message>
+  <message name="echoResponse"><part name="r" type="im:Imported"/></message>
+  <portType name="TestPort">
+    <operation name="echo">
+      <input message="tns:echoRequest"/>
+      <output message="tns:echoResponse"/>
+    </operation>
+  </portType>
+  <binding name="TestBinding" type="tns:TestPort">
+    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <operation name="echo">
+      <soap:operation soapAction="urn:test#echo"/>
+      <input><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input>
+      <output><soap:body use="encoded" namespace="urn:test" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output>
+    </operation>
+  </binding>
+  <service name="TestService">
+    <port name="TestPort" binding="tns:TestBinding">
+      <soap:address location="http://localhost/test"/>
+    </port>
+  </service>
+</definitions>
diff --git a/ext/soap/tests/dtd_named_like_root_wsdl_import.xsd b/ext/soap/tests/dtd_named_like_root_wsdl_import.xsd
new file mode 100644
index 00000000000..81b95107d84
--- /dev/null
+++ b/ext/soap/tests/dtd_named_like_root_wsdl_import.xsd
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE schema [<!NOTATION n SYSTEM "x">]>
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+        targetNamespace="urn:imported">
+  <complexType name="Imported">
+    <sequence>
+      <element name="a" type="string"/>
+    </sequence>
+  </complexType>
+</schema>
diff --git a/ext/soap/tests/gh25628.phpt b/ext/soap/tests/gh25628.phpt
new file mode 100644
index 00000000000..a08da3961c6
--- /dev/null
+++ b/ext/soap/tests/gh25628.phpt
@@ -0,0 +1,27 @@
+--TEST--
+GH-25628 (SOAP fails to import a schema with a DOCTYPE named schema, such as XMLDSIG)
+--EXTENSIONS--
+soap
+--INI--
+soap.wsdl_cache_enabled=0
+--FILE--
+<?php
+$client = new SoapClient(__DIR__ . '/gh25628.wsdl');
+var_dump($client->__getFunctions());
+var_dump($client->__getTypes());
+?>
+--EXPECT--
+array(1) {
+  [0]=>
+  string(39) "void Request(SignedRequest $parameters)"
+}
+array(2) {
+  [0]=>
+  string(39) "struct SignatureType {
+ <anyXML> any;
+}"
+  [1]=>
+  string(50) "struct SignedRequest {
+ SignatureType Signature;
+}"
+}
diff --git a/ext/soap/tests/gh25628.wsdl b/ext/soap/tests/gh25628.wsdl
new file mode 100644
index 00000000000..c17ba963384
--- /dev/null
+++ b/ext/soap/tests/gh25628.wsdl
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+                  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+                  xmlns:sec="urn:security"
+                  xmlns:tns="urn:test"
+                  targetNamespace="urn:test">
+  <wsdl:types>
+    <xsd:schema>
+      <xsd:import namespace="urn:security" schemaLocation="gh25628.xsd"/>
+    </xsd:schema>
+  </wsdl:types>
+  <wsdl:message name="Request">
+    <wsdl:part name="parameters" element="sec:SignedRequest"/>
+  </wsdl:message>
+  <wsdl:portType name="TestPort">
+    <wsdl:operation name="Request">
+      <wsdl:input message="tns:Request"/>
+    </wsdl:operation>
+  </wsdl:portType>
+  <wsdl:binding name="TestBinding" type="tns:TestPort">
+    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+    <wsdl:operation name="Request">
+      <soap:operation soapAction="urn:test#Request"/>
+      <wsdl:input><soap:body use="literal"/></wsdl:input>
+    </wsdl:operation>
+  </wsdl:binding>
+  <wsdl:service name="TestService">
+    <wsdl:port name="TestPort" binding="tns:TestBinding">
+      <soap:address location="http://localhost/test"/>
+    </wsdl:port>
+  </wsdl:service>
+</wsdl:definitions>
diff --git a/ext/soap/tests/gh25628.xsd b/ext/soap/tests/gh25628.xsd
new file mode 100644
index 00000000000..a4ecf1164e9
--- /dev/null
+++ b/ext/soap/tests/gh25628.xsd
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+            xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+            targetNamespace="urn:security"
+            elementFormDefault="qualified">
+  <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="gh25628_xmldsig.xsd"/>
+  <xsd:element name="SignedRequest">
+    <xsd:complexType>
+      <xsd:sequence>
+        <xsd:element ref="ds:Signature"/>
+      </xsd:sequence>
+    </xsd:complexType>
+  </xsd:element>
+</xsd:schema>
diff --git a/ext/soap/tests/gh25628_xmldsig.xsd b/ext/soap/tests/gh25628_xmldsig.xsd
new file mode 100644
index 00000000000..86dcdc827a4
--- /dev/null
+++ b/ext/soap/tests/gh25628_xmldsig.xsd
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Same prolog as the W3C xmldsig-core-schema.xsd -->
+<!DOCTYPE schema
+  PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd"
+ [
+   <!ATTLIST schema
+     xmlns:ds CDATA #FIXED "http://www.w3.org/2000/09/xmldsig#">
+   <!ENTITY dsig 'http://www.w3.org/2000/09/xmldsig#'>
+   <!ENTITY % p ''>
+   <!ENTITY % s ''>
+  ]>
+<schema xmlns="http://www.w3.org/2001/XMLSchema"
+        xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
+        targetNamespace="http://www.w3.org/2000/09/xmldsig#"
+        version="0.1" elementFormDefault="qualified">
+  <element name="Signature" type="ds:SignatureType"/>
+  <complexType name="SignatureType">
+    <sequence>
+      <any minOccurs="0" maxOccurs="unbounded"/>
+    </sequence>
+  </complexType>
+</schema>
diff --git a/ext/soap/tests/typemap014.phpt b/ext/soap/tests/typemap014.phpt
new file mode 100644
index 00000000000..3c6de828102
--- /dev/null
+++ b/ext/soap/tests/typemap014.phpt
@@ -0,0 +1,54 @@
+--TEST--
+SOAP typemap 14: to_xml() output with a DOCTYPE or processing instruction before the root
+--EXTENSIONS--
+soap
+--FILE--
+<?php
+$request = <<<XML
+<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
+    xmlns:ns1="http://schemas.nothing.com">
+  <env:Body>
+    <ns1:dotest/>
+  </env:Body>
+</env:Envelope>
+XML;
+
+function book_to_xml($book) {
+    return $GLOBALS['prolog'] . '<book><a>' . $book->a . '</a></book>';
+}
+
+class book {
+    public $a = "foo";
+}
+
+function dotest() {
+    return new SoapVar(new book, null, "book", "http://schemas.nothing.com");
+}
+
+$prologs = [
+    '<!DOCTYPE book>',
+    '<!DOCTYPE book [<!NOTATION n SYSTEM "x"><!ATTLIST book id ID #IMPLIED>]>',
+    '<?pi data?>',
+];
+
+foreach ($prologs as $prolog) {
+    $GLOBALS['prolog'] = $prolog;
+    $server = new SoapServer(null, [
+        'uri'     => "http://schemas.nothing.com",
+        'typemap' => [[
+            "type_ns"   => "http://schemas.nothing.com",
+            "type_name" => "book",
+            "to_xml"    => "book_to_xml",
+        ]],
+    ]);
+    $server->addFunction("dotest");
+    $server->handle($request);
+}
+?>
+--EXPECT--
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.nothing.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:dotestResponse><book xsi:type="ns1:book"><a>foo</a></book></ns1:dotestResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.nothing.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:dotestResponse><book xsi:type="ns1:book"><a>foo</a></book></ns1:dotestResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
+<?xml version="1.0" encoding="UTF-8"?>
+<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://schemas.nothing.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:dotestResponse><book xsi:type="ns1:book"><a>foo</a></book></ns1:dotestResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>