Hello,
I want to put a Service Callout policy to make a local call between two APIs proxy and . Both proxy APIs are in the same organization and environment.
I want to make a call from to
The url to call is as follows:
And url to call is as follows:
https://gateway.apigee.as8677.net/fat/apiproxy2/vehicles/{id}?apikey=GkdC0GZnFkrGuJ6aTs
From the EndPoints PreFlow proxy I put Service-Callout-policy :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="Service-Callout-Policy">
<DisplayName>Service Callout-Policy</DisplayName>
<Properties/>
<Request clearPayload="false" variable="myRequest">
<Set>
<QueryParams>
<QueryParam name="apikey">GkdC0GZnFkrGuJ6aTs</QueryParam>
</QueryParams>
<Path>/vehicles/{flow.vehicle.id}</Path>
<Verb>GET</Verb>
</Set>
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
</Request>
<Response>Response</Response>
<LocalTargetConnection>
<APIProxy>apiproxy2</APIProxy>
<ProxyEndpoint>GetVehicle</ProxyEndpoint>
</LocalTargetConnection>
</ServiceCallout>
I get a 403 error:
{
"fault": {
"faultstring": "Execution of ServiceCallout Service-Callout-Policy failed. Reason: ResponseCode 403 is treated as error",
"detail": {
"errorcode": "steps.servicecallout.ExecutionFailed"
}
}
}
Can you help me fix this problem?
Thank you