The client application should handle all SOAP faults. Many SOAP client toolkits convert SOAP faults to client exceptions that can be handled in a try...catch block. The following code is a VB.NET fragment, which provides an example of handling SOAP faults:

Try
   ' Code to access the Web service
   ...
   Catch soapEx As System.Web.Services.Protocols.SoapException
      Dim detail As String, reqId As String
         detail = parseSoapException(soapEx.Detail, reqId)
         MsgBox(detail, MsgBoxStyle.Critical, soapEx.Message)
End Try

In this example, parseSoapException( ) is a client helper function to parse the SOAP fault detail provided in .NET sample code.