Verify Web Service Server exists...

  • Thread starter Thread starter Dan Bass
  • Start date Start date
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.
 
Just try opening an http connection (or calling a web service method) and
catch the exception, then move on to the next server
 
Back
Top