Reputation: 11
I have a service callout in Apigee where instead of hardcoding the Url for the HTTPTargetConnection I want to use a variable for the value of the url. Example: http://{request.queryparam.url} This is giving me a 404 Not Found error but if I hardcode the same value that is passed as a queryparam it works fine and calls the target service and return a response.I am not able to find any details on this in docs.Please help me out.Thanks.
Upvotes: 1
Views: 2063
Reputation: 2978
This is potentially a bug.
Please attach a policy of your own in the target.xml
request part of the application which assigns the target.url
variable with your variable of choice. You can use assign variable or javascript or python as you wish for this policy.
EDIT: What I answered above applies for target callouts. Not service callouts. To better understand the issue I request you to post the debug.xml in a pastebin or something similar.
Upvotes: 0