MuleSoft · Web Service Consumer Connector

WSC:EMPTY_RESPONSE

Short answer

WSC:EMPTY_RESPONSE occurs when mandatory fields are missing from the SOAP response (Illegal Empty Response). Inspect the HTTP status and headers on the error and check what the service actually returned.

VerifiedLast verified

01Error text

MuleSoft error
Error type: WSC:EMPTY_RESPONSE

02Likely causes

  • Mandatory fields are missing from the response (Illegal Empty Response).

03How to fix it

  1. In an error handler, read error.errorMessage.attributes.statusCode, reasonPhrase and headers. The payload is empty for this error.
  2. Turn on wire logging for the HTTP transport: in log4j2.xml add <AsyncLogger name="org.mule.service.http.impl.service.HttpMessageLogger" level="DEBUG" />.
  3. Check with the service owner why the response is empty.
  4. Handle the failure with an error handler of type WSC:EMPTY_RESPONSE.

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.