Differences between revisions 7 and 8
Revision 7 as of 2005-11-17 23:20:00
Size: 534
Editor: JarmoDoc
Comment:
Revision 8 as of 2009-09-20 22:48:15
Size: 534
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
log4j.appender.HTTPLOG = org.apache.log4j.FileAppender[[BR]]
log4j.appender.HTTPLOG.layout = org.apache.log4j.PatternLayout[[BR]]
log4j.appender.HTTPLOG.layout.ConversionPattern = %m%n[[BR]]
log4j.appender.HTTPLOG.File = http.log[[BR]]
log4j.logger.org.apache.axis.transport.http.HTTPSender = DEBUG, HTTPLOG[[BR]]
log4j.appender.HTTPLOG = org.apache.log4j.FileAppender<<BR>>
log4j.appender.HTTPLOG.layout = org.apache.log4j.PatternLayout<<BR>>
log4j.appender.HTTPLOG.layout.ConversionPattern = %m%n<<BR>>
log4j.appender.HTTPLOG.File = http.log<<BR>>
log4j.logger.org.apache.axis.transport.http.HTTPSender = DEBUG, HTTPLOG<<BR>>

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)