WHAT’S IN THIS CHAPTER?
WROX.COM CODE DOWNLOADS FOR THIS CHAPTER
When Windows Communication Foundation (WCF) was announced, it was the technology for communication and replaced several other technologies in the .NET stack (a few mentioned are .NET Remoting and ASP.NET Web Services). The goal was to just have one communication technology that is very flexible and fulfills all needs. However, WCF was initially based on SOAP. Now we have many scenarios where the powerful SOAP enhancements are not needed. For simpler scenarios such as HTTP requests returning JSON, WCF is too complex. That’s why another technology was introduced in the year 2012: ASP.NET Web API. With the release of Visual Studio 2013, the next major version of ASP.NET Web API is released: 2.0. This version is covered in this chapter.
ASP.NET Web API offers a simple communication technology based on Representational State Transfer (REST). REST is an architecture style based on some constraints. Let’s compare a service that is based on the REST architectural style with a service that makes use of SOAP to see ...