Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Enterprise Java integration with Delphi and Free Pascal applications - new release 2019.02
https://coderanch.com/t/705708/Enterprise-Java-integration-Delphi-Free
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!