[SalesForce] Outbound Message Error: SOAP response was a nack

I've been setting up an outbound message web service listener, I've not done this before and haven't worked with Tomcat either so this is all very new to me. I followed the instructions here wiki.developerforce.com/page/Creating_an_Outbound_Messaging_Notification_Service_with_Eclipse_3.2 and managed to get something together despite the instructions being a bit out of date.

Now, everything works fine if I run Tomcat through eclipse, it also works OK if I export the project as a WAR file and run tomcat through the command line, however both of these methods have the disadvantage of needing an application to be running. I set up the Tomcat service and got it running, however I now get "SOAP response was a nack" in Salesforce and my web service isn't working. I don't know what this message means and I don't understand why I only get it when tomcat runs as a service, because it only runs the WAR file and that works when I run through the command line. I should also add that I've not done anything related to responses in the code, so its set up however eclipse sets it up by following the instructions on the link I've provided, which is just a boolean I think.

Why am I now getting this error and how do I solve it? As I say I'm new to this kind of thing so instructions will have to be clear.

Thanks!

Best Answer

First make sure that your webservice itself is working correctly. Try by calling the webservice from a tool like SOAP UI and see if you get the response you expect. If not, you should first make sure your webservice functions correctly.

If your webservice is working correctly, it could be that your webservice is behind a firewall that is blocking Salesforce from calling the webservice. If that is the case, your IT will have to whitelist the Salesforce IP's.

Related Topic