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! Go to Solution.
use
<HTTPTargetConnection>
<URL>http://example.com</URL>
</HTTPTargetConnection>
Don't use local target connection.
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 .
use
<HTTPTargetConnection>
<URL>http://example.com</URL>
</HTTPTargetConnection>
Don't use local target connection.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |