I am interested in capturing any Soap Faults that occur and turning them into standard responses with the state of the fault bundled into a ResponseContext element. Does anyone know how to intercept a SoapFault and return processing down the standard response chain?
The reason for wanting this behaviour is that I want the client to only have to concern itself with a request and response. Within the response the client has the opportunity to check for success of the request. If success flag is false then they have the option of reviewing the response code, displayableMessage, and errorMessage in the response. The only exceptions the client would have to handle are connection refused (if my service is down).
Any help and/or suggestions are appreciated.
Although it is not recommended to throw away the SoapFaults, if you want, it is possible using interceptors to catch the Fault and add it to the message context being returned.