Beruflich Dokumente
Kultur Dokumente
Suppose a Web application wishes to expose its data to apps on mobile phones, for
instance. Without some common way to do this, the Web application must implement its own
approach, forcing every client app developer that needs its data to support this.
Take other example where we need to connect various BI tools with different data sources to
answer business questions. If every data source exposes data in a different way, analyzing
that data with various tools is hard.
The conclusion is We need a common approach to expose data in a simple and
standard way. That's exactly why OData was created.
OData (Open Data Protocol) is an open protocol for sharing data. In other words - OData
defines an abstract data model and a protocol that let any client access information exposed
by any data source.
The fundamental idea is that any OData client can access any OData data source. Rather
than creating unique ways to expose and access data, data sources and their clients can
instead rely on the single solution that OData provides.
OData Architecture:
Below diagram explains the high level architecture of the OData. There are four main
parts of OData
OData Model
OData Service
OData Protocol
OData Client Libraries
OData Model:
OData Model is used to represent the data from different data source in single format using
Entity Data model (EDM).
OData Service:
It is service layer on top of OData Model and it exposes an endpoint that allows client to
access the data using OData Protocol and OData Client library.
It converts the different format of data source like SQL relation tables, SharePoint list,
Windows Azure tables etc. into common format for client to use.
OData Protocol:
OData protocol lets a client make requests to and get responses from an OData service.
OData protocol is a set of RESTful interactions.
OData protocol is just like HTTP and used to do CRUD operation by using OData. It
transfers the data in form of XML or JSON.
OData Client Libraries are used by client application to access the data using OData
Protocol.
Providing pre-built libraries for making OData requests and getting results makes life
simpler for the developers who create those applications.
There are a number of OData client libraries available to access OData. Few of them
are:
An OData service exposes data stored in database tables or views as OData collections for
analysis and display by client applications.
The client can be web browser, or SAPUI5 application or HTML5 application or any other
application which supports OData.
An OData service for SAP HANA XS is defined in a text file with the file suffix .xsodata, for
example, OdataSrvDef.xsodata.
The XSODATA services are great because they provide a large amount of functionality with
minimal amounts of development effort.
After doing this your odata has been created now you can use this in you project.