Chapter 18 Quick Reference

To

Do This

Call an XML Web service from your workflow

Use the InvokeWebService activity. Although you can use a Code activity with a Web reference and proxy, using InvokeWebService brings the invocation into the workflow designer instead of hiding it within a Code activity. You also can bind properties to the activity, which is handy.

Dynamically reconfigure your proxy prior to making the XML Web service invocation

Provide an event handler for the Invoking event, and access the InvokeWebServiceEventArgs WebServiceProxy property (cast to your proxy type) to gain access to any of the typical proxy properties.

Tie separate InvokeWebService calls to a single session

Provide the same SessionId value to each instance of InvokeWebService ...

Get Microsoft® Windows® Workflow Foundation Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.