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
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.
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 ...