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

Consuming an ASP.NET Web API Service

ASP.NET Web API services can be consumed by any client capable of speaking HTTP. This means other websites as well as native client applications. In the case of a website, you can use standard HTTP GET and POST messages to work with the service. Typically, you do so using JavaScript and the helper library, jQuery. This helper library simplifies sending requests and receiving response messages from services.

For native clients such as iOS, Android, and Windows, you use an HTTP framework class library. In Windows, this is the System.Net.Http namespace (or Microsoft.Net.Http inside the DNX Core 5.0) and the HttpClient class. This framework lets you easily make a request to an HTTP service and consume the results. ...

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