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:
Create a new directory named
RESTNorthwind
under the existingC:\SOAwithWCFandEF\Projects\
directory.Copy all of the files under the
C:\SOAwithWCFandEF\Projects\LINQNorthwind
directory to theC:\SOAwithWCFandEF\Projects\RESTNorthwind
directory.Remove the
LINQNorthwindClient
folder. We will create a new client for this solution.Change the solution file's name from
LINQNorthwind.sln
toRESTNorthwind.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:
Start...