In an Apigee API Proxy, why does rewriting "target.url" via a JavaScript policy not route to the new target? -


the use case here target endpoint url has changed based on conditions. javascript policy used overwrite "target.url" not call routed new target. still routes 'default target endpoint url' set on 'overview' tab of api proxy. here javascript:

context.setvariable("target.url", url);

where url new target url value needs set.

http://apigee.com/docs/api-services/content/javascript-object-model shows similar example , http://apigee.com/docs/api-services/api/variables-reference confirms variable reference correct.

please ensure policy javascript in targets side of flow (vs. proxies side). won't see change take in effect if policy executing in proxies side of flow.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -