Date post: | 19-Dec-2015 |
Category: |
Documents |
Upload: | baldwin-harris |
View: | 216 times |
Download: | 2 times |
APEX & SOABest of two worlds
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
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
What is SOA?
• Service Oriented Architecture
• SOA Suite• Webservices
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 4
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
…..
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
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.
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
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.
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
Demo 1
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 11
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.
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
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
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
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
Demo 2
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 17
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
Demo 3
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 19
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
Demo 4
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 21
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
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
Any questions
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 24
Contact
http://[email protected]@whitehorses.nl
March 25th 2015
OGh APEX World 2015 – Michel van Zoest – APEX and SOA 25