I have written a soap handler for a web service I am calling. I have the log level set as fatal for handleFault method. How do I print the request message along with the fault message when a fault happens?
What about just logging it and the print that as you choose.
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Nov 10, 2007
Bosun Bello wrote:What about just logging it and the print that as you choose.
Sorry, I did not understand. Currently I have the code as below. If you look at it, when there is a fault, logToSystemOut2 method is called and the fault (either inbound or outbound) is printed. I want to print the request messsage only if there is a fault. How can I do it?