O'Reilly logo

Microsoft Windows Workflow Foundation 4.0 Cookbook by Andrew Zhu

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

Sending and receiving a reply to a WCF message in code workflow

In this task, we are going to create a WCF client workflow. The workflow will send a WCF request with two integer numbers to a WF service and receive a reply from a WCF service with the addition result.

Getting ready

Now that we have finished at least one of the previous tasks—R eceiving and replying to a WCF message or Receiving and replying to a WCF message in code workflow—we can choose one of them as the WF service in this task. In this task I will use the code-style WF service.

How to do it...

  1. Create a Workflow Console Application project:

    Create a new Workflow Console project and name it SendAndReceiveInCode.

  2. Create workflow in imperative code:

    Add a new class file SendAndReceiveWorkflow.cs ...

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