File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes log4j and soap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "log4j and soap" Watch "log4j and soap" New topic
Author

log4j and soap

Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
Can anyone tell me how to configure log4j.xml to dump SOAP messages to the log file? I think the setting below might work for a .properties but the application is using a .xml to configure log4j. I'm unsure how this would be set for .xml

log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you take a look at source code of the HTTPSender class from Axis2, it does not seem like there is any logging of SOAP messages implemented.
Thus, I suspect that you have to implement such logging yourself using a handler.
Update:
Here are instructions for implementing logging of SOAP messages for Axis2:
http://ws.apache.org/axis2/1_1/modules.html

Best wishes!
Kevin Eddy
Ranch Hand

Joined: Feb 24, 2010
Posts: 74
Ivan Krizsan wrote:Hi!
If you take a look at source code of the HTTPSender class from Axis2, it does not seem like there is any logging of SOAP messages implemented.
Thus, I suspect that you have to implement such logging yourself using a handler.
Update:
Here are instructions for implementing logging of SOAP messages for Axis2:
http://ws.apache.org/axis2/1_1/modules.html

Best wishes!


Does that work for Axis1???
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Kevin Eddy wrote:Does that work for Axis1???

No idea, I rarely use Axis.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j and soap
 
Similar Threads
log4j in WebSphere5.1
EJB + log4j
tutorials on log4j and struts
log warning messages
JoranConfigurator