AnsweredAssumed Answered

Catch the soap fault and error response before it is returned

Question asked by res13 on Jun 24, 2016
Latest reply on Jun 24, 2016 by Abhishek.Subramanya

We would like to log the soap fault (for published web services) and the error response (for published rest services) before it is returned back to the requestor. In the service policy we have a lot of "Customize SOAP Fault Response" or "Customize Error Response" assertions which override the default error response while a service policy is running. At the end of each service policy we perform a log to an external database. This log must be done before the error is thrown back to the requestor, therefore the content of the error is not yet in the response message.

 

Is there any possibility to get the error message which will be returned to the requestor, before it is thrown, so we can log what really goes back??

Outcomes