Java Reference
In-Depth Information
<Action xmlns="http://www.w3.org/2005/08/addressing">
http://soacookbook.com/name
</Action>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>
http://www.w3.org/2005/08/addressing/anonymous
</Address>
</ReplyTo>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">
uuid:8c5ff38d-6a7b-477e-8558-2b6572f7ba84
</MessageID>
</S:Header>
<S:Body>
<ns2:sayHello xmlns:ns2="http://soacookbook.com/">
<arg0>Eben</arg0>
</ns2:sayHello>
</S:Body>
</S:Envelope>
NOTE
Recall that if you want to view the SOAP messages as they are being sent on the wire, put the WSIT
webservices-rt.jaron your classpath and add the following code to your invocation. In your IDE, you
can specify this as a “run” argument. I mention it again here because addressing adds so many head-
ers that it becomes particularly useful.
-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true
As you can see from the dump of this SOAP message, using the AddressingFeature message
adds considerable length to your messages.
Invoking the service with this request will give you the desired output. The SOAP response
message comes in the following form (the HTTP headers have been omitted because there's
nothing in them that's specific to Addressing):
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<To xmlns="http://www.w3.org/2005/08/addressing">
http://www.w3.org/2005/08/addressing/anonymous
</To>
<Action xmlns="http://www.w3.org/2005/08/addressing">
http://soacookbook.com/greeting
</Action>
Search WWH ::




Custom Search