Tuesday, May 12, 2009

logging the XML payload with Axis, XFire

When using Axis to send data to a web service, you can set the logger level on org.apache.axis.transport.http.HTTPSender to DEBUG to see what's going out.

When using Xfire to receive data, you can set the logger level on org.apache.axis.transport.http.HTTPSender to DEBUG to see what's coming in.

Here's a sample in log4j.properties:


log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG
log4j.logger.org.codehaus.xfire = DEBUG

1 comment:

Anonymous said...

Hi, very useful tip! Thanks