Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log4j and soap

 
Kevin Eddy
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin Eddy wrote:Does that work for Axis1???

No idea, I rarely use Axis.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic