This section helps you publish web services in a clustering environment. Web services published in a clustering mode ensures that the request sent by a consumer is responded even if one of the node in the cluster is down.
- Network Load Balancer
- Minimum two Adeptia nodes in cluster
For example, you have configured a network load balancer on IP 10.0.0.1. The Adeptia nodes are running on IPs 10.0.0.2 and 10.0.0.3 respectively. Here, Adeptia node means Adeptia Suite Kernel and WebRunner. Both the nodes are configured in a clustered mode.
Perform the following steps to publish web services:
- Login to Adeptia Suite of first node through URL http://10.0.0.2:8080/adeptia/control.
Publish the Web Service.For information on how to publish web service, refer to Creating Web Service.
- Go the ...<AdeptiaInstallFolder>/ServerKernel/wsdl.
- Copy the WSDL files generated while publishing the Web Service and paste them into the ...<AdeptiaInstallFolder>/ServerKernel/wsdl folder of another node.
- Now login to another node through URL http://10.0.0.3:8080/adeptia/control.
- Edit and save the Web Service Provider activity, which you have created on the first node (10.0.2.2). This will publish the same Web Service on second node 10.0.0.3 also.
- Go to Develop > Services > Web Services > Provider.
- Download the WSDL of the Web Service that you have published.
- Edit the WSDL in any text editor.
- Replace the address, mentioned within soap:address:location tag, with the address of the network load balancer. For example: http://10.0.0.1:8080/wsx/services/QuoteofTheDay_ws_provider_upload.
- Save the file.
- Configure the Network load balancer to forward the request on these two nodes (10.0.0.2 and 10.0.0.3). For information on how to configure load balancer, refer to Configuring Load Balancer.
- Use this updated WSDL to access the Web Service that you have published. So your request will be send to the network load balancer and the network load balancer forwards this request to these nodes.