Sreenath G

Sreenath G

  • NA
  • 233
  • 310.6k

How to Validate Web Service URL in ASP.Net

Nov 25 2011 12:37 AM


Hi,



How can I validate web service URL. I have tried with
pinging the URL, is it the right way to do so and will it work for all types of
web services. I have tried this…



 
System.Net.NetworkInformation.Ping
lObjPing = new System.Net.NetworkInformation.Ping();



                   
System.Net.NetworkInformation.PingReply
lObjPingReply = null;



 



                   
lObjPingReply = lObjPing.Send(URL);



 



Please help out.



Thanks



Sreenath




Answers (1)