HTTPTargetConnection: How to set dynamically the server name in ServiceCallout

Hi all

In a service callout policy, I want to set dynamically the server name for the HTTPTargetConnection like this

    <HTTPTargetConnection>
        <LoadBalancer>
            <MaxFailures>0</MaxFailures>
            <RetryEnabled>true</RetryEnabled>
            <Server ref="{MY_SERVER_NAME}">
                <IsEnabled>true</IsEnabled>
                <IsFallback>false</IsFallback>
                <Weight>1</Weight>
            </Server>
            <TargetDisableSecs>300</TargetDisableSecs>
        </LoadBalancer>
        <Path>/{MY_PATH}</Path>
        <Properties>
            <Property name="connect.timeout.millis">60000</Property>
        </Properties>
    </HTTPTargetConnection>

It doesn't work, (Server name null)

Any idea how I can do that ?

Thank you

Solved Solved
0 2 1,338
1 ACCEPTED SOLUTION

Yes

sorry you cannot do that. It's a source of shame that it does not work the way you would like it to work. I'll look into getting that addressed.

In the meantime, there is a way to assign a dynamic URL for a servicecallout.

It is described here.

View solution in original post

2 REPLIES 2

Yes

sorry you cannot do that. It's a source of shame that it does not work the way you would like it to work. I'll look into getting that addressed.

In the meantime, there is a way to assign a dynamic URL for a servicecallout.

It is described here.

Thank you.