| 1 |
<?xml version="1.0" encoding="utf-8" ?> |
| 2 |
|
| 3 |
<!-- |
| 4 |
September 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 |
<wsdl:definitions |
| 13 |
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" |
| 14 |
xmlns:xs="http://www.w3.org/2001/XMLSchema" |
| 15 |
xmlns:cfg="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" |
| 16 |
xmlns:cfgw="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.wsdl" |
| 17 |
xmlns:cat="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd" |
| 18 |
xmlns:order="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd" |
| 19 |
xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" |
| 20 |
targetNamespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" |
| 21 |
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" |
| 22 |
xmlns:wsi="http://ws-i.org/schemas/conformanceClaim/" |
| 23 |
> |
| 24 |
|
| 25 |
<wsdl:documentation> |
| 26 |
This WSDL document describes the Retailer service for the WS-I Basic Sample Application. This |
| 27 |
service is part of a supply chain management system. It is used to demonstrate a web service that is conformant |
| 28 |
with the Basic Profile and to show how different web service platforms can interoperate. |
| 29 |
</wsdl:documentation> |
| 30 |
|
| 31 |
<wsdl:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.wsdl" location="Configuration.wsdl"/> |
| 32 |
|
| 33 |
<wsdl:types> |
| 34 |
<xs:schema> |
| 35 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd" schemaLocation="RetailCatalog.xsd"/> |
| 36 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd" schemaLocation="RetailOrder.xsd"/> |
| 37 |
<xs:import namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd" schemaLocation="Configuration.xsd"/> |
| 38 |
</xs:schema> |
| 39 |
</wsdl:types> |
| 40 |
|
| 41 |
<wsdl:message name="getCatalogRequest" /> |
| 42 |
<wsdl:message name="getCatalogResponse"> |
| 43 |
<wsdl:part name="return" type="cat:CatalogType"> |
| 44 |
<wsdl:documentation>the product catalog</wsdl:documentation> |
| 45 |
</wsdl:part> |
| 46 |
</wsdl:message> |
| 47 |
<wsdl:message name="submitOrderRequest"> |
| 48 |
<wsdl:part name="PartsOrder" type="order:PartsOrderType"><wsdl:documentation>XML structure holding product/quantity pairs</wsdl:documentation></wsdl:part> |
| 49 |
<wsdl:part name="CustomerDetails" type="order:CustomerDetailsType"/> |
| 50 |
<wsdl:part name="ConfigurationHeader" element="cfg:Configuration"/> |
| 51 |
</wsdl:message> |
| 52 |
<wsdl:message name="submitOrderResponse"> |
| 53 |
<wsdl:part name="return" type="order:PartsOrderResponseType"> |
| 54 |
<wsdl:documentation>XML structure holding product/quantity ordered pairs, with optional failure message</wsdl:documentation> |
| 55 |
</wsdl:part> |
| 56 |
</wsdl:message> |
| 57 |
<wsdl:message name="BadOrderFault"> |
| 58 |
<wsdl:part name="Reason" element="order:BadOrderReason"/> |
| 59 |
</wsdl:message> |
| 60 |
<wsdl:message name="InvalidProductCodeFault"> |
| 61 |
<wsdl:part name="InvalidProductCode" element="order:InvalidProductCode"/> |
| 62 |
</wsdl:message> |
| 63 |
|
| 64 |
<wsdl:portType name="RetailerPortType"> |
| 65 |
<wsdl:operation name="getCatalog"> |
| 66 |
<wsdl:documentation>returns a product catalog</wsdl:documentation> |
| 67 |
<wsdl:input message="tns:getCatalogRequest" name="getCatalogRequest"/> |
| 68 |
<wsdl:output message="tns:getCatalogResponse" name="getCatalogResponse"/> |
| 69 |
</wsdl:operation> |
| 70 |
<wsdl:operation name="submitOrder"> |
| 71 |
<wsdl:documentation>Accept an order for quantities of multiple products</wsdl:documentation> |
| 72 |
<wsdl:input message="tns:submitOrderRequest" name="submitOrderRequest"/> |
| 73 |
<wsdl:output message="tns:submitOrderResponse" name="submitOrderResponse"/> |
| 74 |
<wsdl:fault name="BadOrder" message="tns:BadOrderFault"/> |
| 75 |
<wsdl:fault name="InvalidProductCode" message="tns:InvalidProductCodeFault"/> |
| 76 |
<wsdl:fault name="ConfigurationFault" message="cfgw:ConfigurationFaultMessage"/> |
| 77 |
</wsdl:operation> |
| 78 |
</wsdl:portType> |
| 79 |
|
| 80 |
<wsdl:binding name="RetailerSoapBinding" type="tns:RetailerPortType"> |
| 81 |
<wsdl:documentation> |
| 82 |
<wsi:Claim conformsTo="http://ws-i.org/profiles/basic1.0/" /> |
| 83 |
</wsdl:documentation> |
| 84 |
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> |
| 85 |
<wsdl:operation name="getCatalog"> |
| 86 |
<soap:operation soapAction="" style="rpc"/> |
| 87 |
<wsdl:input> |
| 88 |
<soap:body use="literal" namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"/> |
| 89 |
</wsdl:input> |
| 90 |
<wsdl:output> |
| 91 |
<soap:body use="literal" namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"/> |
| 92 |
</wsdl:output> |
| 93 |
</wsdl:operation> |
| 94 |
<wsdl:operation name="submitOrder"> |
| 95 |
<soap:operation soapAction="" style="rpc"/> |
| 96 |
<wsdl:input> |
| 97 |
<soap:body use="literal" namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl" |
| 98 |
parts="PartsOrder CustomerDetails" /> |
| 99 |
<soap:header message="tns:submitOrderRequest" part="ConfigurationHeader" use="literal" wsdl:required="true" > |
| 100 |
<soap:headerfault message="cfgw:ConfigurationFaultMessage" part="ConfigurationFault" use="literal" /> |
| 101 |
</soap:header> |
| 102 |
</wsdl:input> |
| 103 |
<wsdl:output> |
| 104 |
<soap:body use="literal" namespace="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"/> |
| 105 |
</wsdl:output> |
| 106 |
<wsdl:fault name="BadOrder"> |
| 107 |
<soap:fault name="BadOrder" use="literal"/> |
| 108 |
</wsdl:fault> |
| 109 |
<wsdl:fault name="InvalidProductCode"> |
| 110 |
<soap:fault name="InvalidProductCode" use="literal"/> |
| 111 |
</wsdl:fault> |
| 112 |
</wsdl:operation> |
| 113 |
</wsdl:binding> |
| 114 |
</wsdl:definitions> |
| 115 |
|
| 116 |
|
| 117 |
<!-- The following is an example of a getCatalog SOAP request message compliant with the above WSDL: |
| 118 |
|
| 119 |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
| 120 |
<SOAP-ENV:Body> |
| 121 |
<ns1:getCatalog xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"> |
| 122 |
</ns1:getCatalog> |
| 123 |
</SOAP-ENV:Body> |
| 124 |
</SOAP-ENV:Envelope> |
| 125 |
|
| 126 |
The following is an example of a getCatalog SOAP response message compliant with the above WSDL: |
| 127 |
|
| 128 |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
| 129 |
<SOAP-ENV:Body> |
| 130 |
<ns1:getCatalogResponse xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"> |
| 131 |
<return> |
| 132 |
<Item xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd"> |
| 133 |
<name>TV,Brand1</name> |
| 134 |
<description>24", Color, Advanced Velocit Scan Modular</description> |
| 135 |
<productNumber>605001</productNumber> |
| 136 |
<category>TV</category> |
| 137 |
<brand>Brand1</brand> |
| 138 |
<price>299.95</price> |
| 139 |
</Item> |
| 140 |
<Item xmlns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailCatalog.xsd"> |
| 141 |
<name>TV, Brand2</name> |
| 142 |
<description>32", Super Slim Flat Panel Plasma</description> |
| 143 |
<productNumber>605002</productNumber> |
| 144 |
<category>TV</category> |
| 145 |
<brand>Brand2</brand> |
| 146 |
<price>1499.99</price> |
| 147 |
</Item> |
| 148 |
</return> |
| 149 |
</ns1:getCatalogResponse> |
| 150 |
</SOAP-ENV:Body> |
| 151 |
</SOAP-ENV:Envelope> |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
The following is an example of a submitOrder SOAP request message compliant with the above WSDL: |
| 156 |
|
| 157 |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
| 158 |
<SOAP-ENV:Header> |
| 159 |
<h:Configuration |
| 160 |
xmlns:h="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Configuration.xsd"> |
| 161 |
<h:UserId>[email protected]</h:UserId> |
| 162 |
<h:ServiceUrl Role="LoggingFacility">http://example1/SampleApp/SCM/LoggingFacility</h:ServiceUrl> |
| 163 |
<h:ServiceUrl Role="Retailer">http://example2/wsi/soaprpc/wsi/RetailerImpl</h:ServiceUrl> |
| 164 |
<h:ServiceUrl Role="WarehouseA">http://example3/wsi/soaprpc/wsi/WarehouseAImpl</h:ServiceUrl> |
| 165 |
<h:ServiceUrl Role="WarehouseB">http://example4/wsi/soaprpc/wsi/WarehouseBImpl</h:ServiceUrl> |
| 166 |
<h:ServiceUrl Role="WarehouseC">http://example5/wsi/soaprpc/wsi/WarehouseCImpl</h:ServiceUrl> |
| 167 |
<h:ServiceUrl Role="ManufacturerA">http://example6/ws-i_sample/ManufacturerA</h:ServiceUrl> |
| 168 |
<h:ServiceUrl Role="ManufacturerB">http://example7/ws-i_sample/ManufacturerB</h:ServiceUrl> |
| 169 |
<h:ServiceUrl Role="ManufacturerC">http://example8/ws-i_sample/ManufacturerC</h:ServiceUrl> |
| 170 |
</h:Configuration> |
| 171 |
</SOAP-ENV:Header> |
| 172 |
<SOAP-ENV:Body> |
| 173 |
<ns1:submitOrder xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"> |
| 174 |
<PartsOrder xmlns:p="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd"> |
| 175 |
<p:Item> |
| 176 |
<p:productNumber>605006</p:productNumber> |
| 177 |
<p:quantity>182</p:quantity> |
| 178 |
<p:price>3.99</p:price> |
| 179 |
</p:Item> |
| 180 |
<p:Item><p:productNumber>605002</p:productNumber> |
| 181 |
<p:quantity>4</p:quantity> |
| 182 |
<p:price>3.99</p:price> |
| 183 |
</p:Item> |
| 184 |
<p:Item> |
| 185 |
<p:productNumber>605003</p:productNumber> |
| 186 |
<p:quantity>82</p:quantity> |
| 187 |
<p:price>7.99</p:price> |
| 188 |
</p:Item> |
| 189 |
</PartsOrder> |
| 190 |
<CustomerDetails xmlns:c="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd"> |
| 191 |
<c:custnbr>ABCD999999999EFG</c:custnbr> |
| 192 |
<c:name>Joe Bloggs</c:name> |
| 193 |
<c:street1 /> |
| 194 |
<c:city /> |
| 195 |
<c:state>NH</c:state> |
| 196 |
<c:zip>03870</c:zip> |
| 197 |
<c:country>USA</c:country> |
| 198 |
</CustomerDetails> |
| 199 |
</ns1:submitOrder> |
| 200 |
</SOAP-ENV:Body> |
| 201 |
</SOAP-ENV:Envelope> |
| 202 |
|
| 203 |
The following is an example of a submitOrder SOAP response message that is compliant with the WSDL: |
| 204 |
|
| 205 |
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> |
| 206 |
<SOAP-ENV:Body> |
| 207 |
<ns1:submitOrderResponse xmlns:ns1="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/Retailer.wsdl"> |
| 208 |
<return xmlns:ns2="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/RetailOrder.xsd"> |
| 209 |
<ns2:Item> |
| 210 |
<ns2:productNumber>605002</ns2:productNumber> |
| 211 |
<ns2:quantity>4</ns2:quantity> |
| 212 |
<ns2:price>3.99</ns2:price> |
| 213 |
<ns2:comment>in stock from WarehouseA</ns2:comment> |
| 214 |
</ns2:Item> |
| 215 |
<ns2:Item> |
| 216 |
<ns2:productNumber>605006</ns2:productNumber> |
| 217 |
<ns2:quantity>0</ns2:quantity> |
| 218 |
<ns2:price>0</ns2:price> |
| 219 |
<ns2:comment>insufficient stock</ns2:comment> |
| 220 |
</ns2:Item> |
| 221 |
<ns2:Item> |
| 222 |
<ns2:productNumber>605003</ns2:productNumber> |
| 223 |
<ns2:quantity>0</ns2:quantity> |
| 224 |
<ns2:price>0</ns2:price> |
| 225 |
<ns2:comment>insufficient stock</ns2:comment> |
| 226 |
</ns2:Item> |
| 227 |
</return> |
| 228 |
</ns1:submitOrderResponse> |
| 229 |
</SOAP-ENV:Body> |
| 230 |
</SOAP-ENV:Envelope> |
| 231 |
|
| 232 |
|
| 233 |
--> |