function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SalesForce API 18SalesForce API 18 

Bad Envelope Tag: html on Outbound Message

We have an outbound message that goes from to a endpoint we created. When the message is sent from salesforce it gets stuck in the salesforce queue with the following delivery failure reason: "org.xml.sax.SAXException: Bad envelope tag: html". We proceeded to capture the outbound message using Requestbin. Then we took that message and sent it to our endpoint manually using Postman and it was processed successfully. Please help us understand what could be causing this issue.
It sounds like you are returning HTML to from the messaging endpoint instead of the expected XML/SOAP reciept of the message.  What is the format / content of the response from the messaging endpoint?
SalesForce API 18SalesForce API 18
It turned out that our endpoint was throwing an exception because it could not log in to salesforce due to invalid credentials(because a web.config file had been inadvertently changed). Our endpoint was returning an error html page which of course salesforce couldn’t handle. The tough part about troubleshooting this problem was that there is no way to actually see the message returned by our endpoint in salesforce.