I am invoking external webservice from Salesforce. For some cases if the response is not available the external system will send status message as SOAP default in the Response Header.

<ns0:SOAPFault xmlns:ns0="http://www.abc.com/schemas/Technical/CommonV2.0">
        <ns0:ErrorMsg>Material xxxx-yyyy does not exist.</ns0:ErrorMsg>
        <ns0:ErrorType>Business Error</ns0:ErrorType>

May I know how to process this SoapFault in salesforce?

1 Answer 1


Right now salesforce does not return the Soap Fault element or truncates it or something. I do not recall exactly but here is a post with a similar question with all the info you need

Accessing the entire fault response from a CalloutException

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .