Sie sind auf Seite 1von 22

SAP

Netweaver
Gateway
(OData)

Topics to cover
DAY1
History of OData, Introduction, Need of OData
When to use OData? How it is different than the Web services?
Which is better SOAP or REST?
Entity data model, complex type, association, navigation
NW architecture, Essential components of NW GW, Where to
get from SAP service market place
Create Model and Data class, show till metadata fetch
SPRO Configuration.SM59 configuration
Assign hands-on exercise

Topics to cover
DAY2
Doubts session
Model provider class, Data class in details.
Get entity set and get entity method.
How to install rest client and testing using Advance rest client.
DAY3
Doubts Session
Create entity method

Topics to cover

DAY4
Doubts Session
Create deep-entity method
DAY5
Doubt Session
Service builder Navigation, association.

What are services and


messages?

Services are not classes, components or namespaces, they are self


contained business functionality.

History of OData, Introduction,


Need of OData
These are initially defined by
Microsoft.
Based on open specifications, where
these services can be invoked easily
by the clients.

When to use OData? How it is different than the


Web services? Which is better SOAP or REST?

When to use OData? How it is different than the


Web services? Which is better SOAP or REST?

When to use OData? How it is different than the


Web services? Which is better SOAP or REST?

When to use OData? How it is different than the


Web services? Which is better SOAP or REST?

10

OData
ODATA Stands for Open Data Protocol
It is based on the Atom Publishing and Atom Syndication standards, which in turn, are
based on XML and HTTP(S).
It was designed to provide a standardised implementation of a RESTful API. In doing so, it
offers database-like access to server-side resources.
ODBC for the web
OData is also extensible. This allows SAP to supplement the data types used by OData
with extra information from the ABAP Data Dictionary.
Specifies how data should be encoded within feed
OData can be used to access table like structures similar to the way SQL does
Entity Data Model (EDM) to describe OData Services
Each entity can support Create, Retrieve, Update, and Delete operations

11

OData Cont.

12

OData Cont.
Atom Syndication
-

TheAtom Syndication Formatis a XML-based format used for web feeds (or news
feeds). Its

basically an alternative to RSS.

Atom Publishing Protocol

The Atom Publishing Protocol is an application-level protocol for


publishing and editing Web Resources using HTTP

Central to the Atom Publishing Protocol is the concept


ofcollectionsof editable resources that are represented by Feed and
Entry documents

13

OData Cont.
ODATA

ODATA extends Atom by providing a metadata description of


message

OData provides definitions for:

-Simple Types

-Complex Types

-Associations between entries

-Navigation Paths between entries

-Custom behaviour (known as function imports) beyond the


standard QUERY,

CREATE, READ, UPDATE, DELETE (QCRUD)

operations

14

Atom publishing protocol

15

OData and Database

16

Entity data model, complex type,


association, navigation
An Entity Data Model (EDM) is the starting point when designing an OData service. The
EDM describes the organisation and relationship of the resources within a particular
business scenario

Entity Type : Data model definitions, structure types consist of list of properties
Complex Type : Structure types also consist of list of properties but with no key
Entity Set : Collection of Entity
Association : Defines the relationship between two or more entity type
Navigation Property : Special property on entity type which are bound to a specific
association and can be used to refer association of an entity

17

NW architecture, Essential components of NW


GW, Where to get from SAP service market
place

18

Prerequisites

19

Creating OData using OData


Channel

20

Gateway Service

21

Gateway Service Cont.

22

Das könnte Ihnen auch gefallen