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, ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.