Salesforce Webhook response being wrapped in HTML by n8n.cloud environment

Hello,

I am trying to respond to a Salesforce Outbound Message webhook, which requires a text/xml SOAP acknowledgement.

My n8n cloud instance is intercepting the XML response and wrapping it in an HTML document, which causes the integration to fail. Salesforce is receiving an HTML page instead of the raw XML.

My Webhook URL: https://sinteks.app.n8n.cloud/webhook/salesforce/shooting-updated

The expected XML response body is:

XML

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><notificationsResponse xmlns="http://soap.sforce.com/2005/09/outbound"><Ack>true</Ack></notificationsResponse></soapenv:Body></soapenv:Envelope>

The error Salesforce receives proves it’s getting HTML: org.xml.sax.SAXParseException; The value of attribute "srcdoc" associated with an element type...

Proof of an Environment Issue: I have proven this is not a workflow issue by creating a test workflow with a single Webhook node set to respond directly “On Received” with the hardcoded XML above. The error still occurs. This isolates the problem to the n8n.cloud platform’s response handling.

Please investigate why my text/xml responses are being wrapped in HTML and resolve this.

Thank you.

Have you been able to solve this? My ack to the outbound message broke after I upgrade to the latest stable version of N8N.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.