Using the WebServiceInputActivity Activity
The WebServiceInputActivity activity enables a workflow to receive data from a Web service. The WebServiceInputActivity activity publishes itself as a Web services method when the Web service starts, and then it receives data when the Web services method is subsequently called.
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 WebServiceInputActivity, see Communicating with Other Workflows.
For more information about the WebServiceInputActivity class, see the System.Workflow.Activities namespace in the Windows Workflow Foundation Class Library reference.
For a code sample that demonstrates how to use the WebServiceInputActivity activity, see Web Service Sample.
See Also
Reference
WebServiceInputActivity
WebServiceOutputActivity
ConditionedActivityGroup
ParallelActivity
Concepts
Using the InvokeWebServiceActivity Activity
Using the WebServiceOutputActivity Activity
Communicating with Other Workflows