This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!