service-oriented architecture and web services essentials by iway - jake freivald
TRANSCRIPT
Service-Oriented Architectureand Web Services
Jake FreivaldApril 7, 2023
Copyright © 2001 iWay Software 1
Essentials
A Lesson From Calvin and Hobbes
service-orientedarchitecture
Copyright © 2001 iWay Software 3
First, A Question
What does the “S” stand for in SOA?
“Service”
Who or what is being serviced in SOA?
The business process owner
Copyright © 2001 iWay Software 4
The Concept Behind SOA
A Lieutenant has: A flagpole A rope A flag Two shovels Three bags of cement A Corporal, a Lance Corporal, and a Private
He has been ordered to erect the flagpole How should he erect it?
“Corporal, erect the flagpole.”
Copyright © 2001 iWay Software 5
Business Questions for IT Managers
How do we improve check processing? What will it cost to merge order processing apps? How long to implement the CRM application? How do I know that this IT investment will pay off?
Answering these questions requires a solid understanding of enterprise architecture
Copyright © 2001 iWay Software 6
The Problem With Current Architecture
What’s this change going to cost? What will it affect? Will it be worth it?
Copyright © 2001 iWay Software 7
Service-Oriented Architecture: An Attempt to Gain Control
Align IT with business requirements “Process check” “Accept order” “Change address” Not “Connect SAP to JDE, getting additional
information through CICS transaction WNIT, then sending a message through WMQI to the EDI processor for sending to…”
How do we do it? Define services Have IT create an architecture that
supports services
Copyright © 2001 iWay Software 8
Implication
Web services aren’t the same thing as SOA Can be application-oriented Can be “tightly coupled” Can be unarchitected
What are Web services? How do we use them properly?
Copyright © 2001 iWay Software 9Copyright © 2001 iWay Software 2
What Are Web Services, and Why Use Them?
Copyright © 2001 iWay Software 10
Interface Flexibility vs. Interoperability
Interoperability
Fle
xibi
lity
Copyright © 2001 iWay Software 11
Interface Flexibility vs. Interoperability
Interoperability
Fle
xibi
lity
text
HTML
Flash
Copyright © 2001 iWay Software 12
Interface Flexibility vs. Interoperability
Interoperability
Fle
xibi
lity
Flat file + FTP
Web services
CORBA
Copyright © 2001 iWay Software 13
Our Five Web Services Terms
Interoperability
Fle
xibi
lity
XML
SOAP + WSDL
UDDI
Schema
Copyright © 2001 iWay Software 14
Topic: XML
Interoperability
Fle
xibi
lity
XML
SOAP + WSDL
UDDI
Schema
Copyright © 2001 iWay Software 15
XML
“Self-describing” Easy to understand and use (in theory) Cross-platform
<book><author>Joliet Jake Blues</author><title>Shades of Blue</title><publisher>Free Forest Publishing</publisher>
</book>
Copyright © 2001 iWay Software 16
XML – Issues
Too flexible. Can describe anything, but we need to know specifically what we’re going to see
<book><author>Joliet Jake Blues</author><title>Shades of Blue</title><publisher>Free Forest Publishing</publisher>
</book>
<book><authors>
<author><title>Joliet</title><first>Jake</first><last>Blues</last>
</author></authors><title>Shades of Blue</title><publisher>Free Forest Publishing</publisher>
</book>
Copyright © 2001 iWay Software 17
Topic: XML Schema
Interoperability
Fle
xibi
lity
XML
SOAP + WSDL
UDDI
Schema
Copyright © 2001 iWay Software 18
<book><author>Joliet Jake Blues</author><title>Shades of Blue</title><publisher>Free Forest Publishing</publisher>
</book>
<book><authors>
<author><title>Joliet</title><first>Jake</first><last>Blues</last>
</author></authors><title>Shades of Blue</title><publisher>Free Forest Publishing</publisher>
</book>
Schema
Sets limits for what a given XML document holds The absolute minimum for automatic interactions
Copyright © 2001 iWay Software 19
Topics: SOAP and WSDL
Interoperability
Fle
xibi
lity
XML
SOAP + WSDL
UDDI
Schema
Copyright © 2001 iWay Software 20
Example: Using SOAP and WSDL
SAP
“Can you help me gain access to SAP?”
User Administrator
“Sure. Here’s the WSDL file.”
WSDLSOAP
Request
SOAPResponse
Copyright © 2001 iWay Software 21
Topic: UDDI
Interoperability
Fle
xibi
lity
XML
SOAP + WSDL
UDDI
Schema
Copyright © 2001 iWay Software 22
Example: Using UDDI with SOAP and WSDL
SAP
User UDDI Directory
WSDLSOAP
Request
SOAPResponse
UDDIRequest
Copyright © 2001 iWay Software 23Copyright © 2001 iWay Software 2
SOA and Web Services
The Vision of Web Services in Service-Oriented Architecture
WS WSWS WS WS WSWSWS
Web Services: XML and HTTP
PortalsPortals BusinessIntelligence
BusinessIntelligence
Java and.NET AppsJava and
.NET AppsB2B
InteractionB2B
Interaction
The Reality
API APIAPI API API APIAPIAPI
Custom Web Service Implementation
Java and.NET AppsJava and
.NET AppsB2B
InteractionB2B
Interaction
Web Services: XML and HTTP
BusinessIntelligence
BusinessIntelligencePortalsPortals
Eliminating Code from Web Services
API APIAPI API API APIAPIAPI
iWay SOA Middleware: ESB, etc.
Java and.NET AppsJava and
.NET AppsB2B
InteractionB2B
Interaction
Web Services: XML and HTTP
BusinessIntelligence
BusinessIntelligencePortalsPortals
Web Services, XML, HTTP, JCA, ODBC, Plug-ins,…
SOA Means Not Being Limited To Web Services
API APIAPI API API APIAPIAPI
iWay SOA Middleware: ESB, etc.
Java and.NET AppsJava and
.NET AppsB2B
InteractionB2B
InteractionBusiness
IntelligenceBusiness
IntelligencePortalsPortals
Copyright © 2001 iWay Software 28
One of Our Customer’s Requirements
1. Get approved work design
2. Load design detail into work request
3. Get Services Request Detail
4. Obtain Accomplish Records
5. Update Crew Schedule 6. Get Labor Equipment Info
7. Update estimate tables 8. Extract Employee Skills
Copyright © 2001 iWay Software 29
ArcFM Mapping &
Models Mapping &
Models Work
DesignWork
Design
Gas &ElectricGas &
ElectricGraphical
ToolsGraphical
ToolsTime and Expense
Time and Expense
EnterprisePM tools
EnterprisePM tools
EnterpriseProject
Management
EnterpriseProject
Management
eTimeMachine Resources &
EmployeesResources &Employees
Customer/1 Customer
BillingCustomer
Billing
CISToolsCIS
Tools
Rates & meteringRates & metering
CustomerInfo
CustomerInfo
Accounting & EstimatingAccounting & Estimating
MaterialCatalogueMaterial
Catalogue
EvaluationsEvaluationsEstimatingtools
Estimatingtools
Timberline
Service Exposure, Composition, Provision: ESB
Primavera (P3E) Activity
EstimatesActivity
EstimatesProjects PlanningProjects Planning
EquipmentEquipment Actual LaborHours, costsActual LaborHours, costs
Passport Material
CatalogueMaterial
Catalogue
WorkOrdersWork
OrdersAM
ToolsAM
Tools
EquipmentEquipment
PragmaCAD MobileManagement
MobileManagement
CrewProfilesCrew
Profiles
Job OrderTools
Job OrderTools SchedulesSchedules
Peoplesoft HR
RecordsHR
Records
Organizationdetail
Organizationdetail
HRToolsHR
Tools
EmployeeSkills
EmployeeSkills
Customer Solution
Service Exposure, Composition, Provision: ESB
App Server:OrchestrationApp Server:
Orchestration
Copyright © 2001 iWay Software 30Copyright © 2001 iWay Software 2
Web ServicesAren’t Enough
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
InformationAssets
Credit RiskEngine
Application owners create different services for each
ERP
Serviceconsumers
Web Services Alone Don’t Mean You Have a Good Architecture
InformationAssets
Common (but bad) idea: application developers call each service independently
Credit RiskEngine
Serviceconsumers
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
The Usual Solution
InformationAssets
Requires knowledge of business problem,
which functions to call, application security, metadata,
transaction management
Credit RiskEngine
Serviceconsumers
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
Terrible Development
InformationAssets
Tightly couples new application to underlying ERPs, so upgrades
must propagate to new application.
Serviceconsumers
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
Worse Maintenance
Credit RiskEngine
InformationAssets
EAI or BPMTools
Portals and B2B systems
Every new application has to recode multiple service calls the same way, reducing the benefit
of service reuse.
Serviceconsumers
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
Problems Multiply With Reuse
Credit RiskEngine
InformationAssets
EAI or BPMTools
Portals and B2B systems
Creditin SiebelCredit
in Siebel
Adding or removing applications causes a ripple effect throughout
the environment.
Serviceconsumers
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
No Isolation From Change
Credit RiskEngine
Enterprise
Service
Bus
InformationAssets
EAI or BPMTools
Portals and B2B systems
Serviceconsumers
Complete isolation from change.Service implementation has little
to no effect on consumers.
Creditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
Better: Use “Service Composition”
Credit RiskEngine
Enterprise
Service
Bus
InformationAssets
EAI or BPMTools
Portals and B2B systems
Serviceconsumers
Complete isolation from change.Service implementation has little
to no effect on consumers.
Creditin SiebelCredit
in SiebelCreditin PSFTCreditin PSFT
Creditin SAPCreditin SAP
Better: Use “Service Composition”
Credit RiskEngine
Enterprise
Service
Bus
InformationAssets
EAI or BPMTools
Portals and B2B systems
Serviceconsumers
Complete isolation from change.Service implementation has little
to no effect on consumers.
Creditin SiebelCredit
in SiebelCreditin SAPCreditin SAP
Better: Use “Service Composition”
Credit RiskEngine
Copyright © 2006 iWay Software 40Copyright © 2001 iWay Software 2
What Was That Again?
Copyright © 2006 iWay Software 41
App App App App
App App App App
Application ApplicationApplication Application
Application Application Application Application
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
Turn this… …into this
Web Services and Legacy Systems
…but service invocations and interfacesare usually still tightly coupled
Web services decouple service interfaces and applications
Copyright © 2006 iWay Software 42
ESB and Legacy Systems
App App App App
App App App App
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
Turn this… …into this
…through transformation,routing, and service composition
ESBs can decouple service invocations from service interfaces
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
ServiceInterface
Copyright © 2006 iWay Software 43
Focus on your core business rather then IT …
New Flight Availability
Service
Old Flight Availability
Service
HotelAvailability
Service
BookHotel
Service
BookCar
Service
TravelReservation
Process
New CheckTravelerService
Check Credit Service
Book Flight Service
Add new services faster
Change services with minimal impact to
existing services
Flight Availability
Service
SOA, Legacy, and the ESB
Enterprise Service Bus
Copyright © 2006 iWay Software 44
TravelReservation
Process
CheckTravelerService
Check CreditService
Book FlightService
HotelAvailability
Service
Flight Availability
Service
Book HotelService
Book CarService
When all applications conform to Web Services standards…
When not all applications conform to Web Services standards…
…a “standards-based” ESBmay do enough
…you may need an advanced ESB that creates services from existing non-
standard assets.
TravelReservation
Process
CheckTraveler
Application
Check CreditApplication
Book FlightApplication
HotelAvailability
Service
Flight AvailabilityApplication
Book HotelApplication
Book CarApplication
11 22
Typical Enterprise Service Bus Advanced Enterprise Service Bus
SOA, Legacy, and the ESB
Copyright © 2006 iWay Software 45
Web Service connectivity and data transformation
Universal connectivity and transformation
HTMLUDDI
WSDL HTTP
XML SOAP JMS
Web Services
UCCnetAquaLogicEDIINT BizTalk
JCA Essbase 3270 JMS
Siebel EDIG@SSAP ESRI
Google VSAMOracle
CICS BaanTuxedo
PeopleSoftLawson DB2/400 ebXML
iWay Enterprise Service Bus
SOA, Legacy, and the ESB
HL7AS1
5250
FIX
GJXML AS2 AS3
Copyright © 2006 iWay Software 46
iWay’s Two Major Benefits:Productivity and Interoperability
Productivity From developer’s perspective,
everything looks the same Requires no extra training or skills Useful for their tools of choice
Interoperability Different platforms and software
require different plugins Leaves you open for next steps, e.g.,
B2B, post-Web services
BPM/BPEL
Mainframe
DB2 CICS CICS IMSVSAM DB2/400 JDEiSeries
SQL Svr Etc.Windows
Oracle SAPUnix
Stateless services
Service interfaces: business data only
Portals
Plug-in
CompositeApps
JCA
B2B
XMLAS2
EAI Tools
Plug-in
Copyright © 2001 iWay Software 47Copyright © 2001 iWay Software 2
SOA and Business Intelligence
Copyright © 2006 iWay Software 48
Options:Traditional ETL
Supports DW goals: single version of truth, etc. Relatively simple conceptually Relatively high latency
DataFlow
Copyright © 2006 iWay Software 49
Options: Real-time, or “Trickle-feed”, Data Warehousing
Events captured, cleansed, loaded as they happen Supports DW goals: single version of truth, etc. Very low latency, from real-time to several minutes
EventFlow
Copyright © 2006 iWay Software 50
Options: Distributed Query
One query, many sources: reconciled in real time The operational systems’ “version of the truth” Need to be wary of performance, contention issues
Copyright © 2001 iWay Software 51
ApplicationApplication
Data Integration vs. Application Integration
ApplicationApplication
DataDumpData
DumpDataLoadDataLoadFTPFTP
Copyright © 2001 iWay Software 52
ApplicationApplication
Data Integration vs. Application Integration
ApplicationApplication
DataDumpData
DumpDataLoadDataLoadFTPFTP
Copyright © 2001 iWay Software 53
ApplicationApplicationApplicationApplication
Data Integration vs. Application Integration
Tra
nsa
ctio
ns
Tra
nsa
ctio
ns T
ransa
ctions
Tra
nsaction
s
Copyright © 2001 iWay Software 54
ApplicationApplication
Application Integration – and SOA – For Business Intelligence
DataWarehouse
Tra
nsa
ctio
ns
Tra
nsa
ctio
ns
BusinessIntelligenceApplications
BusinessIntelligenceApplications
Copyright © 2001 iWay Software 55
ApplicationApplication
Application Integration – and SOA – For Business Intelligence
DataWarehouse
Tra
nsa
ctio
ns
Tra
nsa
ctio
ns
BusinessIntelligenceApplications
BusinessIntelligenceApplications
Copyright © 2001 iWay Software 56
ApplicationApplicationT
rans
act
ion
sT
rans
act
ion
s
Application Integration – and SOA – For Business Intelligence
DataWarehouse
BusinessIntelligenceApplications
BusinessIntelligenceApplications
Copyright © 2001 iWay Software 57
ApplicationApplicationT
rans
act
ion
sT
rans
act
ion
s
Application Integration – and SOA – For Business Intelligence
DataWarehouse
BusinessIntelligenceApplications
BusinessIntelligenceApplications
CompositeApplicationsComposite
Applications
Business-to-Business
Interactions
Business-to-Business
Interactions
PortalsPortals
Copyright © 2006 iWay Software 58
What Services Should We Expose, And When?
SQL-queryable data models Parameterized non-SQL queries Queries deployed from BI tools Pros and cons of various tool sets
Business intelligence Application integration EII / federated data query tools
Customers: Bell Canada Iowa Courts
Copyright © 2006 iWay Software 59Copyright © 2001 iWay Software 2
Henny Penny
Copyright © 2006 iWay Software 60
Pre iWay Topology Pre iWay Topology
ISERIES
7.3.3Rip and
Read
DB2
JDE TerminalInterface
INOVIS EDI Translator
ODBC
FTP / X!2 EDI
FTP / Form
TradingPartner I
TradingPartner II
Value Added Network
Receive and print orders
RIP and read
Copyright © 2006 iWay Software 61
Solution Topology Solution Topology
FTP/ XML
Trading Partner I
eMail/File
Trading Partner Runtime
Protocol Adapter
EDI X12Adapter
Protocol Adapter
DB2
iSeries7.3.3
JD Edwards One World Adapter
Legacy Adapter
Validate and Translate
Trading Partner II
Sales Orders Sales Orders
Trading Partner III
Email Server
FTP/ X!2 EDI
JDE Master Business Functions interface
Running a process flow to validate and insert sales
orders.
iWayService Manager
Windows 2003 Server
Copyright © 2006 iWay Software 62Copyright © 2001 iWay Software 2
Colorado Dept of Corrections
Copyright © 2006 iWay Software 63
Pre iWay Topology Pre iWay Topology
Colorado Department Of Corrections
Jail Management System
Online Pharmacy
Colorado Bureau of
Investigation
Call CenterIs there any vendor
that can help us validate, transform, and route
flat files, HL7, and GJXML – in and out -
of our Jail Management System?
HL7
Flat files
GJXML
Copyright © 2006 iWay Software 64
Online Pharmacy
Colorado Bureau of
Investigation*
Call Center
InformixRDBMSAdapter
ServiceManagerServiceManager
Wintel Unix
Colorado Department of Corrections
DOC Enterprise Service Bus
Jail Management System
HL7
Flat files
GJXML
*Future: GJXML exchanges with other departments inside the Colorado Justice supply chain …
iWay Solution iWay Solution
Copyright © 2001 iWay Software 65Copyright © 2001 iWay Software 2
Wrap-up
Copyright © 2001 iWay Software 66
What To Do Now: Project Perspective
Evaluate high-value projects Portal, composite application, B2B, BPM, BI
Evaluate BI applications You measure important stuff: walk the process
Identify the services needed to support them Identify other projects that can use them Create the services Orchestrate them
Don’t be too timid: you’ll want the ROI and reuse
Copyright © 2001 iWay Software 67
Our iWay Integration Specialists willOur iWay Integration Specialists will Analyze your business challengeAnalyze your business challenge Examine your Enterprise / Environment Examine your Enterprise / Environment Assess your integration requirementsAssess your integration requirements Recommend Integration AlternativesRecommend Integration Alternatives
Call to Action Call to Action
Half Day needs analysis and ReviewHalf Day needs analysis and Review
Take us up on . . .
This half day session is free
Hands on WorkshopsNote your interest on your evaluations