You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ia...@apache.org on 2003/12/13 08:49:36 UTC
cvs commit: ws-axis/java/samples/ws-i/scm/source/schema RetailOrder.xsd Warehouse.xsd ManufacturerPO.xsd Configuration.xsd ManufacturerSN.xsd LoggingFacility.xsd Configurator.xsd RetailCatalog.xsd
ias 2003/12/12 23:49:36
Added: java/samples/ws-i/scm/source/schema RetailOrder.xsd
Warehouse.xsd ManufacturerPO.xsd Configuration.xsd
ManufacturerSN.xsd LoggingFacility.xsd
Configurator.xsd RetailCatalog.xsd
Log:
initial check-in
Revision Changes Path
1.1 ws-axis/java/samples/ws-i/scm/source/schema/RetailOrder.xsd
Index: RetailOrder.xsd
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
November 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd"
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd">
<xsd:annotation>
<xsd:documentation xml:lang="en">Definition of PartsOrder types for Retailer component of WS-I</xsd:documentation>
</xsd:annotation>
<xsd:complexType name="PartsOrderType">
<xsd:sequence>
<xsd:element name="Item" type="tns:PartsOrderItem" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PartsOrderItem">
<xsd:sequence>
<xsd:element name="productNumber" type="tns:productNumber" minOccurs="1" maxOccurs="1"/>
<xsd:element name="quantity" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/>
<xsd:element name="price" type="xsd:decimal" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PartsOrderResponseType">
<xsd:sequence>
<xsd:element name="Item" type="tns:PartsOrderResponseItem" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PartsOrderResponseItem">
<xsd:sequence>
<xsd:element name="productNumber" type="tns:productNumber" minOccurs="1" maxOccurs="1"/>
<xsd:element name="quantity" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/>
<xsd:element name="price" type="xsd:decimal" minOccurs="1" maxOccurs="1"/>
<xsd:element name="comment" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CustomerDetailsType">
<xsd:sequence>
<xsd:element name="custnbr" type="tns:CustomerReferenceType" minOccurs="1" maxOccurs="1"/>
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="street1" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="street2" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="city" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="state" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="zip" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="country" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="productNumber">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="999999"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CustomerReferenceType">
<xsd:restriction base="xsd:normalizedString">
<xsd:maxLength value="20"/>
<xsd:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="InvalidProductCode" type="tns:InvalidProductCodeType"/>
<xsd:complexType name="InvalidProductCodeType">
<xsd:sequence>
<xsd:element name="Reason">
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="InvalidProductCode"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ProductNumber" type="tns:productNumber" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BadOrderReason" type="xsd:string"/>
</xsd:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/Warehouse.xsd
Index: Warehouse.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
September 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xmlns:wh="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.xsd"
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Warehouse.xsd">
<xs:simpleType name="CustomerReferenceType">
<xs:restriction base="xs:normalizedString">
<xs:maxLength value="20"/>
<xs:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="Item">
<xs:sequence>
<xs:element name="ProductNumber" type="xs:nonNegativeInteger"/>
<xs:element name="Quantity" type="xs:unsignedShort"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemList">
<xs:sequence>
<xs:element name="Item" type="wh:Item" minOccurs="1" maxOccurs="unbounded" nillable="false"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemShippingStatus">
<xs:sequence>
<xs:element name="ProductNumber" type="xs:nonNegativeInteger"/>
<xs:element name="Status" type="xs:boolean"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ItemShippingStatusList">
<xs:sequence>
<xs:element name="ItemStatus" type="wh:ItemShippingStatus" minOccurs="1" maxOccurs="unbounded" nillable="false"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/ManufacturerPO.xsd
Index: ManufacturerPO.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
October 7, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<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">
<xs:annotation>
<xs:documentation xml:lang="en">Purchase Order schema for Manufacturer system of WS-I sample application</xs:documentation>
</xs:annotation>
<xs:element name="PurchaseOrder" type="po:PurchOrdType"/>
<xs:complexType name="PurchOrdType">
<xs:sequence>
<xs:element name="orderNum" type="xs:string"/>
<xs:element name="customerRef" type="po:CustomerReferenceType"/>
<xs:element name="items" type="po:ItemList"/>
<xs:element name="total" type="xs:float"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CustomerReferenceType">
<xs:restriction base="xs:normalizedString">
<xs:maxLength value="20"/>
<xs:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ItemList">
<xs:sequence>
<xs:element name="Item" type="po:Item" nillable="false" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Item">
<xs:sequence>
<xs:element name="ID" type="xs:nonNegativeInteger"/>
<xs:element name="qty" type="xs:unsignedShort"/>
<xs:element name="price" type="xs:float"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ackPO" type="xs:boolean"/>
<xs:element name="submitPOFault" type="po:submitPOFaultType"/>
<xs:complexType name="submitPOFaultType">
<xs:sequence>
<xs:element name="Reason">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="MalformedOrder"/>
<xs:enumeration value="InvalidProduct"/>
<xs:enumeration value="InvalidQty"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/Configuration.xsd
Index: Configuration.xsd
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
September 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xs:schema
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd"
elementFormDefault="qualified">
<xs:import namespace="http://schemas.xmlsoap.org/soap/envelope/"
schemaLocation="http://schemas.xmlsoap.org/soap/envelope/" />
<xs:annotation>
<xs:documentation>
This schema describes the types needed to describe the header common to all services. This
header is used to pass the configuration of the demo to the various web services, and does not convey
meaning required to implement a Supply Chain Management System.
</xs:documentation>
</xs:annotation>
<xs:simpleType name="ConfigurationEndpointRole">
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="LoggingFacility"/>
<xs:enumeration value="Retailer"/>
<xs:enumeration value="WarehouseA"/>
<xs:enumeration value="WarehouseB"/>
<xs:enumeration value="WarehouseC"/>
<xs:enumeration value="ManufacturerA"/>
<xs:enumeration value="ManufacturerB"/>
<xs:enumeration value="ManufacturerC"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ConfigurationEndpointType">
<xs:simpleContent>
<xs:extension base="xs:anyURI">
<xs:attribute name="Role" type="tns:ConfigurationEndpointRole" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="Configuration" type="tns:ConfigurationType"/>
<xs:complexType name="ConfigurationType">
<xs:sequence>
<xs:annotation>
<xs:documentation>
It is left to the application to make sure that this array contains one of each of the
role values enumerated in ConfigurationEndpointType.
</xs:documentation>
</xs:annotation>
<xs:element name="UserId" type="xs:string" nillable="false"/>
<xs:element name="ServiceUrl" type="tns:ConfigurationEndpointType" nillable="false" minOccurs="8" maxOccurs="8"/>
</xs:sequence>
<xs:attribute ref="s:mustUnderstand" use="optional"/>
</xs:complexType>
<xs:element name="ConfigurationFault" type="tns:ConfigurationFaultType" />
<xs:complexType name="ConfigurationFaultType">
<xs:sequence>
<xs:annotation>
<xs:documentation>
It is required that every ServiceUrl that is missing, contains a duplicate, or does not resolve to a
reachable service will be indicated in the ErroneousElement array.
</xs:documentation>
</xs:annotation>
<xs:element name="Message" type="xs:string"/>
<xs:element name="ErroneousElement" type="tns:ConfigurationEndpointRole" minOccurs="0" maxOccurs="8"/>
</xs:sequence>
<xs:attribute ref="s:mustUnderstand"/>
</xs:complexType>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/ManufacturerSN.xsd
Index: ManufacturerSN.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
October 7, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xs:schema targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd" xmlns:sn="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:annotation>
<xs:documentation xml:lang="en">Shipment Notification schema for Manufacturer system of WS-I sample application</xs:documentation>
</xs:annotation>
<xs:element name="ShipmentNotice" type="sn:ShipmentNoticeType"/>
<xs:complexType name="ShipmentNoticeType">
<xs:sequence>
<xs:element name="shipNum" type="xs:string"/>
<xs:element name="orderNum" type="xs:string"/>
<xs:element name="customerRef" type="sn:CustomerReferenceType"/>
<xs:element name="items" type="sn:ItemList"/>
<xs:element name="total" type="xs:float"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="CustomerReferenceType">
<xs:restriction base="xs:normalizedString">
<xs:maxLength value="20"/>
<xs:pattern value="[A-D][0-9]{5}-[0-9A-Z]{7}-[a-z]{3}#*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="ItemList">
<xs:sequence>
<xs:element name="Item" type="sn:Item" nillable="false" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Item">
<xs:sequence>
<xs:element name="ID" type="xs:nonNegativeInteger"/>
<xs:element name="qty" type="xs:unsignedShort"/>
<xs:element name="price" type="xs:float"/>
</xs:sequence>
</xs:complexType>
<xs:element name="ackSN" type="xs:boolean"/>
<xs:element name="submitSNFault" type="sn:submitSNFaultType"/>
<xs:complexType name="submitSNFaultType">
<xs:sequence>
<xs:element name="Reason">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="UnkknownOrder"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/LoggingFacility.xsd
Index: LoggingFacility.xsd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
September 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xmlns:log="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd"
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd">
<xs:element name="logEventRequestElement" type="log:logEventRequestType"/>
<xs:complexType name="logEventRequestType">
<xs:sequence>
<xs:element name="DemoUserID" type="xs:string"/>
<xs:element name="ServiceID" type="xs:string"/>
<xs:element name="EventID" type="xs:string"/>
<xs:element name="EventDescription" type="xs:string"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
<xs:element name="getEventsRequestElement" type="log:getEventsRequestType"/>
<xs:complexType name="getEventsRequestType">
<xs:sequence>
<xs:element name="DemoUserID" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="getEventsResponseElement" type="log:getEventsResponseType"/>
<xs:complexType name="getEventsResponseType">
<xs:sequence>
<xs:element name="LogEntry" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Timestamp" type="xs:dateTime"/>
<xs:element name="ServiceID" type="xs:string"/>
<xs:element name="EventID" type="xs:string"/>
<xs:element name="EventDescription" type="xs:string"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="getEventsFaultElement" type="log:getEventsFaultType"/>
<xs:complexType name="getEventsFaultType">
<xs:sequence>
<xs:element name="Reason">
<xs:simpleType>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="RepositoryMissing"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/Configurator.xsd
Index: Configurator.xsd
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
September 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xs:schema targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configurator.xsd" xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configurator.xsd" xmlns:cfgn="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" schemaLocation="Configuration.xsd"/>
<xs:element name="configOption" type="tns:ConfigOptionType"/>
<xs:complexType name="ConfigOptionType">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="selectionParms" type="xs:string"/>
<xs:element name="configurationEndpoint" type="cfgn:ConfigurationEndpointType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="configOptions" type="tns:ConfigOptionsType"/>
<xs:complexType name="ConfigOptionsType">
<xs:sequence>
<xs:element ref="tns:configOption" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:element name="refresh" type="xs:boolean"/>
<xs:element name="configError" type="xs:string"/>
</xs:schema>
1.1 ws-axis/java/samples/ws-i/scm/source/schema/RetailCatalog.xsd
Index: RetailCatalog.xsd
===================================================================
<?xml version="1.0" encoding="utf-8"?>
<!--
September 14, 2002
(c) Copyright 2002, The Web Services-Interoperability Organization (WS-I)
Download or use of this file is governed by the Policies and Bylaws of WS-I.
For more information, send email info@ws-i.org.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd"
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd">
<xsd:annotation>
<xsd:documentation xml:lang="en">Catalog schema for Retailer component of WS-I</xsd:documentation>
</xsd:annotation>
<xsd:element name="catalog" type="tns:CatalogType"/>
<xsd:element name="comment" type="xsd:string"/>
<xsd:complexType name="CatalogType">
<xsd:sequence>
<xsd:element name="Item" type="tns:CatalogItem" maxOccurs="10"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CatalogItem">
<xsd:sequence>
<xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="description" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="productNumber" type="tns:productNumber" minOccurs="1" maxOccurs="1"/>
<xsd:element name="category" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="brand" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="price" type="xsd:decimal" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="productNumber">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="1"/>
<xsd:maxInclusive value="999999"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>