• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Soap Handler question

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bosun Bello
Ranch Hand
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about just logging it and the print that as you choose.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic