How do I capture and save XML to file?

You can save XML (and HTTP) to file using log4j on either client or server. Add the following to log4j.properties and ensure that this file is in your classpath:

log4j.appender.HTTPLOG = org.apache.log4j.FileAppender
log4j.appender.HTTPLOG.layout = org.apache.log4j.PatternLayout
log4j.appender.HTTPLOG.layout.ConversionPattern = %m%n
log4j.appender.HTTPLOG.File = http.log
log4j.logger.org.apache.axis.transport.http.HTTPSender = DEBUG, HTTPLOG

FrontPage/Axis/FAQ (last edited 2009-09-20 22:48:15 by localhost)