aspose file tools
The moose likes Web Services and the fly likes How to send soap respone to a different end point or client using ws-addressing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to send soap respone to a different end point or client using ws-addressing" Watch "How to send soap respone to a different end point or client using ws-addressing" New topic
Author

How to send soap respone to a different end point or client using ws-addressing

khan gul
Ranch Hand

Joined: Jan 27, 2011
Posts: 30
Hi,
I am playing around with WS-Addressing and what I failed to achieve is, how I can send a soap response to a client or end point that has not initiated the request. For example, I am sending the following SOAP Message to end point http://localhost:9000/SoapContext/SoapPort and would like to recieve the response at http://localhost:18081/myservice/hello


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://apache.org/hello_world_soap_http/types">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>http://apache.org/hello_world_soap_http/Greeter/sayHiRequest</wsa:Action>
<wsa:ReplyTo>
<wsa:Address>http://localhost:18081/myservice/hello</wsa:Address>
</wsa:ReplyTo>
<wsa:MessageID>123456</wsa:MessageID>
<wsa:To>http://localhost:9000/SoapContext/SoapPort</wsa:To>
</soapenv:Header>
<soapenv:Body>
<typ:sayHi/>
</soapenv:Body>
</soapenv:Envelope>


But What i don't know is how to consume the SOAP Message at http://localhost:18081/myservice/hello. Can I consume the soap message using a servlet? or do I have to create a new end point ?
Thanks,
gul
 
I agree. Here's the link: jrebel
 
subject: How to send soap respone to a different end point or client using ws-addressing
 
Similar Threads
remove xml element xsl
Using WS-RM with Axis2 1.5?
Session Management in web service
WS Addressing in WebSphere 5.1
WS-Address working example