| Author |
How to catch a request SOAP message?
|
Pablo Zuazua
Greenhorn
Joined: Feb 07, 2012
Posts: 6
|
|
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
Joined: Feb 07, 2012
Posts: 6
|
|
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.
|
 |
 |
|
|
subject: How to catch a request SOAP message?
|
|
|