O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a WCF Service

This section illustrates creating an actual WCF service with Visual Studio 2015. We will develop an implementation for a WCF customer profile service. This example is similar to the Web API service example created earlier to allow comparison between the two methods for developing services. The following steps outline the process of exposing this functionality as a WCF service:

1. Start by creating a new WCF Service Application project. Name the project CustomerServices.

2. Use Solution Explorer to rename the interface and service files to ICustomerProfile.cs and CustomerProfile.svc, respectively.

Note that the service also contains a markup file (not shown in Solution Explorer). You will need to right-click the service, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required