Вы находитесь на странице: 1из 40

RESTful web services with ABAP and SAP Netweaver Gateway

Hseyin Dereli
03.12.2011 #sitist

Agenda
1 2
RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

Web Services
W3C Definition: A Web service is a software system designed to support interoperable machine-to-machine interaction over a network.

REpresentational State Transfer


An Architectural Style, Not a Standard Using Standarts and Lightweight
Based on HTTP

Resources as URLs, Operations as HTTP methods

REpresentational State Transfer


Four Verbs For Every Noun

- GET to retrieve information - POST to add new information - PUT to update information - DELETE to discard information

REpresentational State Transfer

REpresentational State Transfer


Architectural style, not a protocol Series of constraints: Client-server Stateless Cacheable Layered system Code-on-demand Uniform interface Our focus today: resources, uniform interface "What is the noun, what is the verb?" Resource Orientated Architecture (ROA)
From DJ ADAMs presentation at #sitNL link

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

REST vs SOAP

REST
Lightweight and Simple Architecture
Transfer of data in streams of unlimited size and type

SOAP
Easy to consume for specific platforms

Built-in error handling


Service Discovery Type checking

Small learning curve, less reliance on tools


Human Readable Results

Conceptually Easy to Build,Test and Debug

Development Tools

This is an example text. Go ahead and replace it with your own text. This is an example text. Go ahead and replace it with your own text. This is an example text. Go ahead and replace it with your own text.

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

Internet Communication Framework

BSP , WDFA and Web Services


Lowest level of HTTP communication layer

Direct Access to HTTP Request and Response Handler to dispatch each HTTP Request

Internet Communication Framework

Internet Communication Framework

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP Netweaver Gateway

RESTful Services With Abap

RESTful Services With Abap

RESTful Services With Abap

RESTful Services With Abap

RESTful Services With Abap

RESTful Services With Abap

RESTful Services With Abap

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

OData Open Data Protocol


http://www.odata.org/
The Open Data Protocol (OData) is an open protocol for sharing data. It provides a way to break down data silos and increase the shared value of data by creating an ecosystem in which data consumers can interoperate with data producers in a way that is far more powerful than currently possible, enabling more applications to make sense of a broader set of data. Every producer and consumer of data that participates in this ecosystem increases its overall value.
OData was initiated by Microsoft to attempt to provide a standard for platformagnostic interoperability.

Widely used, for example, by Twitter, Twilio, Amazon, Facebook, eBay, YouTube, Yahoo!

1 2

RESTful Web Services

REST vs SOAP

3
4 5 6

ICF
RESTful Web Services With ABAP

OData SAP NetWeaver Gateway

SAP NetWeaver Gateway

SAP NetWeaver Gateway


Simple Way to Connect Devices Mobile,Tablet Devices and RIA
No Need to SAP Knowledge

Using REST services and Odata/Atom Protocols

SAP NetWeaver Gateway


A Bridge to other platforms A Bridge to new developer communities
Makes complex data more lightweight

More agile development and deployment model

SAP NetWeaver Gateway Architecture

SAP NetWeaver Gateway Deployment

Consuming SAP NetWeaver Gateway Services

Available Code Samples On SCN Android Applications Blackberry Applications Flex Applications PHP Applications .NET Applications Win Phone Applications Objective C Applications Java Script Applications

SAP NetWeaver Gateway Javascript Sample

SAP Netweaver Gateway Response

THANKS
Hseyin Dereli
03.12.2011 #sitist

Вам также может понравиться