web services

A

AVL

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....
 
S

Steve B.

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top