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

Creating the RESTNorthwind solution


In this chapter, we will create a new solution based on the LINQNorthwind solution. We will copy all of the source code from the LINQNorthwind directory to a new directory and then customize it to suit our needs.

Follow these steps to create the new solution:

  1. Create a new directory named RESTNorthwind under the existing C:\SOAwithWCFandEF\Projects\ directory.

  2. Copy all of the files under the C:\SOAwithWCFandEF\Projects\LINQNorthwind directory to the C:\SOAwithWCFandEF\Projects\RESTNorthwind directory.

  3. Remove the LINQNorthwindClient folder. We will create a new client for this solution.

  4. Change the solution file's name from LINQNorthwind.sln to RESTNorthwind.sln.

Now, we have the file structures ready for the new solution. Here, we will reuse the old service to demonstrate how to make an existing WCF service RESTful.

First, we need to make sure this old service in the new solution still works and we also need to create a new IIS application for the service:

  1. Start...