I am using below Service Callout to call another proxy which is in same environment. The SC policy is placed in Default Preflow Proxy endpoint.
The code is as below. But I am getting error as below
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="Service-Callout-1">
<DisplayName>Service Callout-1</DisplayName>
<Properties/>
<Response>myResponse</Response>
<LocalTargetConnection>
<APIProxy>MMCWDCC_Active_EE</APIProxy>
<ProxyEndpoint>default</ProxyEndpoint>
</LocalTargetConnection>
</ServiceCallout>
I also tried setting the VERB
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="Service-Callout-1">
<DisplayName>Service Callout-1</DisplayName>
<Properties/>
<Request>
<Set>
<Verb>GET</Verb>
<Path>/v1/active_ee</Path>
</Set>
</Request>
<Response>myResponse</Response>
<LocalTargetConnection>
<APIProxy>MMCWDCC_Active_EE</APIProxy>
<ProxyEndpoint>default</ProxyEndpoint>
</LocalTargetConnection>
</ServiceCallout>
{
"fault": {
"faultstring": "Execution of ServiceCallout Service-Callout-1 failed. Reason: ResponseCode 401 is treated as error",
"detail": {
"errorcode": "steps.servicecallout.ExecutionFailed"
}
}
}