Software Group Modern Application Architectures for COBOL Developers
Software Group Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title email address © 2006 IBM Corporation
Software Group Web Services Enablement Styles WSDL Top down Web service requester CICS as provider CICS as requester Web service provider Bottom up Language structure(s) 2 © 2006 IBM Corporation
Software Group Where a wrapper program fits in Conversion Pipeline 3 (SOAP ↔ COMMAREA) Wrapper Program Business Logic © 2006 IBM Corporation
Software Group CICS as a service provider CICS TS V 3. 1 TCPIPSERVICE SOAP message Service Requester CSOL CWXN CPIH Pipeline URIMAP matching HFS pipeline config WSDL URIMAP handlers dynamic install WSBind handlers PIPELINE dynamic install CICS provided utility handlers WEBSERVICE data mapping Business Logic Language structure 4 © 2006 IBM Corporation
Software Group 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 5 © 2006 IBM Corporation
Software Group CICS usage of the WSBind file § CICS as a service provider CICS Web services Service Requester pipeline SOAP body WEBSERVICE resource HLL data structure Data mapping WSDL business logic WSBind file CICS § CICS as a service requester CICS Web services business logic HLL data structure Data mapping WSDL CICS 6 WSBind file SOAP body pipeline Service Provider WEBSERVICE resource © 2006 IBM Corporation
Software Group The Business Tier Client Tier Enterprise Information Systems Tier Middle Tier EJB Container (EJBs) Web Client (HTML, Java. Script) Web Container (Servlets, JSPs, JSF WAS, Java) J 2 EE Services (JNDI, JMS, Java. Mail) 7 Core Applications and Services (CICS IMS) Web Services JCA MQ Etc. Relational Databases Enterprise Resource Planning Systems © 2006 IBM Corporation
Software Group CICS as a Web service requester CICS TS V 3. 1 Client Application Pipeline Service Requester HTTP Handler chain Service Provider Transport Web. Sphere MQ Server Application HTTP or Web. Sphere MQ SOAP body XML Language structure 0101001 Data Mapping Dynamic install HFS CSD Pipeline config 8 WSDL PIPELINE WSBind WEBSERVICE 1. Develop • Use existing WSDL • Language structure • CICS Client Application 2. Generate 3. Configure • Language structure • Pipeline • WSBIND üPipeline configuration • WEBSERVICE © 2006 IBM Corporation
Software Group CICS API’s § Invoking a Web Service from a CICS application program – CICS as a service requester • EXEC CICS INVOKE WEBSERVICE ( ) CHANNEL ( ) URI ( ) OPERATION ( ) 4 WEBSERVICE: name of the Web Service to be invoked 4 CHANNEL: name of the channel containing data to be passed to the Web Service (DFHWS-DATA container) 4 URI: Universal Resource Identifier of the Web Service (optional) 4 OPERATION: name of the operation to be invoked 9 © 2006 IBM Corporation
Software Group Resources (1 of 4) § Application Development for CICS Web Services, SG 24 -7126 -00 (http: //www. redbooks. ibm. com/abstracts/sg 247126. html? Open ) § Implementing CICS web services (redbook) SG 24 -7206 ( http: //www. redbooks. ibm. com/abstracts/sg 247206. html? Open ) § CICS Info Center – http: //publib. boulder. ibm. com/infocenter/cicsts 31/index. jsp – About the Info Center for CICS (http: //www-1. ibm. com/support/docview. wss? rs=1083&context=SSGMGV&context=SSZPSF&context=SSZMG 3&dc=D 600&uid=swg 21200934&loc=en_US&cs=UTF-8&lang=en) § Web Services Guide – A new book in the CICS Infocenter for CICS TS V 3. 1 § CICS TS 3. 1 Release Guide, SC 34 -6421 § CICS TS 3. 1 Migration Guide(s) § CICS TS 3. 1 URLs – “Home Page” (http: //www. ibm. com/software/htp/cics/tserver/v 31/ ) – Library (http: //www. ibm. com/software/htp/cics/library/cicstsforzos 31. html ) 10 © 2006 IBM Corporation
Software Group Resources (2 of 4) § Web Services Architecture (@ W 3 C) – http: //www. w 3. org/TR/ws-arch/ § Web Services Zone (@ IBM developer. Works) – http: //www. ibm. com/developerworks/webservices/ § Websphere V 5 Web Services Handbook – Redbook: SG 24 -6891 § Web Services for the Enterprise: Providing a Web Services Interface To a CICS Application – Whitepaper: G 325 -1111 -2 § CICS Info Center 11 © 2006 IBM Corporation
Software Group Resource (3 of 4) § SOAP 1. 1 Specification – http: //www. w 3. org/TR/SOAP/ § Apache SOAP 4 J: xml. apache. org – SOAP 4 J version 2. 2, stable, ready for use – AXIS (First release available) § W 3 standardization: w 3. org/2000/xp – SOAP 1. 2 specification – XML Protocol working group requirements and charter § SOAP - Web. Services 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 12 © 2006 IBM Corporation
Software Group Resources (4 of 4) § WSDL 1. 1 Specification – http: //w 3. org/TR/wsdl § WSDL 4 J – http: //oss. software. ibm. com/developerworks/projects/wsdl 4 j § WSDL Toolkit (part of WSTK) – http: //ibm. com/alphaworks (look under xml on left) § Web. Sphere Developer for z. Series – http: //ibm. com/software/awdtools/devzseries § WSDK (Web. Sphere SDK for Web Services): – http: //ibm. com/developerworks/webservices/wsdk/ § Articles and tutorials: – http: //ibm. com/developerworks/webservices 13 © 2006 IBM Corporation
- Slides: 13