1 Reply Latest reply on Nov 25, 2014 12:26 PM by MarcG

    SOAP Fault or Response


      Hi dear members,

      I would like to know if there is any best practices on whether to use SOAP Fault or a response object for returning messages including business errors

      in request-response operations.


      Can someone refer to some documentation on this topic?

        • 1. Re: SOAP Fault or Response

          In general I prefer to use SOAP faults for exceptions as they force the caller to handle them. When returning errors in a response object the caller can just not check for the response status and continue, which may lead to new failures on subsequent calls. Also, when calling services from an environment as BPEL, using soap faults helps you to use built in error handling like the error hospital and transaction support which would be far more difficult to do when the service would return an error status as part of a normal response.