JavaBlog.fr / Java.lu Java Java : Web Service : Tracing XML requests/responses with JAX-WS

Java : Web Service : Tracing XML requests/responses with JAX-WS

Hi,
Following options enable logging of all communication to the console. Set these options in the code, as command line parameter using -D or as environment variable:

01static {
02    //
03    System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");
04    System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");
05    System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");
06    System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");
07 
08 
09    //System.setProperty("javax.net.ssl.trustStore", System.getProperty("user.dir") + "\\mycertificates");
10    //System.setProperty("javax.net.ssl.trustStorePassword", "JavaLu");
11    //System.setProperty("javax.net.ssl.keyStore", System.getProperty("user.dir") + "\\mycertificates");
12    //System.setProperty("javax.net.ssl.keyStorePassword", "JavaLu");
13 
14}

Best regards,

Huseyin

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.

Related Post