I wonder if there is some neat way to intercept xml request send during java webservice method invocation and xml given in response? I don't want to print those xmls to standard output but to "catch" them in some string.
+4
A:
Yes, normally you use a soap proxy like soapUI. Simply point your webservice client at the proxy and the proxy at the real service.
krosenvold
2009-01-28 08:30:47
A:
Yes, you can use a packet sniffer and see what's in your traffic.
I have never got that far.
What I have used is a very simple home made protocol, that reads all the input, print it and re-send all the info.
OscarRyz
2009-01-28 08:31:58
A:
http://stackoverflow.com/questions/120022/tool-to-monitor-http-tcp-etc-web-service-traffic may be useful.
Hemal Pandya
2009-01-28 08:52:21
A:
If you can deploy servlets on the server providing the web service you might consider writing and deploying a simple Filter. You can use this to log both the inbound and the outbound traffic.
Jeroen van Bergen
2009-01-28 09:26:17
A:
Fiddler or SoapUI will let you see and even CHANGE the request/response in route.
Chris Nava
2009-01-28 23:24:25