MuleSoft · Web Service Consumer Connector

WSC:SOAP_FAULT

Short answer

WSC:SOAP_FAULT means the SOAP service returned a fault, or the response did not match the format in the WSDL. Read the fault text in error.errorMessage.payload.reason and the detail in error.errorMessage.payload.detail.

VerifiedLast verified

01Error text

MuleSoft error
Error type: WSC:SOAP_FAULT

02Likely causes

  • Error matching the SOAP response with the format provided by the WSDL.
  • Every CXF SOAP fault error is wrapped in a WSC:SOAP_FAULT.

03How to fix it

  1. In an error handler, read error.errorMessage.payload.reason for the fault text and error.errorMessage.payload.detail for the fault detail.
  2. Read error.errorMessage.attributes.statusCode and error.errorMessage.attributes.headers for the HTTP status and headers.
  3. Turn on wire logging for the HTTP transport: in log4j2.xml add <AsyncLogger name="org.mule.service.http.impl.service.HttpMessageLogger" level="DEBUG" />.
  4. Correct the request so the service accepts it.
  5. Handle the failure with an error handler of type WSC:SOAP_FAULT.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.