Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Best way to tell if web service is running? 1

Status
Not open for further replies.

ookete

Programmer
Oct 5, 2004
180
US
Hello,

I am making my very first Pocket PC application (VB.NET), and I am using a web service to write data from the device to a database on the server. There will be times the Pocket PC will be unable to talk to the web service, and in that case I would like to store data locally until the service becomes available again.

What is the best way to check if the service is accessible from the Pocket PC app? I appreciate any advice! Thank you.
 
i havent done much pocket pc programming, but i do have an idea,

there is a HttpWebRequest class that can be used to access any page on the web (like a crawler).

you could maybe use this and try to contact the asmx file, if the system is able to connect then it will return back a found status or it will return back a 200 status(if i am correct)...

Known is handfull, Unknown is worldfull
 
Or you could simply ping the server


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
>>Or you could simply ping the server

how do u do that in ASP.NET? what classes will u use?

Known is handfull, Unknown is worldfull
 
Have a look at the System.Net and System.Net.Sockets classes


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks, that article looks like just what I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top