Debian Codegraph @

samples/ws-i/scm/source/schema/ManufacturerPO.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 October 7, 2002
4
5 (c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
6 Download or use of this file is governed by the Policies and Bylaws of WS-I.
7
8 For more information, send email [email protected].
9 -->
10 <xs:schema targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd" xmlns:po="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
11 <xs:annotation>
12 <xs:documentation xml:lang="en">Purchase Order schema for Manufacturer system of WS-I sample application</xs:documentation>
13 </xs:annotation>
14 <xs:element name="PurchaseOrder" type="po:PurchOrdType"/>
15 <xs:complexType name="PurchOrdType">
16 <xs:sequence>
17 <xs:element name="orderNum" type="xs:string"/>
18 <xs:element name="customerRef" type="po:CustomerReferenceType"/>
19 <xs:element name="items" type="po:ItemList"/>
20 <xs:element name="total" type="xs:float"/>
21 </xs:sequence>
22 </xs:complexType>
23 <xs:simpleType name="CustomerReferenceType">
24 <xs:restriction base="xs:normalizedString">
25 <xs:maxLength value="20"/>
26 <xs:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/>
27 </xs:restriction>
28 </xs:simpleType>
29 <xs:complexType name="ItemList">
30 <xs:sequence>
31 <xs:element name="Item" type="po:Item" nillable="false" maxOccurs="unbounded"/>
32 </xs:sequence>
33 </xs:complexType>
34 <xs:complexType name="Item">
35 <xs:sequence>
36 <xs:element name="ID" type="xs:nonNegativeInteger"/>
37 <xs:element name="qty" type="xs:unsignedShort"/>
38 <xs:element name="price" type="xs:float"/>
39 </xs:sequence>
40 </xs:complexType>
41 <xs:element name="ackPO" type="xs:boolean"/>
42 <xs:element name="submitPOFault" type="po:submitPOFaultType"/>
43 <xs:complexType name="submitPOFaultType">
44 <xs:sequence>
45 <xs:element name="Reason">
46 <xs:simpleType>
47 <xs:restriction base="xs:NMTOKEN">
48 <xs:enumeration value="MalformedOrder"/>
49 <xs:enumeration value="InvalidProduct"/>
50 <xs:enumeration value="InvalidQty"/>
51 </xs:restriction>
52 </xs:simpleType>
53 </xs:element>
54 </xs:sequence>
55 </xs:complexType>
56 </xs:schema>