Databases Reference
In-Depth Information
Importing the WSDL document into the
Service Bus
Before we create a proxy service that implements our abstract WSDL, we need to
define the bindings for the service, which in our case will be Document/literal. We
can either modify the WSDL file to include the bindings before we import it, or add
in the bindings after we have imported the WSDL into the Service Bus.
Defining the SOAP bindings for our service and each of its corresponding operations
is pretty straightforward, as we have already settled on Document/literal for this.
For example, the bindings for our
orderFulfillment
service are as follows:
<bindingxmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
name="orderFulfillmentBinding"
type="tns:orderFulfillment">
<soap:binding
style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operationname="setShippingInstruction">
<soap:operation
style="document"
soapAction="setShippingInstruction"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
<operationname="submitInvoice">
<soap:operation
style="document"
soapAction="submitInvoice"/>
<input>
<soap:body use="literal"/
>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
…
</binding>