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
Keenan WojniczKeenan Wojnicz 

Why am i receiving this 404 error during outbound messaging?

When the outbound message from salesforce is initiated the following error is thrown from Salesforce end.

Delivery Failure Reason: (404)Not Found

In addition in our server log the following error is thrown.
  [nio-8080-exec-9] o.s.ws.server.EndpointNotFound           : No endpoint mapping found for [SaajSoapMessage {http://soap.sforce.com/2005/09/outbound}notifications]

For some background:
We have three endpoints defined in our application, namely for Account, Contact, and Opportunity entities of Salesforce. All three of our servers are having the same namespace and the same notification data type. In order to differentiate the messages we have different tags for <soap:operation soapAction=""/> for each web service in the wsdl.

Our services works fine when tested with a SOAP testing tool, eg: SOAP UI. We have tested for all three entities successfully. The error is only when it is initiated from Salesforce via outbound messages which are fired from a workflow rule.

Why does this error occur when fired directly from Salesforce but not from SOAP UI? And what is causing this error?
Sumeet_ForceSumeet_Force
hi....could you please share endpoint URL mentioned in Salesforce ?
Rupal KumarRupal Kumar
Hi Keenan ,

So, salesforce.com send the message to URL you configured, and the server at that address returned a HTTP 404 error. check your URL, check that its publicly reachable.

Thanks
Rupal kumar
http://Mirketa.com
Keenan WojniczKeenan Wojnicz
@Rupal, I ensured that the URL is publicly reachable. 
@Sumeet, the URL is http://sellingtozebras.us-west-2.elasticbeanstalk.com/ws/salesforce_account.wsdl
Sergey ChernetskySergey Chernetsky
Hi! In my case the problem was in using wrong request method - GET instead of POST. When I started listen POST request, I've got message. Hope helps.