1 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Transactional Connectivity of Webservices with Mainframe Applications
Anton VorsamerFujitsu-Siemens ComputersTel: +49 89 636 47524Email: [email protected]
2 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
IT Scenario
HTTP + XML
HTTP
external Server
Web Server
Web Client
Host Systems
ApplicationServer
DB ServerPC Client
internal ServerERP Systems
Web Services
3 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
J2EE Architecture 1.3
JMS
EJBContainer
EJB
EJB
WebContainer :
HTML/XML
Servlets+
JSPs
EnterpriseInformationSystems :
Legacy Applications
ERP Systems
Client
Client
Client
Client
ClientRelational Databases
MD
BConnectors
new
JDBC
4 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
J2EE Architecture & BeanTransactions
JMS
EJBContainerBeanTA
EJB
EJB
WebContainerTomcat
Servlets+
JSPs
EnterpriseInformationSystems :
Legacy Applications
ERP Systems
Client
Client
Client
Client
Client
Host MQ
Relational Databases
ConnectorsM
DB
Connectors
JDBCBeanTransactions
5 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
BeanTransactions Application Server
C++ , C
Web-Client
Standard Web Browser
Standard Web Server
SuiteSpot
Windows PC
UNIXWorkstation
Application
Terminal
Communications
Acc
es
s C
on
tro
l /
Tra
nsa
cti
on
al
Se
cu
rity
Application Server
UNIX
WindowsNT
Cobol
DBMS
JAVA Client
6 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
openUTM and BeanTransactions
OSI-TP LU6.1 LU6.2 TCP/IP IIOP
Interoperability openUTM IBM CICS, IMS/DC, MQSeries OSI-TP Applications TCP/IP Applications SAP R/3 ...
C++ , C
Web-Client
Standard Web Browser
Standard Web Server
SuiteSpot
Windows PC
UNIXWorkstation
Application
Terminal
Communications
Acc
es
s C
on
tro
l /
Tra
nsa
cti
on
al
Se
cu
rity
Application Server
EnterpriseJavaBeansComponent
Cobol
DBMS
JAVA Client
UNIX
WindowsNT
7 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
BeanTransactions (Connectivity)
ApplicationServer
FSC / BS2000
IBM / MVS
other e.g..Unisys over OSI-TP
8 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
openUTM-Applicationserver
Transaction Synchronisation / Commmunication
Acc
ess
Co
ntr
ol EJBComponentEJB
ComponentEJBComponentEJB
Component
EJB Container
BeanTransactions : Connectivty Application Server
Connectors LU6 & OSI-TPsynchronous andasynchronous Messaging
CICS / IMS
OLTPService
openUTM
OLTPService
OSI-TP System
OLTPServiceTransactions
9 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
// Business Methodspublic class openUTMBean implements SessionBean{ private openUTMConnectivity utm; private openUTMConnectivitySource utmserver;
// EJB Methods public void ejbCreate() { naming = new InitialContext(); utmserver = naming.lookup("java:comp/env/legacy/MyUtmConnect"); utm = utmserver.getConnection(); }
// Business Methods public String callUTM( String input ) { return utm.call(input); } }
“Builtin Connector” Bean
10 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
// Business Methodspublic class openUtmJcaBean implements SessionBean{ private ConnectionFactory cf; // EJB Methods public void ejbCreate() { ic = new InitialContext(); cf = (ConnectionFactory)ic.lookup("java:comp/env/eis/myUtmConnect"); UtmJConnectJUpicInterface utm = (UtmJConnectJUpicInterface)cf.getConnection(); }
// Business Methods public String callUTM( String input ) { return utm.call(input); } }
JCA Connector Bean
11 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
smsg = "4711 100.00 " //12345678901234567890send(smsg);rmsg = rcv();...balance = rmsg.substr(10,10);
Java / Cobol Program-Program Communication
01 MGET-MSG. 03 ACCOUNT-NR PIC 9(10). 03 AMOUNT PIC 9(10).
01 MPUT-MSG. 03 BOOKING-CODE PIC X(10). 03 BALANCE PIC 9(10)
Counting of byte positions Error proneDifficult manual change management
12 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
01 MGET-MSG. 03 ACCOUNT-NR PIC 9(10). 03 AMOUNT PIC 9(10).
01 MPUT-MSG. 03 BOOKING-CODE PIC X(10). 03 BALANCE PIC 9(10)
Mget.Msg.setAccountNr(12345678);MgetMsg.setAmount(100.00);...send(MgetMsg);MputMsg = rcv();...MputMsg.getBalance();MputMsg.getBookingCode();
Java / Cobol Program-Program Communication
Access via names Same name = same informationTool supported change management (compiler)
13 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Mapping of Messagestructures
COBOLCopy
XMLDescr.
JavaClass
JavaSource
JavaCompiler
XSLT Script
Cobol / XMLCompiler
14 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
HTTP
+XML
J2EE Access & Webservices
JMS
EJBContainer
EJB
EJBClient
Client
Client
Client
Client
WebContainer :
HTML/XMLSOAP
Servlets+
JSPs
RMI / IIO
P
RMI / IIOP
Client
15 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
XML Access & Web Services
Platform independent data exchangeXML (eXtensible Markup Language)
Open standard No compiled data records / loosely
coupled contracts Standard JAVA interfaces available C and COBOL interface in openUTM
16 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Standard Web Services
Ubiquity. Web services communicate using HTTP and XML. Therefore, any device which supports these technologies can both host and access Web services.
Interoperability. Any Web service can interact with any other Web service. SOAP is the assumed protocol standard.
Low barrier to Entry. The concepts behind Web services are easy to understand and free toolkits from vendors like IBM and Microsoft allow developers to quickly create and deploy Web services. In addition, some of these toolkits allow pre-existing COM components and EJBs to be easily exposed as Web services.
Industry Support. All of the major vendors are supporting SOAP and the surrounding Web services technology. The Microsoft .NET and the Sun ONE platforms are based on Web services.
17 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Standard Web Services Challenges
Naming & Discovery ?WSDL (Web Services Definition Language) and UDDI (Universal Description, Discovery and Integration) are two new standards that promise to address this issue.
Security ? Transactions & State Management ?Reliability & Scalability ? Manageability ? Testing ?
18 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Standard Web Services (WSDL)
<?xml version="1.0"?>
<definitions name="HostConnect">
<message name="HostConnectInput">
<part name="TAC" element="xsd:string"/>
<part name="Input" element="xsd:string"/>
</message>
<message name="HostConnectOutput">
<part name="Output" type="xsd:string"/>
</message>
....
19 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Web Services Architecture
Publish
(UD
DI)
WSDL
ServiceProvide
r WebService
ServiceRequest
er
Find
(UDDI)
WSDL ServiceRegistry
Call(SOAP)
WebServiceDescriptions
20 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
EJBs as Web Services
Make EJBs accessible as Web Service– Generate a WSDL Service Definition for a EJB
(.wsdl file)– Generate a Deployment Descriptor for
Apache AXIS (.wsdd file)Apache AXIS Server
– Serves the HTTP SOAP requests– Is the EJB client for BeanTransactions
21 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Apache Axis SOAP Server
BeanTA EJBJar archive
Script
Apache-AxisDeployment descriptor
.wsdd file
Web Servicedescription
.wsdlfile
22 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Web Server
SOAP Servlet
Java Client
JVM
Web Server
SOAP Client
WebBrowser
Direct Access of Host Services
distributedtransaction processing
LU6.x, OSI/TP
OLTP Server
ServiceProgram
openUTM
local DBMS
XA
Applicationerver
HTTP / SOAPconnection
OLTPconnection
UPIC
23 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Web Server
SOAP Servlet
EJBclient
JVM
Web Server
SOAP Client
WebBrowser
Indirect Access of Host Services (Applicationserver)
distributedtransaction processing
LU6.x, OSI/TP
OLTP Server
ServiceProgram
openUTM
local DBMS
XA
Applicationerver
Application Server
EJB
OLTPclasses
JVM
App. Server
local DBMS
XA
RMI / IIOPconnection
HTTP / SOAPconnection
OLTPconnection(LU6 / OSI-TP)
24 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
CustomerSolutions
25 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
citizen / tax advisor /citizen / tax advisor /companycompany
income taxincome taxsales taxsales taxtrade taxtrade tax......
Tax officeTax office
Tax return
Internet
Tax declaration
26 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Heterogeneous host systems in 16 countries (BS2000, MVS)
Companies /Authorities
Central data accessvalidation formattingauthentication at trust centercreation of printoutsdistribution to the countries
tax processing
Countries
WISOWISOeSteuer 2000eSteuer 2000
En
cryp
tio
nXML/https
XML/https
XML/https
ELSTER Architecture
27 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Kraftfahrtbundesamt / Flensburg Technical approval for vehicles
Control of inspection authorities and manufacturers
Central database of all:vehicles and vehicle owners drivers licensescentral registration of traffic offenders
Access for other authorities:Police of the countriesBKA (federal police)
28 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
BS2000/OSD
overTCP/IP
UPIC
Web-Server
Servlets
BeanTransactionsJConnect
Admission offices
Police
XML / HTTP
HTML/HTTP
XML / HTTP
KBA Architecture
29 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
BfA / Berlin Rehabilitation
Rente und Altervorsorge
Grundsicherung
ReHa Kliniken
30 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Booking
BfABS2000 / openUTM
ReHa (Host) Application
Ver
sch
lüss
elu
ngXML/https
XML/https
XML/https
BfA - Architecture
externeLeistungsträger
31 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
Externalplatform
EISplatform
J2EEplatform
Web Service to Host Scenario
Web Server
Host Systems
ApplicationServer
DB Server
external Server,ERP Systems
Web Services
OLTP Services
32 © Fujitsu Siemens Computers 2003All rights reserved
Anton Vorsamer / July 2003
State of the Art OLTP-TechnologyState of the Art OLTP-TechnologyState of the Art OLTP-TechnologyState of the Art OLTP-Technology