Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Execution of ServiceCallout failed

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"
        }
    }
}

 

 

0 4 1,293
4 REPLIES 4