Failed to invoke web service – (400) Bad Request

“Failed to invoke web service. Error returned from server: The remote server returned an error: (400) Bad Request.”

I am pretty sure you must have received this error when you tried calling web service using Nintex workflow.

Well, I did encounter this!!

I configured the call web service action like below

BadReq1

Here, I am starting the workflow SW_Restrict Permission using this web service and passing the parameters in the variable associationData. Association data is the xml that is generated.

Now, on triggering this workflow, it error-ed at this very step to call web service.
Hence, some trial and errors, and bingo… i got my solution.

BadReq2

All that is needed here is to check the check box for Encode Inserted Tokens.

Actually, the data that is passed to the web service in the form of parameters or association data needs to confirm to the SOAP packet definition. And as expected, my association data contains xml that breaks it…!

Hence, check the check box and the rest is done.

Happy Nintexing!!! 🙂

 

Advertisements

5 thoughts on “Failed to invoke web service – (400) Bad Request

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s