Formatting messages in Workflow Services
This sample shows how different user types can be used in messaging activities (WF services). The sample service is a simple expense approval service and exposes three operations.
ApproveExpense takes a data contract type and shows how to use known types. The operation returns true or false based on the expense amount.
ApprovePO takes an XmlSerializer type and returns true or false based on the expense amount.
ApprovedVendor takes a message contract type and returns true or false if the vendor is in the list of approved vendors or if the request came from the finance department (the finance department can use any vendor).
To use this sample
Load the project solution in Visual Studio 2010 and build the project.
First run the service, generated in [solution base directory]\FormatterService\bin\debug\
Second, run the Client application generated in [solution base directory]\FormatterClient\bin\debug.
The client calls three operations on the service and prints the results. When complete, press ENTER to exit the client and then the service.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.