This type depends on which "version" of web services you are using.
Using WCF, you really get a TimeoutException . You should also handle CommunicationException if you are trying to handle timeouts. Sometimes I also saw a FaultException , although technically this should not happen (but it is still from time to time). FaultException is a descendant of CommunicationException , so you do not need to handle it separately, it is just useful to know that this can happen.
In ASMX, you usually get a wrapped SoapException , for which you need to check the InnerException property to see what really went wrong.
Using WSE, you will see another exception, ResponseProcessingException , for which again you should check InnerException for details.
source share