| Author |
Soap Handler question
|
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
Hi All,
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?
Thanks.
|
Be Humble... Be Nice.
|
 |
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
|
|
|
What about just logging it and the print that as you choose.
|
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
|
 |
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
Bosun Bello wrote:What about just logging it and the print that as you choose.
Hi,
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?
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
The problem is that by the time the error is generated, the actual request stream has been consumed by the parser and parser internals are pretty hard to get at.
Right off-hand I know of no way to get it back on the server side. You might use something like SOAPui or TCPMON on the client side to record ALL requests and later figure out which caused the error.
Bill
|
Java Resources at www.wbrogden.com
|
 |
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
William Brogden wrote:The problem is that by the time the error is generated, the actual request stream has been consumed by the parser and parser internals are pretty hard to get at.
Right off-hand I know of no way to get it back on the server side. You might use something like SOAPui or TCPMON on the client side to record ALL requests and later figure out which caused the error.
Bill
Thanks for replying.
|
 |
 |
|
|
subject: Soap Handler question
|
|
|