I'm tryting to work on service call out proxy , both proxy use the same authorization mechanism , how should i pass the api-key to the service call out so that it can use it and send authorize the security flow and work on retrieving the data .

Proxy 1 and Proxy 2 both uses api-key authorization , and both are available in same product how can i pass api-key from proxy to my service callout proxy so that it can assign to the verify-api variable and authenticate the request .

Solved Solved
0 3 79
1 ACCEPTED SOLUTION

Not applicable

use

<HTTPTargetConnection>

<URL>http://example.com</URL>

</HTTPTargetConnection>

Don't use local target connection.

View solution in original post

3 REPLIES 3

Not applicable

You can configure headers or query parameters in the service callout, similar as assign message policy. That will go to the proxy 2 in request. And the actual request to proxy 1 will remain as it is.

Thank you for the response , i was able to pass the api-key to the servicecallout policy , but when i saw the proxy uri in the proxy 2 which is service call out proxy it is showing me the localhost uri . Any suggestions like how can i call a proxy from service call out and it goes to the proxy url only not to the localhost .

Not applicable

use

<HTTPTargetConnection>

<URL>http://example.com</URL>

</HTTPTargetConnection>

Don't use local target connection.