This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Services and the fly likes Logging with axis 1.4 and log4j. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Logging with axis 1.4 and log4j." Watch "Logging with axis 1.4 and log4j." New topic

Logging with axis 1.4 and log4j.

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 85
I am attempting to log all outgoing web service calls and responses going through axis 1.4.

I have set my file like so:

The log4j properties are definitely being captured, as I get a jf3axis.log file.

However, I don't get the outgoing/incoming web service XML... what am I doing wrong?


Dennis Labajo

Joined: Dec 12, 2009
Posts: 27
I've done logging of this sort in the past but using jax-ws SOAPHandler and SOAPMessageContext. I'm not familiar with Axis but if you could find something equivalent in Axis that will enable you to intercept inbound/outbound soap message, I would recommend using it.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Logging with axis 1.4 and log4j.
It's not a secret anymore!