How to add an AssignMessage policy to build a SOAP request?

Not applicable

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 Solved
0 1 1,417
1 ACCEPTED SOLUTION

Not applicable

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>

View solution in original post

1 REPLY 1

Not applicable

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>