Webservice running

  • Thread starter Thread starter GB
  • Start date Start date
G

GB

Is there a way to test that a webservice is available before attempting to
call it?
 
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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top