This section provides examples to show how exception handling can be implemented in a web service client application.
Web Services Client for C++ uses exceptions to report back any errors that have occurred. To catch these exceptions, the client application must surround all Web Services Client for C++ methods with a try…catch framework.
SOAP faults are represented as exceptions; they are thrown back to the client application as a subclass of SoapFaultException. How exceptions are handled by a client application depends on whether C++ or C is being used.
The examples in the following topics show how to handle exceptions in a client application.