apex & soa best of two worlds. who am i? michel van zoest consultant at whitehorses bv...

25
APEX & SOA Best of two worlds

Upload: baldwin-harris

Post on 19-Dec-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

APEX & SOABest of two worlds

Page 2: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Who am I?

• Michel van Zoest• Consultant at Whitehorses BV• Application Express Certified Expert• SOA Suite Certified Specialist• Author of Oracle APEX Cookbook (Packt

Publishing)

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 2

Page 3: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Why this presentation?

• APEX is an excellent tool for exposing data• SOA Suite is an excellent tool for exposing data

• Why not combine them instead of replacing one?

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 3

Page 4: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

What is SOA?

• Service Oriented Architecture

• SOA Suite• Webservices

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 4

Page 5: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

SOA Application Architecture

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 5

OSB SOA

Webservice

BPEL

Proxy

Business

Service

Database

Adapter

Outside World

File

…..

Page 6: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

The Case

Holland BV-Dutch company-APEX application for HR and Sales

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 6

Amerika Inc.-American company-Multiple frontends using webservices

Merging to become Holland Amerika Line-Reusability of both architectures

-Minimal effort

Page 7: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Holland Amerika Line

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 7

APEX Frontend for HR and Sales application

Service Oriented Architecture for HR and

Sales application

DB Webservices

Holland BV Amerika Inc.

Page 8: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

How to integrate both applications?

• Step 1: Consume HR Webservice into APEX application

• Step 2: Expose data from Sales to SOA application

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 8

Page 9: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

SOA service to APEX report

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 9

APEX Frontend for HR and Sales application

Service Oriented Architecture for HR and

Sales application

DB Webservices

Holland BV Amerika Inc.

Page 10: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Integrate webservice in APEX report

• OSB / SOA Webservice• Webservice reference• XMLTable Select

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 10

Page 11: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Demo 1

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 11

Page 12: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

REST service to SOA

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 12

APEX Frontend for HR and Sales application

Service Oriented Architecture for HR and

Sales application

DB Webservices

Holland BV Amerika Inc.

Page 13: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Integrate REST service in SOA

• SQL Workshop -> RESTful Services• REST Adapter in SOA Suite

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 13

Page 14: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

RESTRepresentational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. REST is a coordinated set of constraints applied to the design of components in a distributed hypermedia system that can lead to a more performant and maintainable architecture.REST has gained widespread acceptance across the Web as a simpler alternative to SOAP and WSDL-based Web services. RESTful systems typically, but not always, communicate over the Hypertext Transfer Protocol with the same HTTP verbs (GET, POST, PUT, DELETE, etc.) used by web browsers to retrieve web pages and send data to remote servers.March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 14

Page 15: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

JSON

JSON (/ˈdʒeɪsən/ JAY-sən), or JavaScript Object Notation, is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. It is used primarily to transmit data between a server and web application, as an alternative to XML.

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 15

Page 16: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

JSON Example

{ "Event":"OGh APEX World" ,"Date":"March 25th 2015" ,"Speakers":[{ "Speaker1":"Steven Feuerstein"

,"Speaker2":"David Peake","Speaker3":"Roel Hartman"

}] ,"Attendees":"350" ,"Location":"Rotterdam"}

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 16

Page 17: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Demo 2

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 17

Page 18: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Extra option: APEX_WEB_SERVICE

• Consume a REST service with APEX_WEB_SERVICE

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 18

Page 19: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Demo 3

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 19

Page 20: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

APEX 5.0: APEX_JSON

New package available in APEX 5.0

•Generate JSON•Read JSON•Convert to XMLTYPE

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 20

Page 21: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Demo 4

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 21

Page 22: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Logging SOA Suite

• Customer CaseCustomer Case• APEX Application with reportsAPEX Application with reports• Logging of Events in SOALogging of Events in SOA

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 22

Page 23: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

The future

• Application Express 5.1 (Statement of Direction)Application Express 5.1 (Statement of Direction)– Webservices SupportWebservices Support

• ORDS 3.0 (currently in Early Adopters phase)ORDS 3.0 (currently in Early Adopters phase)– JSON Document Store (Oracle 12c only)JSON Document Store (Oracle 12c only)– Auto Generated REST Endpoints for Tables and Auto Generated REST Endpoints for Tables and

ViewsViews

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 23

Page 24: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Any questions

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 24

Page 25: APEX & SOA Best of two worlds. Who am I? Michel van Zoest Consultant at Whitehorses BV Application Express Certified Expert SOA Suite Certified Specialist

Contact

http://[email protected]@whitehorses.nl

March 25th 2015

OGh APEX World 2015 – Michel van Zoest – APEX and SOA 25