Http response to a SOAP webhook request must be a SOAP response and not JSON

The webhook event payload sent to the webhook endpoint in the app is a SOAP request and the response is expected to a SOAP response message. However, the response sent by the platform is JSON.

Below is the SOAP request made to the webhook:

        <notifications xmlns="">
            <SessionId xsi:nil="true"/>
                <sObject xsi:type="sf:Contact" xmlns:sf="">
                    <sf:LastName>Sherlock Holmes</sf:LastName>

The response from the webhook is
“success”: true

This is a JSON response, however, the response is expected to be a SOAP response.

Expected response:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="">
            <notificationsResponse xmlns="">

Since the response is JSON the salesforce platform considers the event to have failed. The salesforce platform retries the failed events for 24 hours with exponential back-off. Thus, a lot of duplicate/redundant message get triggered.

Hi @Sharon_Kumar,

If I understand you problem correctly, you are looking for a way to have custom response (as expected SOAP response) when post request is made to webhook generate by your app? Am I correct?

Hey @Saif

yes thats what i’m looking for

The Developer has informed that errors are not being seen currently. Closing this issue for now. If any of you sees this error or similar, please feel free to create a new topic(and reference to this thread if helpful)

1 Like