Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to catch a request SOAP message?

 
Pablo Zuazua
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, I'm building a web application that will receive a SOAP message and will reply with another SOAP message. The SOAP message I will receive from a external provider is like the next one:


and the response it's like this:



I'm able to send the response, you can check it here: Webpage. But I don´t know how to catch the request SOAP message, ¿how can I obtain it?, because I must store some of the data of the message.

I know my solution it's not the best but I had to built it fast, particularly the sending message part.
Thanks in advance.

PD: I'm using JAVA, jsp, NetBeans and Tomcat.
 
Pablo Zuazua
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I already solved this issue, I did what it follows:

I created a servlet that it's gonna be the entry point.
  • This servlet intercepts the message.
  • I use the request object to get the InputStream.


  • Then I have to change the content to a String.



  • Now I can extract the data I want from the String.
  • And last I serve the response.



  • Maybe this helps someone who has the same problem or similar.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic