mirror of
https://github.com/php/php-src.git
synced 2026-04-27 01:48:26 +02:00
26287132c0
If the response includes both fields with simple types (which get concatenated into an XML string) and a complex type (which is parsed into an object), then the object will parsed into the same zval as the simple types and will overwrite the string.
79 lines
3.1 KiB
XML
79 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<definitions targetNamespace="urn:test.example.org"
|
|
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.example.org"
|
|
xmlns:ens="urn:object.test.example.org">
|
|
<types>
|
|
<schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:object.test.example.org">
|
|
<import namespace="urn:test.example.org"/>
|
|
<complexType name="genericObject">
|
|
<sequence>
|
|
<element name="type" type="xsd:string"/>
|
|
<element name="fieldsToNull" type="xsd:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
|
|
<element name="Id" type="tns:ID" nillable="true" />
|
|
<any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
|
|
</sequence>
|
|
</complexType>
|
|
</schema>
|
|
<schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:test.example.org">
|
|
<import namespace="urn:object.test.example.org"/>
|
|
<simpleType name="ID">
|
|
<restriction base="xsd:string">
|
|
<length value="18"/>
|
|
<pattern value='[a-zA-Z0-9]{18}'/>
|
|
</restriction>
|
|
</simpleType>
|
|
<element name="query">
|
|
<complexType>
|
|
<sequence>
|
|
<element name="queryString" type="xsd:string"/>
|
|
</sequence>
|
|
</complexType>
|
|
</element>
|
|
<element name="queryResponse">
|
|
<complexType>
|
|
<sequence>
|
|
<element name="result" type="tns:QueryResult"/>
|
|
</sequence>
|
|
</complexType>
|
|
</element>
|
|
</schema>
|
|
</types>
|
|
|
|
<message name="queryRequest">
|
|
<part element="tns:query" name="parameters"/>
|
|
</message>
|
|
<message name="queryResponse">
|
|
<part element="tns:queryResponse" name="parameters"/>
|
|
</message>
|
|
|
|
<portType name="Soap">
|
|
<operation name="query">
|
|
<documentation>Create a Query Cursor</documentation>
|
|
<input message="tns:queryRequest"/>
|
|
<output message="tns:queryResponse"/>
|
|
</operation>
|
|
</portType>
|
|
|
|
<binding name="SoapBinding" type="tns:Soap">
|
|
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
<operation name="query">
|
|
<soap:operation soapAction=""/>
|
|
<input>
|
|
<soap:body parts="parameters" use="literal"/>
|
|
</input>
|
|
<output>
|
|
<soap:body use="literal"/>
|
|
</output>
|
|
</operation>
|
|
</binding>
|
|
|
|
<service name="TestService">
|
|
<port binding="tns:SoapBinding" name="Soap">
|
|
<soap:address location="https://localhost/services/Soap/u/31.0"/>
|
|
</port>
|
|
</service>
|
|
</definitions>
|