I am uploading my code for assigning dynamic url in service call out.Can anybbody give me a better code for the same.
In the code we cant change dynamically http to https.Is this the best option or other options are there??
Please anybody have a working example of a better version?
<?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 clearPayload="true" variable="myRequest">
<IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables>
</Request>
<Response>calloutResponse</Response>
<HTTPTargetConnection>
<Properties/>
<!--<URL>https://en.wikipedia.org/wiki/JSON</URL>-->
<!--<URL>https://{mytarget}</URL>-->
<URL>https://{mytarget}/{myTargetService}</URL>
</HTTPTargetConnection>
</ServiceCallout>