Friday, February 21, 2014

System properties to be set to display sent and received http payload from a java client program

Below system properties have to be set to display outgoing and receiving http soap message from a java client that invokes a soap based webservice.


System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");
System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");
System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");