O'Reilly logo

WCF 4.5 Multi-Layer Services Development with Entity Framework by Mike Liu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Testing the service with the WCF Test Client

Now we can run the program to test the GetProduct and UpdateProduct operations with the WCF Test Client.

Note

You may need to run Visual Studio as administrator to start the WCF Test Client. You can refer to Chapter 3, Hosting and Debugging the HelloWorld WCF Service, for more details on how to set up your WCF development environment.

First set LINQNorthwindService as the startup project and then press Ctrl + F5 to start the WCF Test Client. Double-click on the GetProduct operation, enter a valid product ID, and click on the Invoke button. The detailed product information should be retrieved and displayed on the screen, as shown in the following screenshot:

Now double-click on the UpdateProduct operation, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required