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?


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.