3.6. When Things Go Wrong

As part of invoking Web services, SOAP specifies a standard method of communicating error information to the client using the <soapenv:Fault> element and its subelements. The three pre-defined subelements are <faultCode>, <faultString>, and <detail>. You can also define your own subelements that belong to an application-specific namespace.

3.6.1. <faultCode>

The contents of <faultCode> can be any fully-qualified name that you define for your application optionally with multiple parts of this name separated by a dot. For example, I might define the following string to indicate a database error in my application: vbws:Application.Database, where vbws is a namespace prefix declared as http://schemas.learnxmlws.com/myApp/ ...

Get Real World XML Web Services: For VB and VB .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.