Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By : Mike Liu
Book Image

WCF Multi-layer Services Development with Entity Framework - Fourth Edition

By: Mike Liu

Overview of this book

Table of Contents (20 chapters)
WCF Multi-layer Services Development with Entity Framework Fourth Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Hosting the HelloWorld WCF Service
Index

Chapter 11. Building a RESTful WCF Service

In the previous chapters, we created a 3-layered WCF service, used LINQ to Entities in the data access layer, then turned on distributed transaction support for the service. In this chapter, we will convert this SOAP WCF service to a RESTful WCF service and create two Windows 8 apps to consume this RESTful WCF service.

In this chapter, we will cover the following topics while creating and testing the RESTful WCF service:

  • SOAP versus REST

  • WCF REST versus the ASP.NET Web API

  • Creating the RESTNorthwind solution

  • Creating the RESTful service

  • Defining RESTful service contracts

  • Implementing the RESTful service

  • Modifying the configuration file

  • Testing the RESTful service in a browser

  • Testing the RESTful WCF service with a C#/XAML client

  • Testing the RESTful WCF service with a JavaScript