Capture output of WS Security Handler

Hi all,

My requirement is such that if WS Security fails for a particular request, I need to store that request.

I created a pre and a post handler to log the message status. The pre handler is called before WS Security handler and the post after it. The post handler is not called if WS Security handler fails.

I have also registered a fault handler, but that also does not get invoked. I tried putting it before and after the WS Handler but nothing works.

  1. How do I capture and process WS Security related errors?

  2. Can I call the WS Security handler from my custom handler??

Thanks