Vous êtes sur la page 1sur 43

Gary Mazo

Sr. Software Engineer


mazo@us.ibm.com

IBM Software and


Systems Engineering,
Rational

GSE Nordic
May, 2012
Oslo, Norway

S501 Get power from DataPower: Practical approach

Software and Systems Engineering | Rational

Topics

Introduction to DataPower and Tools


Architecture and structure of the sample
Demo
Summary and Questions

2012 IBM Corporation

Software and Systems Engineering | Rational

What will we learn

1. How DataPower ESB appliances fits in an end-to-end multi-tier (composite) application

2. How to use WebSphere Transformation Extender Studio to create DataPower artifacts


3. How to use Rational tools to create integration components
4. How to configure DataPower XML firewall to transform between XML and COBOL
5. How to test DataPower using cURL and Apache HttpComponents API

6. Major functional characteristics of MTOM/XOP protocol in CICS and DataPower


7. How to use Rational Developer for system z to manage COBOL and CICS development

2012 IBM Corporation

Software and Systems Engineering | Rational

Topics

Introduction to DataPower and Tools


Architecture and structure of the sample
Demo
Summary and Questions

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower marketing slide. 3 things.

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower introduction

Consumable
Appliance form-factors
Comprehensive SOA functionality: 80/80 rule
XML-centric programming model
Performance Wire Speed
Leverages compilation technology
Accelerated via hardware (XG4)
Mitigates XML/security performance penalties

2012 IBM Corporation

Software and Systems Engineering | Rational

IBM SOA Appliance Deployment Summary


Web Tier
XML
HTML
WML

XML
XSL

Application Server Web Server

Internet

Security

Tivoli
Access
Manager
-----------Federated
Tivoli
AccessManager
Manager
Identity
Tivoli
Tivoli Access
Access Manager
Manager

Tivoli NetView

Tivoli
Tivoli NetView
NetView

Internet

Client
or
Server

WebSphere
WebSphere
WebSphereApp
App
AppServer
Server
Server

IP Firewall

Application
Server
DataPower
DataPower XS40
XS40
DataPower XS40

Integration & Management Tiers


Nortel
Nortel L7
L7 Module
Module

DataPower
DataPower XS40
XS40

Nortel L7 Module

DataPower XS40

HTTP XML REQ

Enterprise
REQ
Enterprise
RESP

MQ
MQ Server
Server

MQ Server

HTTP XML RESPONSE

ITCAM for
SOA

Web
Web service
service
client
client
Web service
Tivoli NetView

client

Web Services
Client

Tivoli Access Manager

WebSphere App Server

2012 IBM Corporation

Software and Systems Engineering | Rational

Note on the XI5* model line

Models: XI50, XI50B, XI50z, XI52


The same features when running the same firmware versions
The only differences are all hardware based, except XI50z
XI50z
zBX h/w management (HMC/SE Hardware Management Console)
still has the same runtime functionality as all other models at any given
firmware version

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower integration with zEnterprise (XI50z)


IBM WebSphere DataPower XI50z

DataPower provides additional functionality and


improves System z resources utilization

Physical integration increases collaborative


synergy across DataPower and z platforms
Integrates across subsystem, networking,
security, management, and tools

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: Runtime

Application
Server
Web Server

Web Client

10

DataPower

CICS
WS
Client
SOAP

SOAP with
MTOM

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower processing phases

Threat protection

Service Parameters

Processing Policy
Processing rules

SSL Proxy

FSH
Actions
SSL Proxy
Service Parameters

Clients

Servers
CICS WS

XML Manager(s)

11

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower service object hierarchy


DataPower
Service

Threat protection
and protocol
parameters

Front side
handler

SSL proxy

Supporting
protocol objects

Crypto profile

Key/cert objects

Key/cert files

Legend :

Backend server
address

Processing
policy

XML
Manager

Processing
rules

AAA policy

Processing
actions

Match rule

XSL/XML/DPA
files

Object
Service
parameter
Files

12

Chart adapted from IBM WebSphere DataPower SOA Appliance Handbook, Bill Hines et al. IBM Press. 2008.

2012 IBM Corporation

Software and Systems Engineering | Rational

Types of DataPower services

13

2012 IBM Corporation

Software and Systems Engineering | Rational

Testing DataPower with cURL and Apache HttpComponents API


cURL http://curl.haxx.se/ invocation on Windows

Apache HttpComponents client API http://hc.apache.org/

14

2012 IBM Corporation

Software and Systems Engineering | Rational

WebSphere Transformation Extender (WTX) Design Studio


Importing COBOL and PL/I
Creating:
WTX type trees
WTX maps

Deploying and testing

15

2012 IBM Corporation

Software and Systems Engineering | Rational

Rational Developer for System z with Java (RDz)


