Compartir a través de


Using the WebServiceFaultActivity Activity

The WebServiceFaultActivity activity enables you to model the occurrence of a Web service fault. This is equivalent to throwing an exception in an ASMX Web service framework method.

Unlike the ThrowActivity activity, which calls an exception handler after its execution, the execution of the WebServiceFaultActivity activity does not change the course of sequential workflow execution, but it does return a SOAP exception to the client.

The WebServiceFaultActivity activity can only be associated with a two-way request-response operation. In addition to the WebServiceFaultActivity fault, any termination of the workflow at the middle of an outstanding request-response is also thrown as a SOAP fault, with the inner exception property populated with the exception that terminated the workflow.

For more information, see the WebServiceFaultActivity class of the System.Workflow.Activities namespace in the Windows Workflow Foundation Class Library reference.

For more information about SOAP faults and the ASMX Web service framework, see the MSDN Library.

See Also

Reference

WebServiceFaultActivity

Concepts

Faults and Exceptions in ASP.NET Workflows

Other Resources

Web Service Sample
Windows Workflow Foundation Activities