O'Reilly logo

WCF Multi-layer Services Development with Entity Framework Fourth Edition 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 RESTful WCF service with a C#/XAML client

Next, we will create two clients to test the RESTful WCF service. We will create a C#/XAML client to call the RESTful WCF service from the code behind the C# class and create another client to call the RESTful WCF service in JavaScript with jQuery and WinJS. We will create these two clients as Windows 8.1 apps. If you don't have Windows 8.1, you can create the first client as a WPF application, and the second client as an ASP.NET application in Windows 7.

Creating the C#/XAML client

First, let's create a C#/XAML client to call the RESTful WCF service from the code behind the C# class. You can follow these steps to create this client:

  1. From the Solution Explorer, right-click on the solution item ...

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