Sie sind auf Seite 1von 22

Copyright © 2018, Oracle and/or its affiliates. All rights reserved.

| Confidential – Oracle Internal/Restricted/Highly Restricted


Create Database REST APIs for Mobile
Apps Using Oracle APEX
• Joe Greenwald
• Sr. Principal Instructor, Oracle University
• #OOW18

Copyright © 2018, Oracle and/or its affiliates. All rights reserved.


• 15+ years teaching and consulting for Oracle

Classes taught:
• ADF Mobile and Desktop
• PL/SQL and SQL
• APEX
• SOA Suite and Service Bus Enterprise Integration
• Java SE, EE
• REST and SOAP
• WebCenter Content
• Database, WebLogic and FMW Administration
• Data and Object Modeling & Design
• Mobile Cloud

Interests:
• Model-based Development
• CASE Tools
• Enterprise Integration
Joe Greenwald • Methods and Techniques
• Mobile Development – First: Apple Newton 1996
Sr. Principal Instructor, Oracle Corporation
joe.greenwald@oracle.com

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, timing, and pricing of any
features or functionality described for Oracle’s products may change and remains at the
sole discretion of Oracle Corporation.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted
Goal is to Access Enterprise Data on a Company Mobile App
What are the Major Challenges?
How to secure the data?
How to create and manage new roles and access for new types
of users – who are now seeing some enterprise data – maybe
for the first time
So, how do I get the data into the
user interface? How to access the data?
What protocols – SOAP or REST or Proprietary or Security must
be applied to message being sent, & what if it changes?

How to consume the data?


Format – XML or JSON
How much to consume – where does the data get filtered,
mapped, sorted, computed, before display on the mobile
device?
Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Expose Back-end Enterprise Data as RESTFul Web Service

PL/SQL Libraries

select…

Oracle begin…
Database http://rest/api Other consumers

Flat
Files

Streams Other services Streams


(REST, SOAP)

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


XML vs. JSON Performance

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Consuming Enterprise Data Services Can Be Too Much for
Mobile Applications

Needs to Display:
Data Services
Current Balance Shaped Data

Service Payload Contains Complete


Customer Account Info:

Customer First Name


Customer Last Name
Email
Phone numbers
Addresses

Current Balance
Transactions

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Consume REST Services in Oracle Front-end Development
Tools
Mobile:
• Java: Application Development Framework (ADF) Desktop, Mobile ADF (MAF)
• JavaScript: JavaScript Extension Toolkit (JET), Application Express (APEX)
Desktop:
• ADF
• JET
• APEX
• Oracle Forms

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Create RESTFul Web Services in Oracle Application Express
(APEX)
• Same functionality as ORDS – but developed and
available within APEX as well, uses APEX UI and
Capabilities – ORDS can be programmed or managed
with SQL Developer or CLI.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


3 Steps to a Working REST Service
3. Create a Handler
• 1. Create a Module

2. Create a Template

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Demonstration

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted
Oracle Application Express (APEX) Solution

select * from customers where cust_id = :id

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Oracle Mobile Cloud Service: Mobile Back Ends
• Mobile back ends are server-side groupings of APIs and other resources
that you create to support a specific set of applications.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Diagnostics Analytics Life
Lifecycle
Cycle

MAF Application
Oracle Cloud

Mobile
Mobile
Back End Custom APIs Connectors

Cloud/Internet
REST APIs Node
Node
REST APIs

Mobile Client SDKs


Platform
Platform APIs
APIs
On-Premise

Notifications User Services Storage Database Data Offline

JavaScript SDK

Oracle Mobile Cloud Service


Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |
Developer Roles Oracle Mobile Cloud Service
Mobile Mobile External
App Back End Custom API Connectors Services

http://rest/api Node

Interface Implementation

Mobile App Services


Developer Developer

Defines Interface Defines Implementation


REST API Node.js code
Mock data Connectors
The mobile developer and service developer work hand in hand in parallel.
Or, one person does all the work in sequence.
The choice is yours.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Summary
• Mobile applications have very different data needs than internal desktop
applications.
• Mobile apps require RESTFul web services to provide shaped data
payloads of smaller sizes.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |


Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted
Experience Oracle University Learning Subscriptions!
Visit education.oracle.com/oowtrial
Free Trial Subscription:
– Special invitation from Oracle
University to attendees of Oracle
OpenWorld or Code One
– Anytime, anywhere access
– Continually updated training on Oracle
products and technologies.
– Experience the new Unlimited Product
Learning Subscription

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Oracle Confidential – Internal/Restricted/Highly Restricted 19
Are You Up For the Oracle University Zip Labs Challenge at Code One?
Join us in San Francisco, California at the Moscone West Center where you can compete to win a prize at
the “Oracle University Zip Labs Challenge Booth.”
When:
• Monday, October 22th – Open from 9:00am through 4:30pm
• Tuesday, October 23th – Open from 9:00am through 4:30pm
As you complete labs and quizzes,
• Wednesday, October 24th – Open from 9:00am through 3:00pm
you’ll earn points to boost your
What is the Oracle University Zip Labs Challenge? leaderboard standing. At the end
of each day, the top 5 winners win a
The Oracle University Zip Labs Challenge is a collection of labs, each 10-20 minute long. Zip Labs guide you fabulous prize. So if you are up for
through a sequence of steps to accomplish a specific task within the Oracle Cloud Platform. It’s an opportunity to the challenge – then we hope you
get started experiencing for yourself how some of Oracle’s new technologies work. You can select from labs in the drop by to showcase your skills and
categories covering: curiosity! Looking forward to seeing
you there.
• Virtual Machines: Creating a VM in OCI
• Autonomous Data Warehouse (ADW): Provisioning, Connecting to SQL, Machine Learning
• Autonomous Transaction Processing (ATP): Provisioning, Connecting to SQL, Scaling
Great Learning. Great Technology. Great Prizes
COME SEE WHAT ALL THE EXCITEMENT IS ABOUT AS YOU WORK THROUGH EXPERT DEVELOPED LABS AND CLIMB
HIGHER ON OUR LEADERBOARD THROUGHOUT THE DAY – COMPETING WITH OTHER CONTESTANTS

It’s simple to find us. Go to the 2nd floor of Moscone West.

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted 20
Your Chance to Influence
Product Direction and Design!

The Cloud Platform UX team would love


to get your feedback on new designs.
Sign up here:
https://tinyurl.com/OracleUserResearch

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Das könnte Ihnen auch gefallen