Compartir a través de


Handling Exceptions

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The DPWS device stack is built to catch and handle most of the exceptions that can happen during the processing of Web Services messages.

Exceptions

Most methods in the processing chain catch the exception and either return a fault message or return null. null return values are handled in the transport services, where they are converted to exception faults and sent to the listening client. A debug method is also produced. Exceptions will never cause the stack to stop operating.

Faults

The DPWS device stack returns Addressing and Eventing faults where appropriate, and Exception faults for everything else. If one of your operations needs to return a fault, you can do so using the classes in the Ws.Services.Faults namespace.