Testing the RESTful WCF service with a JavaScript client
In the previous sections, we created a C#/XAML client to call the RESTful WCF service from the code behind C# class. In the next sections, we will create a JavaScript client to call the RESTful WCF service. We will first call the service using jQuery and then using WinJS.
Creating the JavaScript client
You can follow these steps to create the JavaScript client:
- From the Solution Explorer, right-click on the solution item and add a new project. Choose JavaScript | Store Apps | Windows Apps | Blank App (Windows) as the template, change the name to
RESTNorthwindClientJS
, and leave the location to be the default one (C:\SOAwithWCFandEF\Projects\RESTNorthwind
). - Again, you might be prompted to get ...
Get WCF Multi-layer Services Development with Entity Framework Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.