Chapter 10. Web Services

Workflows can be hosted in a web service, which provides an ideal way to expose workflow solutions to non-workflow clients such as web applications. A web service receives a request, performs some appropriate processing, and returns a response. This naturally translates to the Receive and Send activities you used in the last two chapters. Because these activities are integrated with the Windows Communication Foundation (WCF), you can easily create WCF services.

Creating a Workflow Service

Start Visual Studio 2010 and create a new project using the WCF Workflow Service Application template. Enter the project name as BookInventory and the solution as Chapter10, as shown in Figure 10-1.

Figure 10-1. Creating a WCF Workflow Service ...

Get Beginning WF: Windows Workflow in .NET 4.0 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.