You are viewing limited content. For full access, please sign in.

Question

Question

Post method for REST API in workflow httpwebrequest errors out

asked on May 18, 2016 Show version history

I am trying to do a post method for REST API, but it throws error as "Request failed with status code 405: Not Allowed"

Note:  Get method works though for the same REST API

Can someone help. Thanks

1 0

Replies

replied on June 6, 2016

It's not possible for us to troubleshoot somebody else's API based on just the error message. Have you tried asking the people who wrote the API? Have you tried taking a Wireshark or Fiddler trace of the working and not working cases and comparing them to see what you're not setting correctly in the Workflow activity?

1 0
replied on June 6, 2016 Show version history

Here is the solution for this

For REST API to work, we are supposed to add request headers , so in the workflow page click 'View general properties' icon and add credentials to the header.

Also important Note:  The URI in the server configuration should be truncated to just the server and in the URI for webrequest you must give the remaining path

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.