Creating the Web Service

There are several ways that you can create a web service. Even if you restrict yourself to Microsoft technologies, you have several options. You can create a WCF service, a WCF Data Service, an ASMX Web service, a Windows Azure Mobile Services service, or an ASP.NET Web API service.

Note

In the next chapter, you learn how to interact with web services created with Azure Mobile Services.

In this chapter, I create a web service by taking advantage of the ASP.NET Web API. You can add a Web API controller to either an ASP.NET Web Forms or an ASP.NET MVC project. I create an ASP.NET MVC 4 project. When creating the ASP.NET MVC 4 project, I used the Web API project template (see Figure 9.3).

FIGURE 9.3 Creating an ASP.NET ...

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed 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.