Suppose I've set a variable called "url" in my API Proxy flow, maybe using AssignMessage/AssignVariable, or via Javascript context.setVariable(), or implicitly in some other way.
If I then call messageContext.getMessage().getVariable("url") from within Java Callout class, will I be able to retrieve the variable value?
Answer by gnanasekaran · Apr 10, 2015 at 04:48 PM
so you have created a variable 'url' in one of your policies? then you should be able to access that in javacallout using messageContext.getVariable('url')
I need to log certain context variable using my java callout policy. how to do it ? 1 Answer
Java Callout to SOAP Request 1 Answer
httpGet java code not working in Apigee java callout policy 1 Answer
Custom verification of http headers using java callout 1 Answer
How to extract SOAP response attachment? 3 Answers