Joe.wang
Joe.wang

Reputation: 11793

What is the relationship between OData , Atom, Json and WCF Data Service

Recently I was learning WCF Data service. I know the Data Service expose the Data As Rest Resource Which can be manipulated by URL. But There are many technologies in this field. Hope someone can help me understand these .Thanks

Upvotes: 10

Views: 9930

Answers (2)

Kumar Manish
Kumar Manish

Reputation: 3772

WCF Data Services (formerly known as "ADO.NET Data Services") is a component of the .NET Framework that enables you to create services that use the Open Data Protocol (OData) to expose and consume data over the Web or intranet by using the semantics of representational state transfer (REST).

Open Data Protocol (OData) is an open protocol to allow the creation and consumption of queryable and interoperable RESTful APIs in a simple and standard way.

more http://en.wikipedia.org/wiki/Open_Data_Protocol

Atom is way to expose feeds much the same way RSS does.

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.

Upvotes: -1

Vitek Karas MSFT
Vitek Karas MSFT

Reputation: 13310

OData is a protocol to expose (as you stated) Data As a REST Resource. The page to go to learn more is http://www.odata.org.

WCF Data Services is an implementation of the OData protocol (both client and server) by Microsoft on the .NET platform. So a service created by WCF Data Services uses the OData protocol.

ATOM is a standard format, and it is one of the possible wire formats for transferring data in the OData protocol. The OData protocol defines extensions to it. For better picture, ATOM is an XML based format which defines XML elements and their meaning (feeds, entries, links), and OData uses that along with couple of its own XML elements to serialize the data.

JSON is a standard format (for serialization of JavaScript objects) and it is one of the possible wire formats for transferring data in the OData protocol. So OData protocol uses JSON to serialize the data.

Upvotes: 10

Related Questions