How to add Headers to APIGEE Pass through SOAP Proxy

How to send apikey header to APIGEE Pass through soap request.

1. we are trying to consume from c#

2. we are able to trigger it after adding it as "WebReference" in our solution.

3. But we are not able to send the apiKey to soap request.

Please let me know on this.

0 1 544
1 REPLY 1

Add a policy in the Request flow (maybe in the TargetEndpoint) that looks something like this:

<AssignMessage name='AM-AddHeader'>
  <AssignTo>request</AssignTo>
  <Set>
    <Headers>
      <Header name='My-Header'>{client_id}</Header>
    </Headers>
  </Set>
</AssignMessage>