Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.