Condividi tramite


Using the WebServiceOutputActivity Activity

The WebServiceOutputActivity activity is used to respond to a Web service request that is made to a workflow. A WebServiceOutputActivity activity can only be included in a workflow that has a WebServiceInputActivity activity. The WebServiceOutputActivity activity requires that a InputActivityName property is set, and only WebServiceInputActivity activities that are located in the same workflow are valid values.

The WebServiceOutputActivity activity must be associated with a WebServiceInputActivity activity; otherwise a validation error occurs.

Also, when you design an activity that uses the Web service activities, you must make sure that a WebServiceOutputActivity activity does not execute until after the corresponding WebServiceInputActivity activity finishes. For example, you can use WebServiceOutputActivity and WebServiceInputActivity in a ConditionedActivityGroup activity, or in different branches of a ParallelActivity activity; if your design allows the WebServiceOutputActivity activity to start executing before the corresponding WebServiceInputActivity activity finishes, errors will occur at run time.

For more information about how to use the WebServiceOutputActivity activity and the WebServiceInputActivity activity, see Communicating with Other Workflows.

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

For a code sample that demonstrates how to use the WebServiceOutputActivity activity, see Web Service Sample.

See Also

Reference

WebServiceOutputActivity
WebServiceInputActivity
ConditionedActivityGroup
ParallelActivity

Concepts

Using the WebServiceInputActivity Activity
Using the InvokeWebServiceActivity Activity

Other Resources

Web Service Sample
Windows Workflow Foundation Activities