.NET Framework Samples
WCF ServiceModel Sample

This sample demonstrates the use of a ServiceContract proxy on the .NET Compact Framework. The sample, which is available only in C#, includes a server component that consists of a Windows Communication Foundation (WCF) service running on the desktop, and a client component that communicates with the server. Using code that is generated by the .NET Compact Framework ServiceModel Metadata utility (NetCFSvcUtil.exe), the client implements device support for System.ServiceModel contracts.

NoteNote:

For more information about WCF on the .NET Compact Framework, see Windows Communication Foundation (WCF) Development and the .NET Compact Framework.

For information about using the samples, see the following topics:

To build and deploy the sample using Visual Studio

  1. Open Windows Explorer and navigate to the DeviceServiceModelSample directory for this sample.

  2. Double-click the solutions (.sln) file for this sample.

  3. Press F5 to compile and run the sample.

  4. Deploy the sample to the device or emulator.

Requirements

Microsoft Visual Studio 2008 must be installed with the smart device development components. This includes the .NET Compact Framework version 3.5, which is required to build and run the sample. To compile the sample using msbuild.exe, see How to: Compile at the Command Prompt.

To install the .NET Compact Framework on the device, see How to: Install the .NET Compact Framework.

If you have to rebuild the auto-generated code, the .NET Compact Framework ServiceModel Metadata utility (NetCFSvcUtil.exe) is required. NetCFSvcUtil.exe and its associated documentation are included in the Power Toys for .NET Compact Framework.

See Also

Other Resources

Tags :


Page view tracker