I have the following flow in my proxy:
- Request to my proxy comes in with /users.
- Proxy request flow: Service Callout1 is made successfully. I notice the servicecallout.requesturi is populated as HTTPTargetConnection url minus the host name.
- Target call successful
- Proxy response flow: Service Callout2 is failing because the servicecallout.requesturi is now populated as <servicecallout.requesturi> for Service Callout2 + <servicecallout.requesturi> for Service Callout1.
servicecallout.requesturi in step #2 above
/servicecall1
servicecallout.requesturi in step #4 above
/servicecall2/servicecall1
I don’t want the “/servicecall1” getting automatically attached.
I tried an AssignMessage policy immediately after ServiceCall1 (see below), but it is not helping.
How can I manipulate it? If I cannot, how am I supposed to make multiple Service Calls in a flow?
Assign Message Policy I am using:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AssignMessage async="false" continueOnError="false" enabled="true" name="Reset_SC_Variables">
<DisplayName>Reset_SC_Variables</DisplayName>
<Properties/>
<AssignVariable>
<Name>servicecallout.requesturi</Name>
<Value/>
<Ref/>
</AssignVariable>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>