O'Reilly logo

Real World XML Web Services: For VB and VB .NET Developers by Yasser Shohoud

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required