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. ...
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.