ServiceCallout Response Error

I have created a proxy which has continuous 2 service call outs.

Service call out 1:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="call1">
    <DisplayName>call1</DisplayName>
    <Properties/>
    <Request clearPayload="true" variable="request1"/>
    <Response>response1</Response>
    <HTTPTargetConnection>
        <Properties/>
        <URL>https://{basePath}{nbaPath}?{params}</URL>
    </HTTPTargetConnection>
</ServiceCallout>

Response:

{
"name":"abc",
"address":"xyz"
}

Service call out 2:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="call2">
    <DisplayName>call2</DisplayName>
    <Properties/>
    <Request clearPayload="true" variable="request2"/>
    <Response>response2</Response>
    <HTTPTargetConnection>
        <Properties/>
        <URL>https://{basePath}{vehiclePath}?{params}</URL>
    </HTTPTargetConnection>
</ServiceCallout>

Response:

{
"score": "2.0"
}

Individually both calls return correct response. However when put continuous in a proxy, response on service call out 2 is overridden by response of service call out 1. Have tried changing order and every time its same result. Response of 1st service call out is carried forward.

Any help would be highly appreciated.

0 1 165
1 REPLY 1

I am sorry I did not understand your query.

You are using separate Response tags and hence the response cannot be overridden, you can use response1.content and response2.content to get the respective responses.

Can you provide an example/trace session where your responses are overridden?