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

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top