I have created keyvalue map using below policy .
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KV-Key-Value-Map-Operations-Create" mapIdentifier="VehicleId">
<DisplayName>KV-Key Value Map Operations-Create</DisplayName>
<Properties />
<ExclusiveCache>false</ExclusiveCache>
<ExpiryTimeInSecs>300</ExpiryTimeInSecs>
<InitialEntries>
<Entry>
<Key>
<Parameter>VIN</Parameter>
</Key>
<Value>112233 </Value>
</Entry>
</InitialEntries>
<Scope>environment</Scope>
</KeyValueMapOperations>
I have used another proxy with endpoint to fetch key value created in environment using KVM policy get and Assignmessage policy to display as response.But AM is not getting the value.
KVM policy:
<KeyValueMapOperations async="false" continueOnError="false" enabled="true" name="KV-Key-Value-Map-Operations-GET" mapIdentifier="VehicleId">
<DisplayName>KV-Key Value Map Operations-GET</DisplayName>
<Properties />
<ExclusiveCache>false</ExclusiveCache>
<ExpiryTimeInSecs>300</ExpiryTimeInSecs>
<Get assignTo="VINkey" index="1">
<Key>
<Parameter ref="VIN" />
</Key>
</Get>
<Scope>environment</Scope>
</KeyValueMapOperations>
Assign message policy:
<AssignMessage async="false" continueOnError="false" enabled="true" name="AM-Assign-Message-GET">
<DisplayName>AM-Assign Message-GET</DisplayName>
<Properties />
<Set>
<Payload contentType="text/xml">
<root>
<countryname>{VINkey.VIN}</countryname>
</root>
</Payload>
</Set>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="response" />
</AssignMessage>
can any please suggest me ,what went wrong.