I tried below ways to change the target.url.But they are not working.
There is no change in the target endpoint and only resource path is the change from proxy request.
I am using Assign Message policies in Target Preflow.
1)Using Set path as below,
<Set><Path>/a/b</Path></Set>
But Set path is not working.Looks like the bug still exists (REF).Please let me know when this can be resolved.
2)Setting {target.url} in Assign message as below,
<AssignVariable> <Name>target.url</Name> <Value>{target.url}/a/b</Value> </AssignVariable>
But this is not working.Showing "not equal to" in Trace while assigning.
target.url ≠ {targeturl}/a/b/c
3)Saved {target.url} in a Assign Message and using it as a variable in another Assign message.
This one has same impact as the 2nd method.
4)Only method that is working is,using entire url including target.url hardcoded as below,
<AssignVariable> <Name>target.url</Name> <Value>http://www.xyz.com/a/b/c</Value> </AssignVariable>
I dont want to use javascript if I can do this through Assign message.I dont want to hardcode the entire target endpoint in Assign message when I have a variable {target.url}.
Please let me know if these are expected and I have no other choice but to hardcode the entire url.