• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

log4j and soap

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Kevin Eddy wrote:Does that work for Axis1???


No idea, I rarely use Axis.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic