apex, restful services and stripe

23
Lino Schildenfeld 10 - 11 th November 2016 APEX RESTful Services and Stripe www.apexRnD.co.nz lschilde.blogspot.com @LinoSchilde [email protected] AUSOUG Connect 2016

Upload: lino-schildenfeld

Post on 14-Apr-2017

43 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: APEX, restful services and STRIPE

Lino Schildenfeld 10 - 11th November 2016

APEX RESTful Servicesand Stripe

www.apexRnD.co.nzlschilde.blogspot.com@[email protected]

AUSOUG Connect 2016

Page 2: APEX, restful services and STRIPE

in short

APEX R&D manager for NZ/AU

10+ years Oracle development experience

APEX blogger, presenter and enthusiast

NZ APEX meetup organizer

www.meetup.com/ORCLAPEX-NZ

Who am I?

Page 3: APEX, restful services and STRIPE

About Web Services?

Page 4: APEX, restful services and STRIPE

Intro

Enable applications to interact over the Web in a platform-neutral language independent environment

Typically based on Simple Object Access Protocol (SOAP) or Representational State Transfer (REST) architectures

Message formats SOAP (Simple Object Access Protorcol) REST (Representational State Transfer)

Returns a status code over HTTP http://www.restapitutorial.com/httpstatuscodes.html

Page 5: APEX, restful services and STRIPE

SOAP

apex.oracle.comapex.world

Page 6: APEX, restful services and STRIPE

WSDL - Web Service Definition Language

World Wide Web Consortium standard protocol sending and receiving requests and responses across the Internet messages sent back and forth between a provider and a user in SOAP envelopes

Weather Service, Geocoding, Twitter and other social media resources based on XML

Page 7: APEX, restful services and STRIPE
Page 8: APEX, restful services and STRIPE

RESTful Service

apex.oracle.comapex.world

Page 9: APEX, restful services and STRIPE

RESTfulWhy is it called Representational State Transfer?The Web is comprised of resources. A resource is any item of interest.

For example, the Boeing Aircraft Corp may define a 747 resource.

Clients may access that resource with this URL:

http://www.boeing.com/commercial/747/ A representation of the resource is returned (e.g., Boeing747.html). The representation places the client application in a state. The new representation places the client application into yet another state. Thus, the client application changes (transfers) state with each resource representation --> Representational State Transfer!

Page 10: APEX, restful services and STRIPE

How REST works?

Page 11: APEX, restful services and STRIPE

Info

It is architectual model for development It is not a Protocol or W3C Standard REST := Representational State Transfer year 2000 by Roy Fielding HTTP in its core Lightweight alternative for Remote Procedure Call and Web Services GET, POST, PUT, DELETE, OPTIONS methods The default language of REST web services is JSON

Page 12: APEX, restful services and STRIPE

WSDL and RESTFul differences

Page 13: APEX, restful services and STRIPE

Differences

The RESTful scope is found in the URI Does not require the overhead of XML and SOAP envelopes Inputs are typically provided in the URI - GET, POST, PUT, HEAD, and DELETE.

WSDL Webservice is more flexible but harder to code RESTful is easier to configure In APEX you can write your own RESTful Services You can consume both – WSDL and RESTful

Page 14: APEX, restful services and STRIPE

Benefits of running ORDS

Page 15: APEX, restful services and STRIPE

Webservices in APEX

Page 16: APEX, restful services and STRIPE

Introduced

Version 1.5 (2004)

WSDL based – offers Forms und Forms with Report Version 4.0 (2010)

apex_web_service API RESTful Web Service support

Versions 4.2 - 5.0 further enhancement for RESTful with configuration options in Shared components

Page 17: APEX, restful services and STRIPE

How to create?

Page 18: APEX, restful services and STRIPE

Setup

Three requirements for using Web Services: You need to enable it Grant connect to apex_restful_service user ACL Configured

ORDS installation and configuration

Page 19: APEX, restful services and STRIPE

DEMO time

Page 20: APEX, restful services and STRIPE

In practice

Page 21: APEX, restful services and STRIPE

Further info and references http://www.doag.org/formes/servlet/DocNavi?action=getFile&did=4601171&key=apex-plugin.com

ODTUG KSOPE 2014-2016 presentations

http://isu.ifmo.ru/docs/apex41/doc.41/e21674/advnc_web_services.htm

http://www.explorer-development.uk.com/making-consuming-rest-web-services-using-ords-apex/

http://www.xfront.com/REST-Web-Services.html

http://warp11.nl/2011/07/calling-a-rest-webservice-with-plsql/

http://www.oracle.com/webfolder/technetwork/tutorials/obe/cloud/schema /50/Creating_RESTful_web_services/Creating_RESTful_web_services.html#overview

Page 22: APEX, restful services and STRIPE

www.apexofficeprint.com

Page 23: APEX, restful services and STRIPE

Q&A www.apexRnD.co.nzlschilde.blogspot.com@[email protected]