Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WCF Multi-layer Services Development with Entity Framework - Fourth Edition

You're reading from   WCF Multi-layer Services Development with Entity Framework - Fourth Edition Create and deploy complete solutions with WCF and Entity Framework

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781784391041
Length 378 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Mike Liu Mike Liu
Author Profile Icon Mike Liu
Mike Liu
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Implementing a Basic HelloWorld WCF Service 2. Hosting the HelloWorld WCF Service FREE CHAPTER 3. Deploying the HelloWorld WCF Service 4. Debugging the HelloWorld WCF Service 5. Implementing a Three-layer WCF Service 6. Adding Database Support and Exception Handling 7. LINQ to Entities – Basic Concepts and Features 8. LINQ to Entities – Advanced Concepts and Features 9. Applying LINQ to Entities to a WCF Service 10. Distributed Transaction Support of WCF 11. Building a RESTful WCF Service 12. WCF Security 13. Extending WCF Services Index

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:

  1. 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).
    Creating the JavaScript client
  2. Again, you might be prompted to get a developer's license to create a Windows app. Just follow the instructions to get a new one or renew an existing one and then continue.
  3. Now, first add some HTML controls to the default page. Just open the default.html file and replace the body...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime