Webservice running

  • Thread starter Thread starter GB
  • Start date Start date
Add a reference to ServiceProcess and check out the following
ServiceController class

System.ServiceProcess.ServiceController.GetServices

Regards - OHM#

Is there a way to test that a webservice is available before
attempting to call it?

Regards - OHM# (e-mail address removed)
 
GB said:
Is there a way to test that a webservice is available before
attempting to call it?

There might well be, but would it not be "better" to assume that the
WebService /will/ be available (normal Flow of Execution) and Catch
the Exception that will be thrown on the odd occasion that it isn't?

Regards,
Phill W.
 
It is just as valid to test that the service is running as it is to catch an
exception when it is not.

Regards - OHM#

-----------------------

Phill. W said:
There might well be, but would it not be "better" to assume that the
WebService /will/ be available (normal Flow of Execution) and Catch
the Exception that will be thrown on the odd occasion that it isn't?

Regards,
Phill W.

Regards - OHM# (e-mail address removed)
 
Back
Top