| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
<!-- |
| 4 |
November 14, 2002 |
| 5 |
|
| 6 |
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I) |
| 7 |
Download or use of this file is governed by the Policies and Bylaws of WS-I. |
| 8 |
|
| 9 |
For more information, send email [email protected]. |
| 10 |
--> |
| 11 |
|
| 12 |
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" |
| 13 |
xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd" |
| 14 |
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd"> |
| 15 |
<xsd:annotation> |
| 16 |
<xsd:documentation xml:lang="en">Definition of PartsOrder types for Retailer component of WS-I</xsd:documentation> |
| 17 |
</xsd:annotation> |
| 18 |
<xsd:complexType name="PartsOrderType"> |
| 19 |
<xsd:sequence> |
| 20 |
<xsd:element name="Item" type="tns:PartsOrderItem" maxOccurs="unbounded"/> |
| 21 |
</xsd:sequence> |
| 22 |
</xsd:complexType> |
| 23 |
<xsd:complexType name="PartsOrderItem"> |
| 24 |
<xsd:sequence> |
| 25 |
<xsd:element name="productNumber" type="tns:productNumber" minOccurs="1" maxOccurs="1"/> |
| 26 |
<xsd:element name="quantity" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/> |
| 27 |
<xsd:element name="price" type="xsd:decimal" minOccurs="1" maxOccurs="1"/> |
| 28 |
</xsd:sequence> |
| 29 |
</xsd:complexType> |
| 30 |
<xsd:complexType name="PartsOrderResponseType"> |
| 31 |
<xsd:sequence> |
| 32 |
<xsd:element name="Item" type="tns:PartsOrderResponseItem" maxOccurs="unbounded"/> |
| 33 |
</xsd:sequence> |
| 34 |
</xsd:complexType> |
| 35 |
<xsd:complexType name="PartsOrderResponseItem"> |
| 36 |
<xsd:sequence> |
| 37 |
<xsd:element name="productNumber" type="tns:productNumber" minOccurs="1" maxOccurs="1"/> |
| 38 |
<xsd:element name="quantity" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/> |
| 39 |
<xsd:element name="price" type="xsd:decimal" minOccurs="1" maxOccurs="1"/> |
| 40 |
<xsd:element name="comment" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 41 |
</xsd:sequence> |
| 42 |
</xsd:complexType> |
| 43 |
<xsd:complexType name="CustomerDetailsType"> |
| 44 |
<xsd:sequence> |
| 45 |
<xsd:element name="custnbr" type="tns:CustomerReferenceType" minOccurs="1" maxOccurs="1"/> |
| 46 |
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/> |
| 47 |
<xsd:element name="street1" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 48 |
<xsd:element name="street2" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 49 |
<xsd:element name="city" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 50 |
<xsd:element name="state" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 51 |
<xsd:element name="zip" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 52 |
<xsd:element name="country" type="xsd:string" minOccurs="0" maxOccurs="1"/> |
| 53 |
</xsd:sequence> |
| 54 |
</xsd:complexType> |
| 55 |
<xsd:simpleType name="productNumber"> |
| 56 |
<xsd:restriction base="xsd:integer"> |
| 57 |
<xsd:minInclusive value="1"/> |
| 58 |
<xsd:maxInclusive value="999999"/> |
| 59 |
</xsd:restriction> |
| 60 |
</xsd:simpleType> |
| 61 |
<xsd:simpleType name="CustomerReferenceType"> |
| 62 |
<xsd:restriction base="xsd:normalizedString"> |
| 63 |
<xsd:maxLength value="20"/> |
| 64 |
<xsd:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/> |
| 65 |
</xsd:restriction> |
| 66 |
</xsd:simpleType> |
| 67 |
<xsd:element name="InvalidProductCode" type="tns:InvalidProductCodeType"/> |
| 68 |
<xsd:complexType name="InvalidProductCodeType"> |
| 69 |
<xsd:sequence> |
| 70 |
<xsd:element name="Reason"> |
| 71 |
<xsd:simpleType> |
| 72 |
<xsd:restriction base="xsd:NMTOKEN"> |
| 73 |
<xsd:enumeration value="InvalidProductCode"/> |
| 74 |
</xsd:restriction> |
| 75 |
</xsd:simpleType> |
| 76 |
</xsd:element> |
| 77 |
<xsd:element name="ProductNumber" type="tns:productNumber" /> |
| 78 |
</xsd:sequence> |
| 79 |
</xsd:complexType> |
| 80 |
<xsd:element name="BadOrderReason" type="xsd:string"/> |
| 81 |
</xsd:schema> |