How to intercept response and xml request during web service call?

I wonder if there is some neat way to intercept the xml request request while calling the java webservice and xml method in response? I do not want to print these xmls to standard output, but to "catch" them on some line.

+3
source share
5 answers

Yes, usually you use a soap proxy, for example soapUI . Just specify your webservice client in the proxy server and the proxy server on the real service.

+7
source

Fiddler or SoapUI will allow you to see and even EDIT a request / response along a route.

+1
source

, , .

.

, , - , , .

0
source

If you can deploy servlets to a server by providing a web service, you might consider creating and deploying a simple filter. You can use this to register incoming and outgoing traffic.

0
source

Source: https://habr.com/ru/post/1702351/


All Articles