0

I am trying to setup my workflow for SharePoint in which it needs to make a call to an external server using POST on a HTTP web service. I am new to setting this up and created the following request headers and body -

Request Headers

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Content-Type: application/x-www-form-urlencoded

Request body

appName=test&serverName=test

I have built 2 different dictionaries to do this with, one for the headers and one for the body.

Dictionary8 -

Accept - String -
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
Content-Type - String - application/x-www-form-urlencoded

Dictionary9 -

appName - String - Current Item:App Name
serverName - String - Current Item:Server Name

When I submit this it does not work, I have used the same headers and body in a test request in Fiddler and it works. Is something configured wrong?

1 Answer 1

2

First you have to build DynamicValue:

enter image description here

Properties for this activity should look like this:

enter image description here

Then you have to place HttpSend activity in the WF designer:

enter image description here

And pass it RespContent variable which you have built in the first step:

enter image description here

2
  • Hi. Thanks for your response. So it looks like I have to submit using application/json;odata=verbose and there is no way to submit using my current content type of application/x-www-form-urlencoded. So I will need to reconfigure my app to accept the content type if this is correct. Thanks. Nov 11, 2014 at 10:41
  • You welcome. Please mark the answer as correct if it solves your problem. Nov 11, 2014 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.