Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers -...

13
Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address

Transcript of Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers -...

Page 1: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation

Modern Application Architectures for COBOL Developers - Continuing the drilldown

Presenter’s nameTitleemail address

Page 2: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 2

Web Services Enablement Styles

Bottomup

Language structure(s)

Topdown

WSDL

CICS as provider

Web serviceprovider

Web servicerequester

CICS as requester

CICS

Page 3: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 3

Where a wrapper program fits in

Pipeline

Conversion

(SOAP ↔COMMAREA)

BusinessLogic

WrapperProgram

Page 4: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 4

CICS as a service provider

HFS

WSDL

WSBind

CICS providedutility

WEBSERVICE

pipelineconfig

URIMAP

CICS TS V3.1TCPIPSERVICE

CPIHCWXNService

Requester

URIMAPmatching

CSOL

Pipeline

handlers

handlers

handlers

SOAP message

data mapping

Business

Logic

Languagestructure

dynamicinstall

dynamicinstall

PIPELINE

Page 5: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 5

Defining the CICS Web Services Resources Define a TCPIPSERVICE (or WMQ) and a PIPELINE

Then install the PIPELINE definition and issue CEMT PERFORM PIPELINE SCAN

CICS uses the PIPELINE definition to – Locate the WSBind file

– From the WSBind file, CICS will dynamically create a WEBSERVICE resource

– CICS will also dynamically create a URIMAP definition

Can define everything individually if preferred

Page 6: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 6

CICS as a service provider

CICS as a service requester

CICS usage of the WSBind file

business

logicpipeline

Service

Requester

CICS

Data mapping

WSDL

CICS Web services

business

logic pipelineService

Provider

CICS

Data mapping

WSDL

CICS Web services

HLL data structureSOAP body

SOAP bodyHLL data structure

WSBindfile

WEBSERVICEresource

WEBSERVICEresource

WSBindfile

Page 7: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 7

EnterpriseInformationSystemsTier

The Business Tier

RelationalDatabases

Middle TierClient Tier

EnterpriseResourcePlanningSystems

CoreCoreApplications and Applications and

ServicesServices(CICS(CICSIMS)IMS)

CoreCoreApplications and Applications and

ServicesServices(CICS(CICSIMS)IMS)

EJBContainer

(EJBs)

WebContainer(Servlets,

JSPs,JSF

WAS,Java)

J2EEServices

(JNDI, JMS,JavaMail)

WebClient

(HTML, JavaScript)

Web Services

JCA

MQ

Etc.

Page 8: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 8

CICS as a Web service requester

ServiceProvider

ServiceRequester

Pipeline

Client Application

TransportServer Application

CICS TS V3.1

Languagestructure0101001

HFS

WSDL

WSBind

Pipelineconfig

CSD

PIPELINE

WEBSERVICE

3. Configure • PipelinePipeline configuration

• WEBSERVICE

2. Generate• Language structure• WSBIND

1. Develop• Use existing WSDL• Language structure• CICS Client Application

Dynamic install

HTTP

WebSphere MQ

SOAP body

XML

HTTP orWebSphere MQ

Handler chain

Data Mapping

Page 9: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 9

CICS API’s Invoking a Web Service from a CICS application

program

– CICS as a service requester

• EXEC CICS INVOKE WEBSERVICE ( ) CHANNEL ( ) URI ( ) OPERATION ( ) WEBSERVICE: name of the Web Service to be

invoked CHANNEL: name of the channel containing data to

be passed to the Web Service (DFHWS-DATA container)

URI: Universal Resource Identifier of the Web Service (optional)

OPERATION: name of the operation to be invoked

Page 10: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 10

Resources (1 of 4)

Application Development for CICS Web Services, SG24-7126-00(http://www.redbooks.ibm.com/abstracts/sg247126.html?Open )

Implementing CICS web services (redbook) SG24-7206 ( http://www.redbooks.ibm.com/abstracts/sg247206.html?Open )

CICS Info Center

– http://publib.boulder.ibm.com/infocenter/cicsts31/index.jsp – About the Info Center for CICS

(http://www-1.ibm.com/support/docview.wss?rs=1083&context=SSGMGV&context=SSZPSF&context=SSZMG3&dc=D600&uid=swg21200934&loc=en_US&cs=UTF-8&lang=en )

Web Services Guide – A new book in the CICS Infocenter for CICS TS V3.1

CICS TS 3.1 Release Guide, SC34-6421

CICS TS 3.1 Migration Guide(s)

CICS TS 3.1 URLs

– “Home Page” (http://www.ibm.com/software/htp/cics/tserver/v31/ )

– Library (http://www.ibm.com/software/htp/cics/library/cicstsforzos31.html )

Page 11: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 11

Resources (2 of 4)

Web Services Architecture (@ W3C)

– http://www.w3.org/TR/ws-arch/

Web Services Zone (@ IBM developerWorks)

– http://www.ibm.com/developerworks/webservices/

Websphere V5 Web Services Handbook

– Redbook: SG24-6891

Web Services for the Enterprise: Providing a Web Services Interface To a CICS Application

– Whitepaper: G325-1111-2

CICS Info Center

Page 12: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 12

Resource (3 of 4)

SOAP 1.1 Specification

– http://www.w3.org/TR/SOAP/

Apache SOAP4J: xml.apache.org

– SOAP4J version 2.2, stable, ready for use

– AXIS (First release available)

W3 standardization: w3.org/2000/xp

– SOAP 1.2 specification

– XML Protocol working group requirements and charter

SOAP - WebServices Resource Center

– http://www.soap-wrc.com/webservices/default.asp

– MANY resources - e.g., link to SOAP::Lite for Perl

Xmethods lists publicly-accessible web services

– http://www.xmethods.net

Page 13: Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address.

Software Group

© 2006 IBM Corporation 13

Resources (4 of 4) WSDL 1.1 Specification

– http://w3.org/TR/wsdl

WSDL4J

– http://oss.software.ibm.com/developerworks/projects/wsdl4j

WSDL Toolkit (part of WSTK)

– http://ibm.com/alphaworks (look under xml on left)

WebSphere Developer for zSeries

– http://ibm.com/software/awdtools/devzseries

WSDK (WebSphere SDK for Web Services):

– http://ibm.com/developerworks/webservices/wsdk/

Articles and tutorials:

– http://ibm.com/developerworks/webservices