Axis2 SOAP message logging

less than 1 minute read

From time to time I want to read the messages that are send from Axis to the endpoint.

The solution is quite simple if you already use a logging framework for your application which you definitely should…

Set some properties in your file and you’re done:

or use the command line to set some properties in case you haven’t used a logger before


Noteworthy that you might disable the gzip compression unless you read gzip-streams fluently.

Options options = serviceStub.getService()._getServiceClient().getOptions(); options.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.FALSE); options.setProperty(HTTPConstants.MC_GZIP_REQUEST, Boolean.FALSE);