Pages

Thursday, 23 August 2012

Connecting Windows 8 applications with services: Part 2: Working with REST, oData and RSS from Windows 8 applications

Connecting Windows 8 applications with services: Part 1: Using services to get data in our Windows 8 applications

A REST (REpresentational State Transfer) service is based on some basic concepts of the web such as the HTTP protocol and the HTTP verbs (GET, POST…). When using a REST service, we need to send a request to a particular URL and a response will be returned. This response is unique, based on the URL: never should a specific URL return a different schema of the response. The best example of a REST implementation is the web itself: when we send a request to a particular URL, we’ll get back a response. Such a response is generally known as a resource in the REST terminology. The response is plain text, XML or JSON. The schema for this response can be seen as a contract: the service promises that the response will always be of the specified format. This way, we can write parsing code for the schema.

Read full article here
Download source code form here

No comments:

Post a Comment

Web Informer Button