| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
October 15, 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 |
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cb="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer/CallBack" xmlns:ct="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" xmlns:cfg="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.wsdl" xmlns:po="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd" xmlns:sn="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd" xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer.wsdl" xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/"> |
| 11 |
<wsdl:documentation> |
| 12 |
This WSDL document describes the Manufacturer service for the WS-I Basic Sample Application. This service |
| 13 |
is part of a supply chain management system. It is used to demonstrate a web service that is |
| 14 |
conformant with the Basic Profile and to show how different web service platforms can interoperate. |
| 15 |
</wsdl:documentation> |
| 16 |
<wsdl:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.wsdl" location="Configuration.wsdl"/> |
| 17 |
<wsdl:types> |
| 18 |
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified"> |
| 19 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" schemaLocation="../2002-08/Configuration.xsd"/> |
| 20 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd" schemaLocation="ManufacturerPO.xsd"/> |
| 21 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd" schemaLocation="ManufacturerSN.xsd"/> |
| 22 |
</xs:schema> |
| 23 |
<xs:schema targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer/CallBack" elementFormDefault="qualified" attributeFormDefault="unqualified"> |
| 24 |
<xs:element name="StartHeader" type="cb:StartHeaderType"/> |
| 25 |
<xs:element name="CallbackHeader" type="cb:CallbackHeaderType"/> |
| 26 |
<xs:element name="CallbackFault" type="cb:CallbackFaultType"/> |
| 27 |
<xs:complexType name="StartHeaderType"> |
| 28 |
<xs:sequence> |
| 29 |
<xs:element minOccurs="1" maxOccurs="1" name="conversationID" type="xs:string"/> |
| 30 |
<xs:element minOccurs="1" maxOccurs="1" name="callbackLocation" type="xs:string"/> |
| 31 |
</xs:sequence> |
| 32 |
</xs:complexType> |
| 33 |
<xs:complexType name="CallbackHeaderType"> |
| 34 |
<xs:sequence> |
| 35 |
<xs:element minOccurs="1" maxOccurs="1" name="conversationID" type="xs:string"/> |
| 36 |
</xs:sequence> |
| 37 |
</xs:complexType> |
| 38 |
<xs:complexType name="CallbackFaultType"> |
| 39 |
<xs:sequence> |
| 40 |
<xs:element name="Reason"> |
| 41 |
<xs:simpleType> |
| 42 |
<xs:restriction base="xs:NMTOKEN"> |
| 43 |
<xs:enumeration value="notFound"/> |
| 44 |
</xs:restriction> |
| 45 |
</xs:simpleType> |
| 46 |
</xs:element> |
| 47 |
<xs:element minOccurs="1" maxOccurs="1" name="conversationID" type="xs:string"/> |
| 48 |
</xs:sequence> |
| 49 |
</xs:complexType> |
| 50 |
</xs:schema> |
| 51 |
</wsdl:types> |
| 52 |
<wsdl:message name="POSubmit"> |
| 53 |
<wsdl:documentation> |
| 54 |
A purchase order. |
| 55 |
</wsdl:documentation> |
| 56 |
<wsdl:part name="PurchaseOrder" element="po:PurchaseOrder"/> |
| 57 |
<wsdl:part name="ConfigurationHeader" element="ct:Configuration"/> |
| 58 |
<wsdl:part name="StartHeader" element="cb:StartHeader"/> |
| 59 |
</wsdl:message> |
| 60 |
<wsdl:message name="ackPO"> |
| 61 |
<wsdl:documentation> |
| 62 |
A response of true indicates the purchase order has been accepted for processing. |
| 63 |
</wsdl:documentation> |
| 64 |
<wsdl:part name="Response" element="po:ackPO"/> |
| 65 |
</wsdl:message> |
| 66 |
<wsdl:message name="submitPOFault"> |
| 67 |
<wsdl:documentation> |
| 68 |
A reason code for the rejection of a given PO that can be matched through the conversationID |
| 69 |
in the callback section of the SOAP header. |
| 70 |
</wsdl:documentation> |
| 71 |
<wsdl:part name="POFault" element="po:submitPOFault"/> |
| 72 |
</wsdl:message> |
| 73 |
<wsdl:message name="SNSubmit"> |
| 74 |
<wsdl:documentation> |
| 75 |
A shipment notification. |
| 76 |
</wsdl:documentation> |
| 77 |
<wsdl:part name="ShipmentNotice" element="sn:ShipmentNotice"/> |
| 78 |
<wsdl:part name="ConfigurationHeader" element="ct:Configuration"/> |
| 79 |
<wsdl:part name="CallbackHeader" element="cb:CallbackHeader"/> |
| 80 |
</wsdl:message> |
| 81 |
<wsdl:message name="processPOFault"> |
| 82 |
<wsdl:documentation> |
| 83 |
Alternative to SNSubmit, indicates a reason for the rejection of a given PO after |
| 84 |
having been acknowledged by the Manufacturer. Contains callback information with |
| 85 |
which to find the original replenishment request. |
| 86 |
</wsdl:documentation> |
| 87 |
<wsdl:part name="processPOFault" element="po:submitPOFault"/> |
| 88 |
<wsdl:part name="ConfigurationHeader" element="ct:Configuration"/> |
| 89 |
<wsdl:part name="CallbackHeader" element="cb:CallbackHeader"/> |
| 90 |
</wsdl:message> |
| 91 |
<wsdl:message name="ackSN"> |
| 92 |
<wsdl:documentation> |
| 93 |
A response of true indicates the shipment notice has been accepted for processing. |
| 94 |
</wsdl:documentation> |
| 95 |
<wsdl:part name="Response" element="sn:ackSN"/> |
| 96 |
</wsdl:message> |
| 97 |
<wsdl:message name="Callback"> |
| 98 |
<wsdl:documentation> |
| 99 |
To be used in SOAP headers for relating two req/resp message pairs sent asynchronously. |
| 100 |
The CallbackFault indicates a reason for the rejection of the second req/resp pair. |
| 101 |
</wsdl:documentation> |
| 102 |
<wsdl:part name="CallbackFault" element="cb:CallbackFault"/> |
| 103 |
</wsdl:message> |
| 104 |
<wsdl:portType name="ManufacturerPortType"> |
| 105 |
<wsdl:operation name="submitPO"> |
| 106 |
<wsdl:documentation>Submit a purchase order for specified items to the manufacturer.</wsdl:documentation> |
| 107 |
<wsdl:input message="tns:POSubmit"/> |
| 108 |
<wsdl:output message="tns:ackPO"/> |
| 109 |
<wsdl:fault name="POFault" message="tns:submitPOFault"/> |
| 110 |
<wsdl:fault name="ConfigurationFault" message="cfg:ConfigurationFaultMessage"/> |
| 111 |
</wsdl:operation> |
| 112 |
</wsdl:portType> |
| 113 |
<wsdl:portType name="WarehouseCallbackPortType"> |
| 114 |
<wsdl:operation name="submitSN"> |
| 115 |
<wsdl:documentation>Submit a shipment notice for specified items to the retailer.</wsdl:documentation> |
| 116 |
<wsdl:input message="tns:SNSubmit"/> |
| 117 |
<wsdl:output message="tns:ackSN"/> |
| 118 |
<wsdl:fault name="ConfigurationFault" message="cfg:ConfigurationFaultMessage"/> |
| 119 |
<wsdl:fault name="CallbackFault" message="tns:Callback"/> |
| 120 |
</wsdl:operation> |
| 121 |
<wsdl:operation name="errorPO"> |
| 122 |
<wsdl:documentation>Notify warehouse there was an error in processing a submitted PO.</wsdl:documentation> |
| 123 |
<wsdl:input message="tns:processPOFault"/> |
| 124 |
<wsdl:output message="tns:ackPO"/> |
| 125 |
<wsdl:fault name="ConfigurationFault" message="cfg:ConfigurationFaultMessage"/> |
| 126 |
<wsdl:fault name="CallbackFault" message="tns:Callback"/> |
| 127 |
</wsdl:operation> |
| 128 |
</wsdl:portType> |
| 129 |
<wsdl:binding name="ManufacturerSoapBinding" type="tns:ManufacturerPortType"> |
| 130 |
<wsdl:documentation> |
| 131 |
<wsi:Claim conformsTo="http://ws-i.org/profiles/basic1.0/"/> |
| 132 |
</wsdl:documentation> |
| 133 |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
| 134 |
<wsdl:operation name="submitPO"> |
| 135 |
<soap:operation/> |
| 136 |
<wsdl:input> |
| 137 |
<soap:body parts="PurchaseOrder" use="literal"/> |
| 138 |
<soap:header message="tns:POSubmit" part="ConfigurationHeader" use="literal"> |
| 139 |
<soap:headerfault message="cfg:ConfigurationFaultMessage" part="ConfigurationFault" use="literal"/> |
| 140 |
</soap:header> |
| 141 |
<soap:header message="tns:POSubmit" part="StartHeader" use="literal"/> |
| 142 |
</wsdl:input> |
| 143 |
<wsdl:output> |
| 144 |
<soap:body use="literal"/> |
| 145 |
</wsdl:output> |
| 146 |
<wsdl:fault name="POFault"> |
| 147 |
<soap:fault name="POFault" use="literal"/> |
| 148 |
</wsdl:fault> |
| 149 |
</wsdl:operation> |
| 150 |
</wsdl:binding> |
| 151 |
<wsdl:binding name="WarehouseCallbackSoapBinding" type="tns:WarehouseCallbackPortType"> |
| 152 |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> |
| 153 |
<wsdl:operation name="submitSN"> |
| 154 |
<soap:operation/> |
| 155 |
<wsdl:input> |
| 156 |
<soap:body parts="ShipmentNotice" use="literal"/> |
| 157 |
<soap:header message="tns:SNSubmit" part="ConfigurationHeader" use="literal"> |
| 158 |
<soap:headerfault message="cfg:ConfigurationFaultMessage" part="ConfigurationFault" use="literal"/> |
| 159 |
</soap:header> |
| 160 |
<soap:header message="tns:SNSubmit" part="CallbackHeader" use="literal"> |
| 161 |
<soap:headerfault message="tns:Callback" part="CallbackFault" use="literal"/> |
| 162 |
</soap:header> |
| 163 |
</wsdl:input> |
| 164 |
<wsdl:output> |
| 165 |
<soap:body parts="Response" use="literal"/> |
| 166 |
</wsdl:output> |
| 167 |
</wsdl:operation> |
| 168 |
<wsdl:operation name="errorPO"> |
| 169 |
<soap:operation/> |
| 170 |
<wsdl:input> |
| 171 |
<soap:body parts="processPOFault" use="literal"/> |
| 172 |
<soap:header message="tns:processPOFault" part="CallbackHeader" use="literal"> |
| 173 |
<soap:headerfault message="tns:Callback" part="CallbackFault" use="literal"/> |
| 174 |
</soap:header> |
| 175 |
</wsdl:input> |
| 176 |
<wsdl:output> |
| 177 |
<soap:body parts="Response" use="literal"/> |
| 178 |
</wsdl:output> |
| 179 |
</wsdl:operation> |
| 180 |
</wsdl:binding> |
| 181 |
</wsdl:definitions> |
| 182 |
<!-- The following is an example of a SOAP request message compliant with the above WSDL: |
| 183 |
|
| 184 |
<?xml version="1.0" encoding="UTF-8"?> |
| 185 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
| 186 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| 187 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 188 |
<soapenv:Header> |
| 189 |
<ns1:Configuration xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd"> |
| 190 |
<ns1:UserId>Some user ID</ns1:UserId> |
| 191 |
<ns1:ServiceUrl Role="LoggingFacility">http://localhost:999/WS-I_Sample/services/LoggingFacility</ns1:ServiceUrl> |
| 192 |
<ns1:ServiceUrl Role="Retailer">http://localhost:999/WS-I_Sample/services/Retailer</ns1:ServiceUrl> |
| 193 |
<ns1:ServiceUrl Role="WarehouseA">http://localhost:999/WS-I_Sample/services/WarehouseA</ns1:ServiceUrl> |
| 194 |
<ns1:ServiceUrl Role="WarehouseB">http://localhost:999/WS-I_Sample/services/WarehouseB</ns1:ServiceUrl> |
| 195 |
<ns1:ServiceUrl Role="WarehouseC">http://localhost:999/WS-I_Sample/services/WarehouseC</ns1:ServiceUrl> |
| 196 |
<ns1:ServiceUrl Role="ManufacturerA">http://localhost:999/WS-I_Sample/services/ManufacturerA</ns1:ServiceUrl> |
| 197 |
<ns1:ServiceUrl Role="ManufacturerB">http://localhost:999/WS-I_Sample/services/ManufacturerB</ns1:ServiceUrl> |
| 198 |
<ns1:ServiceUrl Role="ManufacturerC">http://localhost:999/WS-I_Sample/services/ManufacturerC</ns1:ServiceUrl> |
| 199 |
</ns1:Configuration> |
| 200 |
<ns2:StartHeader xmlns:ns2="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer/CallBack"> |
| 201 |
<ns2:conversationID>1</ns2:conversationID> |
| 202 |
<ns2:callbackLocation>http://localhost:999/WS-I_Sample/services/WarehouseCallBack</ns2:callbackLocation> |
| 203 |
</ns2:StartHeader> |
| 204 |
</soapenv:Header> |
| 205 |
<soapenv:Body> |
| 206 |
<PurchaseOrder xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd"> |
| 207 |
<orderNum>1</orderNum> |
| 208 |
<customerRef>ABCD999999999EFG</customerRef> |
| 209 |
<items> |
| 210 |
<Item> |
| 211 |
<ID>605002</ID> |
| 212 |
<qty>18</qty> |
| 213 |
<price>100.0</price> |
| 214 |
</Item> |
| 215 |
</items> |
| 216 |
<total>0.0</total> |
| 217 |
</PurchaseOrder> |
| 218 |
</soapenv:Body> |
| 219 |
</soapenv:Envelope> |
| 220 |
|
| 221 |
and the reply from the Manufacturer: |
| 222 |
|
| 223 |
<?xml version="1.0" encoding="UTF-8"?> |
| 224 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
| 225 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 226 |
<soapenv:Body> |
| 227 |
<ackPO xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerPO.xsd">true</ackPO> |
| 228 |
</soapenv:Body> |
| 229 |
</soapenv:Envelope> |
| 230 |
|
| 231 |
and the callback request: |
| 232 |
|
| 233 |
<?xml version="1.0" encoding="UTF-8"?> |
| 234 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
| 235 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 236 |
<soapenv:Header> |
| 237 |
<ns1:CallbackHeader xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/Manufacturer/CallBack"> |
| 238 |
<ns1:conversationID>1</ns1:conversationID> |
| 239 |
</ns1:CallbackHeader> |
| 240 |
<ns2:Configuration xmlns:ns2="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd"> |
| 241 |
<ns2:UserId>Some user ID</ns2:UserId> |
| 242 |
<ns2:ServiceUrl Role="LoggingFacility">http://localhost:999/WS-I_Sample/services/LoggingFacility</ns2:ServiceUrl> |
| 243 |
<ns2:ServiceUrl Role="Retailer">http://localhost:999/WS-I_Sample/services/Retailer</ns2:ServiceUrl> |
| 244 |
<ns2:ServiceUrl Role="WarehouseA">http://localhost:999/WS-I_Sample/services/WarehouseA</ns2:ServiceUrl> |
| 245 |
<ns2:ServiceUrl Role="WarehouseB">http://localhost:999/WS-I_Sample/services/WarehouseB</ns2:ServiceUrl> |
| 246 |
<ns2:ServiceUrl Role="WarehouseC">http://localhost:999/WS-I_Sample/services/WarehouseC</ns2:ServiceUrl> |
| 247 |
<ns2:ServiceUrl Role="ManufacturerA">http://localhost:999/WS-I_Sample/services/ManufacturerA</ns2:ServiceUrl> |
| 248 |
<ns2:ServiceUrl Role="ManufacturerB">http://localhost:999/WS-I_Sample/services/ManufacturerB</ns2:ServiceUrl> |
| 249 |
<ns2:ServiceUrl Role="ManufacturerC">http://localhost:999/WS-I_Sample/services/ManufacturerC</ns2:ServiceUrl> |
| 250 |
</ns2:Configuration> |
| 251 |
</soapenv:Header> |
| 252 |
<soapenv:Body> |
| 253 |
<ShipmentNotice xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd"> |
| 254 |
<shipNum>1</shipNum> |
| 255 |
<orderNum>1</orderNum> |
| 256 |
<customerRef>ABCD999999999EFG</customerRef> |
| 257 |
<items> |
| 258 |
<Item> |
| 259 |
<ID>605002</ID> |
| 260 |
<qty>18</qty> |
| 261 |
<price>100.0</price> |
| 262 |
</Item> |
| 263 |
</items> |
| 264 |
<total>0.0</total> |
| 265 |
</ShipmentNotice> |
| 266 |
</soapenv:Body> |
| 267 |
</soapenv:Envelope> |
| 268 |
|
| 269 |
and the Callback reply: |
| 270 |
|
| 271 |
<?xml version="1.0" encoding="UTF-8"?> |
| 272 |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" |
| 273 |
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
| 274 |
<soapenv:Body> |
| 275 |
<ackSN xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-10/ManufacturerSN.xsd">true</ackSN> |
| 276 |
</soapenv:Body> |
| 277 |
</soapenv:Envelope> |
| 278 |
|
| 279 |
|
| 280 |
--> |