public static void enableSoapLogging ( final boolean bServerDebug , final boolean bClientDebug ) { // Server debug mode String sDebug = Boolean . toString ( bServerDebug ) ; SystemProperties . setPropertyValue ( "com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump" , sDebug ) ; SystemProperties . setPropertyValue ( "com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump" , sDebug ) ; // Client debug mode sDebug = Boolean . toString ( bClientDebug ) ; SystemProperties . setPropertyValue ( "com.sun.xml.ws.transport.http.HttpTransportPipe.dump" , sDebug ) ; SystemProperties . setPropertyValue ( "com.sun.xml.internal.ws.transport.http.HttpTransportPipe.dump" , sDebug ) ; // Enlarge dump size if ( bServerDebug || bClientDebug ) { final String sValue = Integer . toString ( 2 * CGlobal . BYTES_PER_MEGABYTE ) ; SystemProperties . setPropertyValue ( "com.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold" , sValue ) ; SystemProperties . setPropertyValue ( "com.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold" , sValue ) ; } else { SystemProperties . removePropertyValue ( "com.sun.xml.ws.transport.http.HttpAdapter.dumpTreshold" ) ; SystemProperties . removePropertyValue ( "com.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold" ) ; } }
Enable the JAX - WS SOAP debugging . This shows the exchanged SOAP messages in the log file . By default this logging is disabled .