Call a method and catch/test the System.Net.WebException. This being the
case, it does not make sense to perform this task twice, just be sure you
make all of your webmethod calls in a try/catch block.
Calling a webmethod to test for an error only to turn around and call it (or
another method) again to get results does not make sense.
You can pink the server (if it responds to pings) to see if the server is
up, but you are going to have to rely on status codes (errors) to see if the
actual web service is responding.
HTH,
John Scragg
"Chinedu" wrote:
Please help guys,
I wondering if there is a way to test a web service for availability. i.e a
simple test to see if the webservice is up and running or available before I
make the actual method call on the webservice...something like a ping in
networking
--
Faith as small as a mustard seed can move mountains...Jesus Christ