xref: /php-src/ext/soap/tests/bugs/bug42359.wsdl (revision 4e0e0b81)
1<?xml version='1.0' encoding='UTF-8'?>
2<definitions name="listTest" targetNamespace="urn:listTest" xmlns:typens="urn:listTest" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
3  <types>
4    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:listTest">
5      <xsd:simpleType name="listItem">
6          <xsd:list>
7              <xsd:simpleType>
8            <xsd:restriction base="xsd:string">
9              <xsd:enumeration value="test1" />
10              <xsd:enumeration value="test2" />
11            </xsd:restriction>
12          </xsd:simpleType>
13        </xsd:list>
14      </xsd:simpleType>
15      <xsd:simpleType name="enumItem">
16        <xsd:restriction base="xsd:string">
17          <xsd:enumeration value="test1" />
18          <xsd:enumeration value="test2" />
19        </xsd:restriction>
20      </xsd:simpleType>
21      <xsd:simpleType name="listItem2">
22        <xsd:list itemType="typens:enumItem"/>
23      </xsd:simpleType>
24    </xsd:schema>
25  </types>
26  <message name="testRequest">
27    <part name="item" type="typens:listItem"/>
28  </message>
29  <message name="testRequestResponse">
30    <part name="testRequestReturn" type="xsd:integer"/>
31  </message>
32  <portType name="listTestPortType">
33    <operation name="testRequest">
34      <documentation>
35        Test request
36      </documentation>
37      <input message="typens:testRequest"/>
38      <output message="typens:testRequestResponse"/>
39    </operation>
40  </portType>
41  <binding name="listTestBinding" type="typens:listTestPortType">
42    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
43    <operation name="testRequest">
44      <soap:operation soapAction="urn:listTestAction"/>
45      <input>
46        <soap:body namespace="urn:listTest" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
47      </input>
48      <output>
49        <soap:body namespace="urn:listTest" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
50      </output>
51    </operation>
52  </binding>
53  <service name="listTestService">
54    <port name="listTestPort" binding="typens:listTestBinding">
55      <soap:address location="http://test/service"/>
56    </port>
57  </service>
58</definitions>
59