You are on page 1of 2

<wsdl:definitions name="PurchaseOrderService" targetNamespace="http://supply.com/PurchaseService/wsdl" mlns:tns="http://supply.com/ PurchaseService/wsdl" mlns: sd="http://www.w!.org/"##$/%&'Schema" mlns:soap(ind="http://schemas. mlsoap.org/wsdl/soap/" mlns:wsdl="http://schemas. mlsoap.org/wsdl/") .

(stract data type <wsdl:types) definitions < sd:schema targetNamespace="http://supply.com/PurchaseService/wsdl" < sd:comple *ype name="+ustomer,nfo*ype") < sd:se-uence) < sd:element name="+usNamer" type=" sd:string"/) < sd:element name="+us.ddress" type=" sd:string"/) </ sd:se-uence) </ sd:comple *ype) < sd:comple *ype name="PO*ype") < sd:se-uence) < sd:element name="PONum(er" type="integer"/) < sd:element name="PO/ate" type="string"/) </ sd:se-uence) </ sd:comple *ype) < sd:comple *ype name=",nvoice*ype") < sd:all) < sd:element name=",nvPrice" type="float"/) < sd:element name=",nv/ate" type="string"/) </ sd:all) </ sd:comple *ype) /ata that is sent </ sd:schema) </wsdl:types) <wsdl:message name="PO&essage") <wsdl:part name="PurchaseOrder" type="tns:PO*ype"/) < wsdl:part name="+ustomer,nfo" type="tns:+ustomer,nfo*ype"/) </wsdl:message) /ata that is returned <wsdl:message name=",nv&essage") <wsdl:part name=",nvoice" type="tns:,nvoice*ype"/) </wsdl:message) Port type with <wsdl:port*ype name="PurchaseOrderPort*ype") one operation .n operation with <wsdl:operation name="SendPurchase") re-uest 0input1 2 <wsdl:input message="tns:PO&essage"/) response 0output1 <wsdl:output message="tns:,nv&essage"/) message </wsdl:operation) </wsdl:port*ype) </wsdl:definitions)

Listing 1 Simple WSDL interface defintion

<wsdl:definitions) . 3 <import namespace="http://supply.com/PurchaseService/wsdl" location="http://supply.com PurchaseService/wsdl/PurchaseOrder4interface.wsdl"/) <544 location of 6S/' PO interface from 'isting4$44) <544 wsdl:(inding states a serialisation protocol for this service 44) <544 type attri(ute must match name of port*ype element in 'isting4$44) <wsdl:(inding name="PurchaseOrderSO.P7inding" type="tns:PurchaseOrderPort*ype") <544 leverage off soap(ind:(inding synchronous style 44) <soap(ind:(inding style="rpc" transport="http://schemas. mlsoap.org/soap/http/"/) <wsdl:operation name="SendPurchase")

<544 again (ind to SO.P 44) <soap(ind:operation soap.ction="http://supply.com/ PurchaseService/wsdl/ SendPurchase" style="rpc"/) <544 furthur specify that the messages in the wsdl:operation use SO.P 44) <wsdl:input) <soap(ind:(ody use="literal" namespace="http://supply.com/PurchaseService/wsdl"/) </wsdl:input) <wsdl:output) <soap(ind:(ody use=8 literal" namespace="http://supply.com/ PurchaseService/wsdl"/) </wsdl:output) </wsdl:operation) </wsdl:(inding)

7ind an a(stract operation to this implementation 2

map the a(stract input 2 output messages to these concrete messages

Service name

<wsdl:service name=8 PurchaseOrderService") <wsdl:port name=8 PurchaseOrderPort" (inding="tns:PurchaseOrderSO.P7inding") <544 give the (inding a networ9 endpoint address or :;, of service 44) <soap(ind:address location="http://supply.com:<#<#/PurchaseOrderService"/) </wsdl:port) </wsdl:service) </wsdl:definitions)

Networ9 address of service

Listing 2 WSDL implementation description

You might also like