O'Reilly logo

Microsoft® .NET XML Web Services Step by Step by Allen Jones, Adam Freeman

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

Chapter 7. Exception Handling

In this chapter, you will learn how to:

  • Throw exceptions in XML Web services.

  • Handle exceptions thrown by XML Web services.

  • Use custom fault codes to better report errors in XML Web services.

Exceptions are a powerful programming technique, supported by both C# and Visual Basic .NET, that provides a structured approach to handling system and application error conditions. You can use exceptions within the scope of your XML Web services as you do in any other application. Only when an XML Web service throws an exception that must be propagated back to the client is special consideration required.

How ASP.NET Handles Exceptions

When an XML Web service throws an exception that it does not handle ­internally, the exception passes ...

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