I have a webpage (.aspx) that calls a third-party web service to retrieve some data. It usually takes a few seconds to return a response, and then the rest of the page will load. Sometimes a call gets stuck either due to the inaccessibility of a web service, or to connect to the Internet, etc., the page just hangs there and does not load.
My questions:
1) Is there a way to interrupt / cancel a web service call after a certain time?
2) Is it even possible to check the status of a web service before calling it?
Thank.
source
share