Good afternoon, I would like to be able to verify if a web service is available, as well as it would be a ping to a url, I have this method, but it falls when putting the url of some web service.
Ping pings = new Ping();
int timeout = 10;
if (pings.Send("http://www.sunat.gob.pe", timeout).Status == IPStatus.Success)
{
MessageBox.Show("Exito");
}
else
{
MessageBox.Show("Error");
}