O'Reilly logo

Beginning WF: Windows Workflow in .NET 4.0 by Mark Collins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required