xref: /PHP-5.5/ext/soap/tests/bugs/bug27722.wsdl (revision 9dd08266)
1<?xml version="1.0" ?>
2<definitions
3    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
4    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
5    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
7    xmlns:si="http://soapinterop.org/xsd"
8    xmlns:tns="http://linuxsrv.home/~dmitry/soap/test.wsdl"
9    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
10    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
11    xmlns="http://schemas.xmlsoap.org/wsdl/"
12    targetNamespace="http://linuxsrv.home/~dmitry/soap/test.wsdl">
13  <types>
14<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
15 <xsd:annotation>
16  <xsd:documentation xml:lang="en">
17   Purchase order schema for Example.com.
18   Copyright 2000 Example.com. All rights reserved.
19  </xsd:documentation>
20 </xsd:annotation>
21
22 <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
23
24 <xsd:element name="comment" type="xsd:string"/>
25
26 <xsd:complexType name="PurchaseOrderType">
27  <xsd:sequence>
28   <xsd:element name="shipTo" type="USAddress"/>
29   <xsd:element name="billTo" type="USAddress"/>
30   <xsd:element ref="comment" minOccurs="0"/>
31   <xsd:element name="items"  type="Items"/>
32  </xsd:sequence>
33  <xsd:attribute name="orderDate" type="xsd:date"/>
34 </xsd:complexType>
35
36 <xsd:complexType name="USAddress">
37  <xsd:sequence>
38   <xsd:element name="name"   type="xsd:string"/>
39   <xsd:element name="street" type="xsd:string"/>
40   <xsd:element name="city"   type="xsd:string"/>
41   <xsd:element name="state"  type="xsd:string"/>
42   <xsd:element name="zip"    type="xsd:decimal"/>
43  </xsd:sequence>
44  <xsd:attribute name="country" type="xsd:NMTOKEN"
45     fixed="US"/>
46 </xsd:complexType>
47
48 <xsd:complexType name="Items">
49  <xsd:sequence>
50   <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
51    <xsd:complexType>
52     <xsd:sequence>
53      <xsd:element name="productName" type="xsd:string"/>
54      <xsd:element name="quantity">
55       <xsd:simpleType>
56        <xsd:restriction base="xsd:positiveInteger">
57         <xsd:maxExclusive value="100"/>
58        </xsd:restriction>
59       </xsd:simpleType>
60      </xsd:element>
61      <xsd:element name="USPrice"  type="xsd:decimal"/>
62      <xsd:element ref="comment"   minOccurs="0"/>
63      <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
64     </xsd:sequence>
65     <xsd:attribute name="partNum" type="SKU" use="required"/>
66    </xsd:complexType>
67   </xsd:element>
68  </xsd:sequence>
69 </xsd:complexType>
70
71 <!-- Stock Keeping Unit, a code for identifying products -->
72 <simpleType name="SKU">
73  <restriction base="xsd:string">
74   <pattern value="\d{3}-[A-Z]{2}"/>
75  </restriction>
76 </simpleType>
77
78</xsd:schema>
79</types>
80  <portType name="TestServicePortType">
81  </portType>
82
83  <binding name="TestServiceBinding" type="tns:TestServicePortType">
84    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
85  </binding>
86
87  <service name="TestService">
88    <port name="TestServicePort" binding="tns:TestServiceBinding">
89      <soap:address location="test://" />
90    </port>
91  </service>
92</definitions>
93