xref: /PHP-7.0/ext/soap/tests/bugs/bug36575.wsdl (revision 622347bd)
1<?xml version="1.0" encoding="utf-8"?>
2<definitions name="shoppingcart"
3	xmlns="http://schemas.xmlsoap.org/wsdl/"
4	xmlns:tns="urn:test.soap#" targetNamespace="urn:test.soap#"
5	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
6	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
7	xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
8	xmlns:xs="http://www.w3.org/2001/XMLSchema"
9	xmlns:types="urn:test.soap.types#">
10	<!-- all datatypes will be imported to namespace types: -->
11	<types>
12		<xs:schema
13			xmlns:xs="http://www.w3.org/2001/XMLSchema"
14			xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
15			xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
16			xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
17			xmlns:tns="urn:test.soap.types#"
18			targetNamespace="urn:test.soap.types#">
19
20			<xs:complexType name="A1">
21				<xs:all>
22					<xs:element name="var1" type="xs:string" nillable="true"/>
23				</xs:all>
24			</xs:complexType>
25
26			<xs:complexType name="A2">
27				<xs:complexContent>
28					<xs:extension base="tns:A1">
29						<xs:all>
30							<xs:element name="var2" type="xs:string" nillable="true"/>
31						</xs:all>
32					</xs:extension>
33				</xs:complexContent>
34			</xs:complexType>
35
36			 <xs:complexType name="A3">
37				<xs:complexContent>
38					<xs:extension base="tns:A2">
39						<xs:all>
40							<xs:element name="var3" type="xs:string" nillable="true"/>
41						</xs:all>
42					</xs:extension>
43				</xs:complexContent>
44			</xs:complexType>
45		</xs:schema>
46	</types>
47
48	<message name="test-request">
49		<part name="a1" type="types:A1"/>
50	</message>
51	<message name="test-response">
52		<part name="result" type="types:A2"/>
53	</message>
54
55	<portType name="catalog-porttype">
56		<operation name="test" parameterOrder="a1">
57			<input name="test-request" message="tns:test-request"/>
58			<output name="test-response" message="tns:test-response"/>
59		</operation>
60	</portType>
61
62	<!-- @type doesn't like tns: -->
63	<binding name="catalog-binding" type="tns:catalog-porttype">
64		<soap:binding style="rpc"
65			transport="http://schemas.xmlsoap.org/soap/http"/>
66
67		<operation name="test">
68			<soap:operation soapAction="urn:test.soap#test"/>
69			<input>
70				<soap:body use="encoded" namespace="urn:test.soap#"
71				encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
72			</input>
73			<output>
74				<soap:body use="encoded" namespace="urn:test.soap#"
75				encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
76			</output>
77		</operation>
78	</binding>
79
80	<service name="catalog">
81		<!-- @binding doesn't like to be tns: -->
82		<port name="catalog-port" binding="tns:catalog-binding">
83			<soap:address location="xxxxxxxx"/>
84		</port>
85	</service>
86
87</definitions>
88