Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

Embed Size (px)

Citation preview

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    1/40

    Hseyin Dereli03.12.2011

    #sitist

    RESTful web services with ABAP and

    SAP Netweaver Gateway

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    2/40

    Agenda

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    3/40

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    4/40

    Web Services

    W3C Definition:

    A Web service is a software system designed to support interoperable

    machine-to-machine interaction over a network.

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    5/40

    REpresentationalState Transfer

    An Architectural Style, Not a Standard

    Using Standarts and Lightweight

    Based on HTTP

    Resources as URLs, Operations as HTTP methods

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    6/40

    REpresentationalState Transfer

    Four Verbs For Every Noun

    - GET to retrieve information

    - POST to add new information- PUT to update information

    - DELETE to discard information

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    7/40

    REpresentationalState Transfer

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    8/40

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    9/40

    REpresentationalState Transfer

    Architectural style, not a protocolSeries of constraints:

    Client-server

    Stateless

    Cacheable

    Layered systemCode-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

    https://docs.google.com/present/view?id=dcjt66v8_421fgr7hpcc&pli=1https://docs.google.com/present/view?id=dcjt66v8_421fgr7hpcc&pli=1
  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    10/40

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    11/40

    REST SOAP

    Lightweight and Simple Architecture Easy to consume for specific platforms

    Transfer of data in streams of unlimited size

    and typeBuilt-in error handling

    Small learning curve, less reliance on tools Service Discovery

    Human Readable Results Type checking

    Conceptually Easy to Build,Test and Debug Development Tools

    REST vs SOAP

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    12/40

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    13/40

    This is an example text. Go ahead andreplace 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.

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    14/40

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    15/40

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    16/40

    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

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    17/40

    Internet Communication Framework

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    18/40

    Internet Communication Framework

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    19/40

    OData

    SAP Netweaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    20/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    21/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    22/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    23/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    24/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    25/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    26/40

    RESTful Services With Abap

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    27/40

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    28/40

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    29/40

    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 platform-agnostic interoperability.

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

    Yahoo!

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    30/40

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    31/40

    OData

    SAP NetWeaver Gateway

    RESTful Web Services

    REST vs SOAP

    RESTful Web Services With ABAP

    6

    5

    4

    3

    2

    1

    ICF

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    32/40

    SAP NetWeaver Gateway

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    33/40

    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

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    34/40

    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

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    35/40

    SAP NetWeaver Gateway Architecture

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    36/40

    SAP NetWeaver Gateway Deployment

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    37/40

    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 ApplicationsJava Script Applications

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    38/40

    SAP NetWeaver Gateway Javascript Sample

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    39/40

    SAP Netweaver Gateway Response

  • 8/3/2019 Sitist 2011 hdereli REST With ABAP and SAP NetWeaver Gateway

    40/40

    THANKS

    Hseyin Dereli03.12.2011

    #sitist