Key value map and add the incoming header param as a value in the map.

Not applicable

I am trying to create a Key value map and add the incoming header param as a value in the map. how can i do that . should i use

value ref = "" . do u have any examples for the same.

I am trying to create a Key value map and add the incoming header param as a value in the map. how can i do that . should i use

value ref = "" . do u have any examples for the same

I am trying to create a Key value map and add the incoming header param as a value in the map. how can i do that . should i use

value ref = "" . do u have any examples for the same

0 1 346
1 REPLY 1

Here's a sample configuration that would work for your scenario:

<KeyValueMapOperations name="putValue" mapIdentifier="yourKVMname">
   <Scope>apiproxy</Scope>
   <Put override="true">
      <Key>
         <Parameter ref="some.variable.that.holds.the.key"/>
      </Key>
      <Value ref="request.header.yourheadername"/>
   </Put>
</KeyValueMapOperations>