HighTechTalks DotNet Forums  

web services

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss web services in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?QVZM?=
 
Posts: n/a

Default web services - 07-19-2007 , 08:54 AM






hi,
i need to check the availability of my web service....
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service....how can i do that....


Reply With Quote
  #2  
Old   
Steve B.
 
Posts: n/a

Default Re: web services - 07-19-2007 , 09:15 AM






put a empty file in the web application, and try to download it using
WebClient or HttpWebRequest.
you can check the Http Status code to see what happens :

200: OK
401: not authorized
404: not found,
etc...

You can also setup the web.config to allow anonymous access to this file
only, if you don't want to pass credentials just for ping.

Steve

"AVL" <AVL (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi,
i need to check the availability of my web service....
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service....how can i do that....




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.