| <?xml version="1.0"?> |
| <!-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --> |
| |
| <definitions targetNamespace="http://manufacturing.org/wsdl/purchase" |
| xmlns:sns="http://manufacturing.org/xsd/purchase" |
| xmlns:pos="http://manufacturing.org/wsdl/purchase" |
| xmlns:xsd="http://www.w3.org/2001/XMLSchema" |
| xmlns="http://schemas.xmlsoap.org/wsdl/" |
| xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"> |
| |
| <plnk:partnerLinkType name="purchasingLT"> |
| <plnk:role name="purchaseService"> |
| <plnk:portType name="pos:purchaseOrderPT"/> |
| <foo /> |
| </plnk:role> |
| </plnk:partnerLinkType> |
| |
| <plnk:partnerLinkType name="invoicingLT"> |
| <plnk:role name="invoiceService"> |
| <plnk:portType name="pos:computePricePT"/> |
| </plnk:role> |
| <plnk:role name="invoiceRequester"> |
| <plnk:portType name="pos:invoiceCallbackPT"/> |
| </plnk:role> |
| </plnk:partnerLinkType> |
| |
| <plnk:partnerLinkType name="shippingLT"> |
| <plnk:role name="shippingService"> |
| <plnk:portType name="pos:shippingPT"/> |
| </plnk:role> |
| <plnk:role name="shippingRequester"> |
| <plnk:portType name="pos:shippingCallbackPT"/> |
| </plnk:role> |
| </plnk:partnerLinkType> |
| |
| <plnk:partnerLinkType name="schedulingLT"> |
| <plnk:role name="schedulingService"> |
| <plnk:portType name="pos:schedulingPT"/> |
| </plnk:role> |
| </plnk:partnerLinkType> |
| |
| <import namespace="http://manufacturing.org/xsd/purchase" |
| location="http://manufacturing.org/xsd/purchase.xsd"/> |
| |
| <message name="POMessage"> |
| <part name="customerInfo" type="sns:customerInfo"/> |
| <part name="purchaseOrder" type="sns:purchaseOrder"/> |
| </message> |
| <message name="InvMessage"> |
| <part name="IVC" type="sns:Invoice"/> |
| </message> |
| <message name="orderFaultType"> |
| <part name="problemInfo" type="xsd:string"/> |
| </message> |
| <message name="shippingRequestMessage"> |
| <part name="customerInfo" type="sns:customerInfo"/> |
| </message> |
| <message name="shippingInfoMessage"> |
| <part name="shippingInfo" type="sns:shippingInfo"/> |
| </message> |
| <message name="scheduleMessage"> |
| <part name="schedule" type="sns:scheduleInfo"/> |
| </message> |
| |
| <!-- portTypes supported by the purchase order process --> |
| |
| <portType name="purchaseOrderPT"> |
| <operation name="sendPurchaseOrder"> |
| <input message="pos:POMessage"/> |
| <output message="pos:InvMessage"/> |
| <fault name="cannotCompleteOrder" |
| message="pos:orderFaultType"/> |
| </operation> |
| </portType> |
| <portType name="invoiceCallbackPT"> |
| <operation name="sendInvoice"> |
| <input message="pos:InvMessage"/> |
| </operation> |
| </portType> |
| <portType name="shippingCallbackPT"> |
| <operation name="sendSchedule"> |
| <input message="pos:scheduleMessage"/> |
| </operation> |
| </portType> |
| |
| <!-- portType supported by the invoice services --> |
| |
| <portType name="computePricePT"> |
| <operation name="initiatePriceCalculation"> |
| <input message="pos:POMessage"/> |
| </operation> |
| <operation name="sendShippingPrice"> |
| <input message="pos:shippingInfoMessage"/> |
| </operation> |
| </portType> |
| |
| <!-- portType supported by the shipping service --> |
| |
| <portType name="shippingPT"> |
| <operation name="requestShipping"> |
| <input message="pos:shippingRequestMessage"/> |
| <output message="pos:shippingInfoMessage"/> |
| <fault name="cannotCompleteOrder" |
| message="pos:orderFaultType"/> |
| </operation> |
| </portType> |
| |
| <!-- portType supported by the production scheduling process --> |
| |
| <portType name="schedulingPT"> |
| <operation name="requestProductionScheduling"> |
| <input message="pos:POMessage"/> |
| </operation> |
| <operation name="sendShipingSchedule"> |
| <input message="pos:scheduleMessage"/> |
| </operation> |
| </portType> |
| |
| </definitions> |