Monday, January 6, 2014

View XML for SOAP messages with JAX-WS

Normally when using JAX-WS, getting the actual XML for the SOAP request and response is a pain. You have to use wireshark (an awesome tool, BTW)

But there is a simple trick to get the XML:

Add the following option when starting Java:

-Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true

Now the XML will be dumped to stand out.

No comments:

Post a Comment