Can someone suggest a way for me to add a form parameter to a request in an assign message policy?
Neither of these work (XML violations)
<AssignMessage name="createChallenge"> <DisplayName>createChallenge</DisplayName> <Properties/> <Set> <FormParams> <FormParam name="">{strutsTokenName}:{strutsTokenValue</FormParam> <FormParam name=\"{strutsTokenName}\">{strutsTokenValue}</FormParam> ......
Answer by Dino
·
Oct 11, 2016 at 06:39 PM
Looks like your XML is ok to me, as far as it goes. But I would do what you want with the Payload element.
It looks like this:
<AssignMessage name="AssigmMessage-1"> <DisplayName>createChallenge</DisplayName> <Properties/> <Set> <!-- <FormParams> <FormParam name="test1">{strutsTokenName}:{strutsTokenValue}</FormParam> <FormParam name="{strutsTokenName}">{strutsTokenValue}</FormParam> </FormParams> --> <Payload contentType="application/x-www-form-urlencoded"><![CDATA[ {strutsTokenName}={strutsTokenValue}&test1={strutsTokenName}:{strutsTokenValue} ]]></Payload> </Set> </AssignMessage>
There's a full api proxy attached that includes this policy. it works. jwheeler-rev2-2016-10-11.zip
Any easy way to encode special characters in flow variables to be inserted into XML Payload? 2 Answers
REST to SOAP Build SOAP Assign Message policy Editor Namespaces Conversion Problem 2 Answers
UTF8 encoding of XSLTransform failes every second time 2 Answers
Extract Namespace using Extract variable policy 2 Answers
Unresolved Variable in JSON 2 Answers