xref: /PHP-8.4/ext/soap/tests/bugs/bug37013.wsdl (revision b15bfb91)
1<?xml version="1.0" encoding="utf-8"?>
2<definitions name="shoppingcart"
3 xmlns="http://schemas.xmlsoap.org/wsdl/"
4 xmlns:tns="urn:test.soapserver#"
5targetNamespace="urn:test.soapserver#"
6 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
7 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
8 xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
9 xmlns:xs="http://www.w3.org/2001/XMLSchema"
10 xmlns:types="urn:test.soapserver.types#">
11
12 <!-- all datatypes will be imported to namespace types: -->
13 <types>
14         <xs:schema targetNamespace="urn:test.soapserver.types#">
15                 <xs:complexType name="ThingWithParent">
16        <xs:all>
17         <xs:element name="id" type="xs:string"/>
18         <xs:element name="parent" type="types:ThingWithParent"/>
19         <xs:element name="children" type="types:ArrayOfThingWithParent"/>
20        </xs:all>
21       </xs:complexType>
22 <xs:complexType name="ArrayOfThingWithParent">
23  <xs:complexContent>
24   <xs:restriction base="soapenc:Array">
25      <xs:attribute ref="soapenc:arrayType"
26        wsdl:arrayType="tns:ThingWithParent[]"/>
27   </xs:restriction>
28  </xs:complexContent>
29 </xs:complexType>
30  </xs:schema>
31 </types>
32         <message name="getThingWithParent-request"/>
33         <message name="getThingWithParent-response">
34                 <part name="result" element="types:ThingWithParent"/>
35         </message>
36 <portType name="soapserver-porttype">
37  <operation name="getThingWithParent">
38   <input name="getThingWithParent-request" message="tns:getThingWithParent-request"/>
39   <output name="getThingWithParent-response" message="tns:getThingWithParent-response"/>
40  </operation>
41 </portType>
42 <binding name="soapserver-binding" type="tns:soapserver-porttype">
43  <soap:binding style="rpc"
44   transport="http://schemas.xmlsoap.org/soap/http"/>
45  <operation name="getThingWithParent">
46   <soap:operation soapAction="urn:test.soapserver.SoapServer#getThingWithParent"/>
47   <input>
48      <soap:body use="encoded"
49namespace="urn:test.soapserver#"
50encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
51   </input>
52   <output>
53      <soap:body use="encoded"
54namespace="urn:test.soapserver#"
55encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
56   </output>
57  </operation>
58 </binding>
59
60 <service name="soapserver">
61  <!-- @binding doesn't like to be tns: -->
62  <port name="soapserver-port" binding="tns:soapserver-binding">
63   <soap:address location="xxxxxxxxxxxx"/>
64  </port>
65 </service>
66
67</definitions>
68