Declarative Activation of Services

This sample demonstrates how to host a declarative workflow in Internet Information Services (IIS). The sample is a simple workflow named EchoService that has one operation named Echo.

To use this sample

  1. Using Visual Studio 2010, open the Service.csproj project file.

  2. To build the solution, press F6.

  3. To run the solution, press CTRL+F5.

  4. Run the WCF test client.

    1. Open a command window and navigate to the %SystemDrive%\Program Files\Microsoft Visual Studio 10.0\Common7\IDE folder.

    2. Run WcfTestClient.exe.

  5. Test the service.

    1. Set the address of the service on WcfTestClient.exe.

      1. Press CTRL+SHIFT+A to set the serviceAddress.

      2. Set the serviceAddress to set the https://localhost:56133/Service.xamlx/.

    2. Execute the Echo operation.

  6. Deploy the service in IIS using the DeployToIIS.Bat batch file.

  7. Update the service address in the client, and test the service again using WcfTestClient.exe.

Note

The samples may already be installed on your machine. Check for the following (default) directory before continuing.

<InstallDrive>:\WF_WCF_Samples

If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.

<InstallDrive>:\WF_WCF_Samples\WF\Basic\Services\

Build Date: 2010-02-04