Java Reference
In-Depth Information
Abstracting Addressing in the Transport Layer from
WSDL
Problem
You are developing a service starting from WSDL, and want to abstract the addressing mech-
anism for message exchanges in your services away from the transport specified in your bind-
ing in order to make your services more interoperable.
Solution
In your WSDL, import the addressing namespace, add addressing to the binding section, and
add the wsaw:Action attribute to your operations. The code to do so looks like this:
<definitions name="AddNumbers"...
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl">
...
<operation name="doWork">
<input message="tns:doWork" wsaw:Action="workIn"/>
<output message="tns:doWorkResponse" wsaw:Action="workOut"/>
<fault name="doWorkFault" message="tns:workFault"
wsaw:Action="doWorkFault"/>
</operation>
<binding name="MyServiceBinding" type="tns:MyPortType">
<wsaw:UsingAddressing wsdl:required="false" />
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
Search WWH ::




Custom Search