I have a web service in Asp.net and I am accessing the web service in android via Ksoap library.
It is working fine when the server is on and my webservice mode is ON. The problem is that when the server is down or the web service is not on or in off mode it will show the exception of Connection timeout.
How to check whether my service is globally accessible or not on a button click?
You would be using HttpResponse object to get result from web service, to check for result use this: