Verify Web Service Server exists...

D

Dan Bass

Using:
- Windows Mobile 2003
- C# on CF .Net 2.0
- VS 2005
- Relatively thin scanner client application talking to web services
server for information on what to scan.


Hey guys,

To keep it short, my client wants scanners running on one site to
continue running if the server fails on that site by checking to see
what other listed servers on the network they can talk to. Once the
scanners find another server, then to relay all web service calls to
that server.

I've some code that will return the first valid server on the network
when establishing an HTTP connection. How do I ping (or otherwise test)
a connection to each server in a configured list?

Thanks for your time.
Daniel.
 
A

Alex Feinman [MVP]

Just try opening an http connection (or calling a web service method) and
catch the exception, then move on to the next server
 

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

Top