Partilhar via


How to: Migrate ASP.NET Web Service Client Code to the Windows Communication Foundation

The following procedure describes the broad steps that need to be followed to migrate ASP.NET Web Service client code to WCF.

Procedure

To migrate ASP.NET Web Service client code to WCF

  1. Ensure that a comprehensive set of tests exist for the client.

  2. Use Visual Studio 2005 to upgrade the client application to .NET 2.0. Run the set of tests.

  3. Remove ASP.NET client code from the client project. That code is in modules generated using the WSDL.exe tool.

  4. Generate WCF client code using the ServiceModel Metadata Utility Tool (Svcutil.exe). Add that code to the client project and merge the configuration output into the client’s existing configuration file.

  5. Compile the application. Repair the compilation errors by replacing references to the former ASP.NET client types with references to the new WCF client types.

  6. Run the set of tests.

See Also

Tasks

How to: Migrate ASP.NET Web Service Code to the Windows Communication Foundation


© 2007 Microsoft Corporation. All rights reserved.
Last Published: 2010-03-21