Working with COBOL and PL/I source

Working with z/OS datasets and jobs


Debugging z/OS applications
Creating:
Web services for CICS/COBOL/PLI
Web services for IMS/COBOL/PLI

Deploying and testing

16

2012 IBM Corporation

Software and Systems Engineering | Rational

IBM Integration Designer (IID)


Creating:
Interfaces
XML maps/XSLT/XPath
DataPower libraries

Deploying and testing

17

2012 IBM Corporation

Software and Systems Engineering | Rational

Topics

Introduction to DataPower and Tools


Architecture and structure of the sample
Demo
Summary and Questions

18

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application architecture: Tools and runtime


cobolFromDataPower/
cobolFromCICS

Web Client

Application
Server
Web Server

SOAP with
MTOM

CICS
WS

DataPower
Client
SOAP
payload

xmlToDataPower/
cobolFromDataPower
cobolFromCICS/
xmlFromDataPower

Executable maps
(DPA mode)

AJAX, Client WSDL


JAX-WS servlets

Client
WSDL

Mediation
WSDL

Program Template
and WSBind

WTX Design Studio

19

2012 IBM Corporation

Software and Systems Engineering | Rational

Development and test steps outline


1. Create and test the CICS program (STOCK1)

RDz Enterprise service tools project Stock1WebServiceScaffold

2. Create and test the Client Graphic interface ( HTML, etc.)

RDz for Java J2EE project DojoJ2EE

3. Create MTOM service from the CICS program

RDz Enterprise service tools project MtomCicsService

4. Create XML equivalent of the STOCK1 COBOL interface

RDz Enterprise service tools project MiddleTier2CicsService

5. Create and test DataPower maps from XML and COBOL

WTX Design studio projects COBOL2XMLDemo and XML2COBOLDemo

6. Configure DataPower XML Firewall, Polices and Rules

Using DataPower Web GUI

7. Create and test Web app code to invoke DataPower transformations

Using RDz for Java J2EE perspective project DojoJ2EE

8. Configure CICS to run STOCK1 as Web service in MTOM mode

Using RDz Enterprise service tools perspective projects and CICS Explorer

9. Create and test Web app code to call CICS

Using RDz for Java J2EE perspective project DojoJ2EE

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: Front End

21

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: CICS MTOM/XOP service

22

2012 IBM Corporation

Software and Systems Engineering | Rational

Base64 encoding, MTOM, XOP Binary transfer fundamentals


Base64-binary encoding of XML content (xsd:base64Binary type)
May not be very efficient Base64 adds about 33% to the size of content (example: XYZ = WFLa)

SOAP Message Transmission Optimization Mechanism (MTOM) and XML Optimized


Packaging (XOP)

23

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: CICS services explained

cobolFromDataPower/
cobolFromCICS

Web
Client

Application
Server
Web Server

DataPower
Client
SOAP
payload

24

SOAP
with
MTOM

CICS
WS

xmlToDataPower/
cobolFromDataPower

cobolFromCICS/
xmlFromDataPower

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: WTX Design studio


WTX Design Studio

26

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: WTX Design studio explained


WTX Design Studio

DPA are DataPower exectutable maps

cobolFromDataPower/
cobolFromCICS

Web
Client

Application
Server
Web Server

DataPower
Client
SOAP
payload

27

SOAP
with
MTOM

CICS
WS

xmlToDataPower/
cobolFromDataPower

cobolFromCICS/
xmlFromDataPower

2012 IBM Corporation

Software and Systems Engineering | Rational

WTX Design Studio: Tips for DataPower development


1. Set character encoding and binary data layout when importing COBOL or PL/I data declarations as
WTX type trees:
WTX Design Studio

2. Make sure default Map runtime mode is set to WTX (!), not DataPower for development. Creating an executable WTX
map is a pre-requisite for building a DataPower map. Once you build and test WTX map, you can build and test
DataPower map:

3. Input and Output files in Map settings ARE required even though they are not used on DataPower

4. All fields in a map must be mapped to something even if the content is mapped as NONE. WTX map builder will
complain if this is not done. For example,

5. On Input and Output card attributes, set document verification to Xerces Well Formed:

6. WTX Design Studio version 8.4.0.1 has not yet synched up with DataPower and does not have DataPower support
enabled yet, but will add it in the near future. Use version 8.3.0.4 until the 8.4.0.1 is synced up.
28

2012 IBM Corporation

Software and Systems Engineering | Rational

Configuring a DataPower Service

29

2012 IBM Corporation

Software and Systems Engineering | Rational

DataPower XML Firewall (XMLFW) Configuration sample

30

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: Middle tier

31

2012 IBM Corporation

Software and Systems Engineering | Rational

Sample Application structure: Middle tier explained

