August 2013
Intermediate to advanced
340 pages
8h 43m
English
CHAPTER 11
![]()
Consuming ASP.NET Web API
One of the greatest benefits of ASP.NET Web API is its reachability. A broad range of clients in disparate platforms can consume your web API, leveraging the support HTTP enjoys across platforms and devices. In this chapter, I cover the topic of client applications consuming your web API. I’ve limited the coverage to .NET clients—a console application, a Windows Presentation Foundation (WPF) application, and a JavaScript client running in the context of a browser.
11.1 Calling a Web API from a Console Application
In this exercise, you will call your web API from a C# console application. To call the web API, ...