Basic XAML only Service
This sample demonstrates how to create a XAML only service. The scenario is a diagnostics service for car-related problems. The service is implemented as a workflow that asks the client a series of questions to diagnose the problem. There are two types of issues the service can diagnose (car does not start or air conditioning not working). The workflow uses Request/Reply template from the designer to expose three simple service operations. The service is hosted in IIS by creating a virtual directory in IIS and copying the service1.xamlx and Web.config files into the virtual directory, no compiled code is required. By default this sample will automatically copy the needed files into the virtual directory created when you follow the setup instructions for the WCF and WF samples: One-Time Setup Procedure for the Windows Communication Foundation Samples when built in Visual Studio 2010.
To use this sample
Load the project solution in Visual Studio 2010 and build the project.
Run the Client application generated in [solution base directory]\Client\bin\debug.
The application prints out options, selects an option. The application then asks some questions, answer them yes or no (using Y/N keys). When the service is done diagnosing the issues, the application prints out a diagnosis.
The application goes back to the options. You can diagnose another problem or exit the application.
The samples may already be installed on your machine. Check for the following (default) directory before continuing.
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.