cobolFromDataPower/
cobolFromCICS

Web
Client

Application
Server
Web Server

DataPower
Client
SOAP
payload

32

SOAP
with
MTOM

CICS
WS

xmlToDataPower/
cobolFromDataPower

cobolFromCICS/
xmlFromDataPower

2012 IBM Corporation

Software and Systems Engineering | Rational

www.ibm/software/rational

34

2012 IBM Corporation

Software and Systems Engineering | Rational

Topics

Introduction to DataPower and Tools


Architecture and structure of the sample
Demo
Summary and Questions

35

2012 IBM Corporation

Software and Systems Engineering | Rational

What have we learned

1. How DataPower ESB appliances fits in an end-to-end multi-tier (composite) application

2. How to use WTX Design Studio to create DataPower artifacts


3. How to use Rational tools to create integration components
4. How to configure DataPower XML firewall to transform between XML and COBOL
5. How to test DataPower using curl and Apache HttpComponents API

6. Main functional characteristics of MTOM/XOP protocol in CICS and DataPower


7. How to use Rational Developer for system z to manage COBOL and CICS development

36

2012 IBM Corporation

Software and Systems Engineering | Rational

Please dont forget to


submit your session and
speaker feedback!

Session S501

37

2012 IBM Corporation

Software and Systems Engineering | Rational

References
DataPower hardware and general information
DataPower product page: http://www-01.ibm.com/software/integration/datapower/xi50/
DataPower 2012 Strategic Overview http://ibm.co/J5py4w
Architectural Design Patterns Redbook http://www.redbooks.ibm.com/redbooks/pdfs/sg247620.pdf
Redbook: Integrating Banking services with XI50 http://ibm.co/zWEJfP
Implement a REST facade with JSON using DataPower http://ibm.co/w0Vz0A
Processing attachments in DataPower http://ibm.co/DataPowerAttachmentsProcessing
DataPower and MTOM/XOP Validation http://ibm.co/DataPowerMTOMXOPValidation
IBM WebSphere DataPower SOA Appliance Handbook, Bill Hines et al. 2008 IBM Press.
zEnterprise and Runtimes
Redbook: IBM zEnterprise 196 Configuration Setup http://www.redbooks.ibm.com/abstracts/sg247834.html?Open
CICS TS 4.2 InfoCenter: MTOM support http://ibm.co/ztlOOA
Apache HttpComponents http://hc.apache.org/
MTOM Explained http://ibm.co/WASXMtom
Enable MTOM in Websphere Application Server http://ibm.co/EnableMTOMWAS80
JSON-RPC runtime http://code.google.com/p/jabsorb/
Client/Server development
Build enterprise SOA Ajax clients with the Dojo toolkit and JSON-RPC http://ibm.co/AAqDYW
Tools
cURL http://curl.haxx.se/
WTX product page http://www-01.ibm.com/software/integration/wdatastagetx/
RDz product page http://www-01.ibm.com/software/rational/products/developer/systemz/
RDz support for CICS MTOM Part 1: http://ibm.co/Az4yY2
RDz support for CICS MTOM Part 2: http://ibm.co/zW1o6A
IID product page http://www-01.ibm.com/software/integration/integration-designer/
38

2012 IBM Corporation

Software and Systems Engineering | Rational

www.ibm/software/rational

39

2012 IBM Corporation

Software and Systems Engineering | Rational

www.ibm/software/rational
Copyright IBM Corporation 2012. All rights reserved. The information contained in these materials is provided for informational purposes only, and is provided AS IS without warranty of any kind,
express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, these materials. Nothing contained in these materials is intended to, nor shall have
the effect of, creating any warranties or representations from IBM or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM
software. References in these materials to IBM products, programs, or services do not imply that they will be available in all countries in which IBM operates. Product release dates and/or capabilities
referenced in these materials may change at any time at IBMs sole discretion based on market opportunities or other factors, and are not intended to be a commitment to future product or feature
availability in any way. IBM, the IBM logo, Rational, the Rational logo, Telelogic, the Telelogic logo, and other IBM products and services are trademarks of the International Business Machines
Corporation, in the United States, other countries or both. Other company, product, or service names may be trademarks or service marks of others.

40

2012 IBM Corporation

Software and Systems Engineering | Rational

Backup

41

2012 IBM Corporation

Software and Systems Engineering | Rational

Configuring DataPower XML Firewall

42

2012 IBM Corporation

Software and Systems Engineering | Rational

Configuring DataPower XML Firewall Policy

43

2012 IBM Corporation

Software and Systems Engineering | Rational

Configuring DataPower transformation action

44

2012 IBM Corporation

Software and Systems Engineering | Rational

Configuring the CICS MTOM pipeline

45

2012 IBM Corporation

Vous aimerez peut-être aussi