Summary

In this chapter, you have seen how to use FaultException classes to send information about exceptions back to client applications as SOAP faults. You have seen how to use the FaultContract attribute to specify the faults that a service can send and how to catch these faults in a client application. You have also learned how to propagate information about unanticipated exceptions from a service to a client for debugging purposes. You should understand how to make a service host application robust by tracking the states of a service, recovering from faults, and handling unexpected messages sent by client applications.

Get Microsoft® Windows® Communication Foundation Step by Step 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.