Manuel Darveau Manuel Darveau - 1 year ago 182
Java Question

Log axis2 client requests and responses

I would like to log all requests/responses made by an axis2 client.
I tried to create a file called

as describer in but without success (I don't get a log file).

Requests are made over https and I am not sure if it matters. I tried

<transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>


<transport name="https" pivot="java:org.apache.axis.transport.http.HTTPSender"/>

without success.

Answer Source

For Axis2-client side logging for SOAP messages, just use the following JVM arguments while running your standalone client or include this VM args in your Appln. Server start script,

JAVA_OPTS=-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.httpclient.wire=debug

C:\java %JAVA_OPTS%

Cheers, Sankar

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download