I am trying to add a new policy which will add a variable and the SOAP paylaod should be assigned to the variable created in the AssignMessage policy.
Do you have exact steps through which I can create a new policy and attach it to the build soap request?
Solved! Go to Solution.
The Assign Message Policy is available from the New Policy button. You should choose it and add to the appropriate flow and endpoint. To add a variable, change the default xml for the policy to something like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AssignMessage async="false" continueOnError="false" enabled="true" name="Assign-Message-Sample"> <DisplayName>Assign Message Sample</DisplayName> <FaultRules/> <Properties/> <AssignVariable> <Name> [put variable name here] </Name> <Value> [put value/SOAP payload here] </Value> <Ref/> </AssignVariable> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <AssignTo createNew="false" transport="http" type="request"/> </AssignMessage>
The Assign Message Policy is available from the New Policy button. You should choose it and add to the appropriate flow and endpoint. To add a variable, change the default xml for the policy to something like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AssignMessage async="false" continueOnError="false" enabled="true" name="Assign-Message-Sample"> <DisplayName>Assign Message Sample</DisplayName> <FaultRules/> <Properties/> <AssignVariable> <Name> [put variable name here] </Name> <Value> [put value/SOAP payload here] </Value> <Ref/> </AssignVariable> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <AssignTo createNew="false" transport="http" type="request"/> </AssignMessage>