开发者

Connecting to check a SOAP service is up

开发者 https://www.devze.com 2023-03-12 03:41 出处:网络
I am trying to connect to a SOAP service, that\'s all fine. But I have been asked to check whether that service is up before connecting, if not, connect to the service on another server.

I am trying to connect to a SOAP service, that's all fine. But I have been asked to check whether that service is up before connecting, if not, connect to the service on another server.

开发者_开发技巧

Any ideas of how to do this? Thanks in advance.


Is it possible to use Exceptions to handle this? When webservices method can't be called an exception will be thrown and if exception is about connectivity then you can connect to other webservice.

0

精彩评论

暂无评论...
验证码 换一张
取 消