Hi Team,
I am trying to call the target server with the reference variable in the service callout policy. But getting errors like service unavailable or Host unreachable.
Here I created a target server with a mock target endpoint(https://mocktarget.apigee.net) at environments.
Please help on this.
Solved! Go to Solution.
What's exactly you're trying to solve for? Do you mind sharing more details, please? Without you sharing how & why you're trying to accomplish this I have to guess that you're trying to set the ServiceCallout/HTTPTargetConnection/LoadBalancer/Server name attribute using a reference variable. If that's the case, it's not possible.
One option to consider would be to set the "servicecallout.policy_name.target.url" variable, which allows you to read/write dynamically. But you won't be able to use a TargetServer with it.