LibraryLink ToToggle FramesPrintFeedback

Enabling HA with Static Failover

To enable HA with static failover, you must do the following:

You must encode the details of the replicas in your cluster in your service WSDL file. Example 10.1 shows a WSDL file extract that defines a service cluster of three replicas.

Example 10.1. Enabling HA with Static Failover—WSDL File

1<wsdl:service name="ClusteredService">
2    <wsdl:port binding="tns:Greeter_SOAPBinding" name="Replica1">
        <soap:address location="http://localhost:9001/SoapContext/Replica1"/>
    </wsdl:port>

3    <wsdl:port binding="tns:Greeter_SOAPBinding" name="Replica2">
        <soap:address location="http://localhost:9002/SoapContext/Replica2"/>
    </wsdl:port>

4    <wsdl:port binding="tns:Greeter_SOAPBinding" name="Replica3">
        <soap:address location="http://localhost:9003/SoapContext/Replica3"/>
    </wsdl:port>

</wsdl:service>

The WSDL extract shown in Example 10.1 can be explained as follows:

1

Defines a service, ClusterService, which is exposed on three ports:

  1. Replica1

  2. Replica2

  3. Replica3

2

Defines Replica1 to expose the ClusterService as a SOAP over HTTP endpoint on port 9001.

3

Defines Replica2 to expose the ClusterService as a SOAP over HTTP endpoint on port 9002.

4

Defines Replica3 to expose the ClusterService as a SOAP over HTTP endpoint on port 9003.

In your client configuration file, add the clustering feature as shown in Example 10.2.