Hi there,
I have some specific requirement. To cut it short, I am setting in java script/AM the below.
context.setVariable("target.url","myapihost.example.com/loyalty/api/v1/courses");
or
<AssignMessage async="false" continueOnError="false" enabled="true" name="AM-set-target-url">
<DisplayName>AM-set-target-url</DisplayName>
<AssignVariable>
<Name>target.url</Name>
<Value>myapihost.example.com/loyalty/api/v1/courses</Value>
</AssignVariable>
<IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables>
<AssignTo createNew="false" transport="http" type="request"/>
</AssignMessage>
And calling the above variable target.url in the target endpoint with the below setup up, which doens't work looks like the variable {target.url} is not resolving and get service unavailable.Pls advice.
<HTTPTargetConnection>
<URL>https://{target.url}</URL>
</HTTPTargetConnection>
Note: I don't want to do this using a target server; I want to go with the above approach for a reason I will not share. Before providing solution pls try at your end kindly, thanks