CICS and Web Services: Problems and Pitfalls

Similar documents
Understanding Urimaps, Pipelines and Webservices for CICS

Options for integrating new applications with current applications that run on a mainframe

IBM Proof of Technology Discovering business application services, featuring IBM WebSphere Application Server Network Deployment V8

Introduction to WebSphere Process Server and WebSphere Enterprise Service Bus

CICS Web Service Security. Anthony Papageorgiou IBM CICS Development March 13, 2012 Session: 10282

Acknowledgments. p. 55

1. Tutorial Overview

Avoiding Web Services Chaos with WebSphere Service Registry and Repository

IBM Tivoli Composite Application Manager for WebSphere

IBM Rational Web Developer for WebSphere Software Version 6.0

CONTINUOUS INTEGRATION TESTING

A standards-based approach to application integration

SCA-based Enterprise Service Bus WebSphere ESB

So You Want an SOA: Best Practices for Migrating to SOA in the Enterprise. Eric Newcomer, CTO

Getting started with API testing

File Manager base component

Take full advantage of IBM s IDEs for end- to- end mobile development

Redbook Overview Patterns: SOA Design with WebSphere Message Broker and WebSphere ESB

Exam Name: IBM WebSphere Process Server V6.2,

Practical Web Services for RPG IBM Integrated Web services for i

Architectural Overview

JVA-561. Developing SOAP Web Services in Java

WEB SERVICES. Revised 9/29/2015

GETTING STARTED GUIDE

Increasing IT flexibility with IBM WebSphere ESB software.

ITS. Java WebService. ITS Data-Solutions Pvt Ltd BENEFITS OF ATTENDANCE:

IBM Tivoli Web Response Monitor

WebSphere Training Outline

Troubleshooting WebSphere Application Server Start/Stop Issues

Search Engine Optimization for a WebSphere Commerce System

SAP Central Process Scheduling (CPS) 8.0 by Redwood

CICS Modernization & Integration

Building Web Services with Apache Axis2

How To Use Ibm Tivoli Composite Application Manager For Response Time Tracking

New Ways of Running Batch Applications on z/os

System z Application Developers Hands-on-Labs COBOL and Web services development using RDz

Creating Web Services in NetBeans

Developing SOA solutions using IBM SOA Foundation

Version Overview. Business value

IBM Rational Asset Manager

ebay : How is it a hit

WebSphere ESB Best Practices

IBM Software Group. IBM WebSphere Process Integration Technical Overview

Ce document a été téléchargé depuis le site de Precilog. - Services de test SOA, - Intégration de solutions de test.

Java Web Services Training

Unicenter Workload Control Center r1 SP4. Server Status Troubleshooting Guide

Web services with WebSphere Studio: Deploy and publish

Web Services Development In a Java Environment

Introduction to Web Services

Developing Java Web Services

CA Repository for z/os r7.2

Running a Program on an AVD

CICS Mobile and JSON

IBM Rational Rapid Developer Components & Web Services

Course Description. Course Audience. Course Outline. Course Page - Page 1 of 5

Service Oriented Legacy Architecture (SOLA)

Oracle Application Server 10g Web Services Frequently Asked Questions Oct, 2006

Introduction into Web Services (WS)

Emerging Technologies Shaping the Future of Data Warehouses & Business Intelligence

The Enterprise Service Bus

Choose an IBM WebSphere Application Server configuration to suit your business needs

Migration guide for IBM WebSphere Message Broker on HP-UX

How To Create A C++ Web Service

Universal Event Monitor for SOA Reference Guide

SOA Fundamentals For Java Developers. Alexander Ulanov, System Architect Odessa, 30 September 2008

Deploying a private database cloud on z Systems

How To Use Java On An Ipa (Jspa) With A Microsoft Powerbook (Jempa) With An Ipad And A Microos 2.5 (Microos)

SW5706 Application deployment problems

David Pilling Director of Applications and Development

Unit Testing with zunit

WebSphere Developer for System z

WebSphere Business Monitor

IT Analytics and Big Data - Making Your Life Easier

System Planning, Deployment, and Best Practices Guide

zenterprise The Ideal Platform For Smarter Computing Developing Hybrid Applications For zenterprise

KonyOne Server Prerequisites _ MS SQL Server

Author: Gennaro Frazzingaro Universidad Rey Juan Carlos campus de Mostòles (Madrid) GIA Grupo de Inteligencia Artificial

IBM CICS Transaction Gateway for Multiplatforms, Version 7.0

Evolution of IMS to a complete Enterprise solution

IBM WebSphere Enterprise Service Bus, Version 6.0.1

Simplifying Processes Interoperability with a Service Oriented Architecture

The presentation explains how to create and access the web services using the user interface. WebServices.ppt. Page 1 of 14

Oracle Service Bus. User Guide 10g Release 3 Maintenance Pack 1 (10.3.1) June 2009

DEPLOYMENT ARCHITECTURE FOR JAVA ENVIRONMENTS

McAfee Web Gateway Administration Intel Security Education Services Administration Course Training

CA CPT CICS Programmers Toolkit for TCP/IP r6.1

Service Oriented Architecture

IBM Tivoli Composite Application Manager for WebSphere

IBM WebSphere ESB V6.0.1 Technical Product Overview

What's New In the IBM Problem Determination Tools

Exploiting IT Log Analytics to Find and Fix Problems Before They Become Outages

Increasing IT flexibility with IBM WebSphere ESB software.

IBM WebSphere Message Broker Message Monitoring, Auditing, Record and Replay. Tim Kimber WebSphere Message Broker Development IBM Hursley Park, UK

Transcription:

IBM Software Group CICS and Web Services: Problems and Pitfalls Charlie Wiese, CICS L2 Support WebSphere Support Technical Exchange

Acknowledgements The following are trademarks of International Business Machines Corporation in the United States, other countries, or both: IBM, CICS, CICS TS, CICS Transaction Server, MQSeries, OS/390, S/390, WebSphere, z/os. Java, and all Java-based trademarks and logos, are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Other company, product, and service names and logos may be trademarks or service marks of others. WebSphere Support Technical Exchange 2

Agenda IBM Software Group Introduction to Web Services Industry perspective A Peak Under the Covers CICS implementation of Web services CICS Web Services Recommendations Learn from others who have already been there Common Problems A sample of typical errors Problem Investigation Tools and techniques Summary, and References For additional information WebSphere Support Technical Exchange 3

Introduction to Web services: What are Web services? Service-Oriented Architecture (SOA) Business processes are packaged as services SOA is a style for creating and using those services Forms the basis of Web services It s defined by standards and is equally accessible to individuals and small and large enterprises. It s the best solution we have today for application construction. Jim Rhyne, IBM Distinguished Engineer Web services Clients and Servers communicate using XML SOA and the mainframe software environment Follows the SOAP standard A software system designed to support interoperable Machine to Machine interaction over a network. World Wide Web Consortium (W3C) WebSphere Support Technical Exchange 4

Introduction to Web services: Industry Perspective More from Jim Rhyne: the value of being able to reinvent and reuse mainframe code worldwide for our customers is in the tens of trillions of dollars. Jim Rhyne, IBM Distinguished Engineer September, 2007 Numerous Gartner reports tout the benefits and popularity of Web services Web services shows steadily increasing and widespread adoption of these technologies but modest deployment July, 2007 There has been little adoption of Web services in healthcare. The results at Duke (University Health System) show great promise using this architectural style for application integration October, 2007 WebSphere Support Technical Exchange 5

Introduction to Web services: History of CICS and the Web CICS Web Interface (CWI) CICS Web Support added to JCICS classes Web services HTTP function Web security Web API commands are threadsafe SOAP for CICS (Optional Feature) Web services standards Large messages Intercommunication over TCP/IP HTTP and TCP/IP management and performance 2000 2001 CICS TS V2.1 2002 CICS TS V2.2 2003 CICS TS V2.3 2004 2005 CICS TS V3.1 2006 2007 CICS TS V3.2 2008 TS V2.1 TS V2.2 TS V2.3 TS V3.1 TS V3.2 WebSphere Support Technical Exchange 6

CICS Web services components: Web services assistant (WSA) LS WSDL DFHLS2WS DFHWS2LS WSDL WSBind LS LS Language Structure (copybook) WSDL Web Services Definition Language WSBind CICS artifact used to map LS WSDL WebSphere Support Technical Exchange 7

Creating the necessary CICS resources HFS Configfile PIPELINE WSBind CEDA INSTALL CEMT Perform PIPEline(pipename) SCAN URIMap WEBService WebSphere Support Technical Exchange 8

Overview: CICS as a Service Provider TCPIPSERVICE CICS TS V3.1 Service Requester SOAP message CSOL CWXN CPIH Pipeline URIMAP matching handlers HFS Config File URIMAP dynamic install handlers handlers CICS provided utility WSDL WSBind PIPELINE dynamic install WEBSERVICE data mapping Business Logic Language structure WebSphere Support Technical Exchange 9

Overview: CICS as a Service Requester User Transaction Business Logic data mapping CICS TS V3.1 WEBSERVICE HFS WSBind Language structure Pipeline dynamic install CICS provided utility handlers handlers PIPELINE WSDL Config File handlers Service Provider SOAP message WebSphere Support Technical Exchange 10

Recommendations: General Strategies Check your maintenance! Don t waste time trying to solve a problem that s already been solved Ensure sufficient dataset access HFS: WSBIND, Pipeline CONFIGFILE, WSDIR Consider case-sensitive parameters URIMap PATH parameter Consider using VALIDATION option specified dynamically with CEMT SET WEBSERVICE(ws-name) VALIDATION Can be defined in your WEBService resource definition WebSphere Support Technical Exchange 11

Recommendations: Read the appropriate documentation Be aware of published requirements and limitations Requirements: Code Page support PL/I support IBM SDK for z/os, Java 2 Technology V1.4.2 IBM XML Toolkit for z/os V1.7 Limitations: CICS complies with WS-I Basic Profile, adheres to all MUST-level requirements CICS does not specifically implement support for UDDI registries WSA and associated runtime are not fully compliant (limited support in mapping certain schema) Mappings between high level language data types, and Web services descriptions are not symmetrical (logically equivalent, but not identical) Transport protocols supported: HTTP, HTTPS, WebSphere MQ WebSphere Support Technical Exchange 12

Recommendations: Read the appropriate documentation (continued) Additional details in the InfoCenter, CICS compliance with Web services standards, and in the specific topics: COBOL and XML Schema mapping C/C++ and XML Schema mapping PL/I and XML Schema mapping Variable arrays of elements Consider CICS SOCKETCLOSE(NO) recommendation WebSphere Support Technical Exchange 13

Recommendations: Use the Sample! Install and play with the supplied sample walk before you run Catalog Manager application is simple, but provides a practical illustration of Web Services CICS provides an example of a catalog management application which can be enabled as a Web service provider Use the example if you want a rapid proof-ofconcept demonstration that you can deploy a Web service in CICS, or if you want a hands-on way to learn about Web services in CICS. CICS Information Center, Getting Started with Web services WebSphere Support Technical Exchange 14

Recommendations: Web Services Assistant (WSA) Use the latest MAPPING-LEVEL to ensure the most recent WSA support MAPPING-LEVEL APAR 1.0, 1.1 PK15904 1.2 PK23547 2.0 CICS/TS 3.2 base Unlike other CICS maintenance, WSA support enhancements are NOT automatically incorporated into WSAs Caution is advised, as this may result in unintended changes to the generated artifacts (WSBind, Copybook, and WSDL files) Refer to CICS InfoCenter, Mapping levels for the CICS Web services assistant for more details Verify you re using the correct input parameters For example, it s invalid to specify PGMNAME for a Web service requester Be aware of the case-sensitive parameters WebSphere Support Technical Exchange 15

Common Problems: Deployment Performance problems with the CICS WSA Check your LE configuration //STDENV DD * _CEE_RUNOPTS=STACK(49152,16384,ANY,KEEP,262144,16384) /* Additional details available in Technote #1249544 http://www.ibm.com/support/docview.wss?rs=1083&uid=swg21249544 WSDL or WSBind errors ( deployment errors ) Unusable WSDL Unsupported features Unable to install PIPELINE or WEBSERVICE resource Just because an INSTALL completed, doesn t mean it was successful! Use CEMT to inquire against the status of the appropriate resources Diagnosis: Messages in Logs, and Trace of the install with PI=1-2 WebSphere Support Technical Exchange 16

Common Problems: Runtime Access from a Browser (not appropriate for Web Services) Response time is longer than expected Can be caused by the TCP/IP DELAYACKS parameter Code NODELAYACKS on the TCPCONFIG statement DELAYACKS can still override this setting for specific PORT, PORTRANGE, BEGINROUTES, or GATEWAY statements Refer to Technote #1250026 for further details DFHPI0602The CICS SOAP handler failed to parse a message. The parse error code is error-code. The DFHPIEP return code is return-code. CICS SOAP handler program uses the PL/I XML parser to process the contents of the SOAP message; a parsing error generates this message Detailed explanation and diagnosis in Technote #1264885 WebSphere Support Technical Exchange 17

Common Problems: Runtime (part 2) Data Conversion errors After PK23547, one of the following messages are also issued: DFHPI1007, DFHPI1008, DFHPI1009, DFHPI1010 Possible causes: invalid SOAP message Out-of-range value Detailed diagnosis assistance in Technote #1211424 WebSphere Support Technical Exchange 18

Common Problems: CICS and HFS Insufficient HFS dataset access Example showing an error accessing the Pickup shelf in a PIPELINE resource definition: DFHPI0705 E 13/01/2006 23:10:54 DBDCCICS CICSUSER PIPELINE EXPIPE02 encountered an error writing the configuration to the derived shelf /var/cicsts/dbdccics/pipeline/expipe02/. The response code from the HFS write was X'00000081' and the reason code was 'X'0594003D'. Corrupt WSBIND file Symptom: DFHPI0914 WEBSERVICE webservice is unusable because the WSBIND file is corrupt If you generated your WSBIND file on a distributed platform -- for example, Rational Developer for z (RD/z) - - make sure you transferred the file to z/os in BIN (binary) mode WebSphere Support Technical Exchange 19

Problem Investigation: Check for previously-reported problems IBM ServiceLink SIS APARs, PTFs, other technical information Software defects Web-based CICS TS Support: Technotes, Troubleshooting, FAQs Site also provides options to subscribe to email alerts, find publications, view APARs/PTFs http://www.ibm.com/cics/tserver/support/ WebSphere Support Technical Exchange 20

Problem Determination: Tools Web services deployment (using WSA) Job output Log file CICS runtime errors CICS Messages (Joblog and MSGUSR) Trace (Internal or Auxiliary Trace) Domains: AP, EI, PI, SO, PG, XS = 1-2, otherwise =1 CICS System dump Containers (dumps and traces) WebSphere Support Technical Exchange 21

Problem Determination: and Techniques WSDL validation tools RD/z Eclipse WSDL Formatting Web Browser (Firefox) CEDX (CEDF) transaction HTTP transport: Tran(CPIH) WMQ transport: Tran(CPIQ) WebSphere Support Technical Exchange 22

Problem Determination: Where to look for diagnostic information Check all error logs for messages related to the error you re encountering Tooling (WSA): Joblog, SYSPRINT, HFS error log (specified by the LOGFILE parameter) Runtime (CICS): CICS system log, MSGUSR and if necessary, Dumps or Traces WebSphere Support Technical Exchange 23

Summary IBM Software Group Review the history and implementation of Web Services under CICS TS V3.1 Describe techniques and resources for CICS problem determination Review categories of commonly-reported problems Recommendations to help avoid problems WebSphere Support Technical Exchange 24

References: IBM CICS Information Center http://publib.boulder.ibm.com/infocenter/cicsts/v3r1 http://publib.boulder.ibm.com/infocenter/cicsts/v3r2 Information Roadmap: Web Services Additional details available from search results, and from specific categories and, of course, the manual: CICS Web Services Guide Redbooks http://www.redbooks.ibm.com CICS Web Services Workload Management and Availability Implementing CICS Web Services Developing Web Services Using CICS, WMQ, and WMB Application Development for CICS Web Services WebSphere for z/os v6 Connectivity Handbook Architecting Access to CICS within an SOA Securing Access to CICS Within an SOA CICS Transaction Server support site http://www.ibm.com/cics/tserver/support/ (CICS TS V3.1) (CICS TS V3.2) 3.1 - SC34-6458 3.2 - SC34-6838 SG24-7144 SG24-7206 SG24-7425 SG24-7126 SG24-7064 SG24-5466 SG24-5756 WebSphere Support Technical Exchange 25

References: External IBM Software Group World Wide Web Consortium (W3C) specifications for the following: SOAP 1.1, 1.2 http://www.w3.org/tr/soap WSDL 1.1 http://www.w3.org/tr/wsdl XML 1.0 http://www.w3.org/tr/rec-xml You can check the CICS Information Center, under the topic External standards for a more extensive list and current references (for your CICS release) Wikipedia (www.wikipedia.org) for the following articles: Service-oriented architecture (SOA) SOAP Web services Web Services Description Language (WSDL) WebSphere Support Technical Exchange 26

References: For Further Information Technotes and FAQs: http://www.ibm.com/support/docview.wss?rs=1083&uid=swg2<document#> Webcast replay: Understanding Urimaps, Pipelines, and Webservices for CICS #7010693 How to read WSDL A bottom-up approach #1199529 MustGather: Documentation for Web services problems in CICS on z/os #1220283 Testing CICS Web services #1268824 Customization of generated WSDL using DFHLS2WS #1264647 z/journal articles: CICS TS 3.1: Debugging Background and Guidance http://www.zjournal.com/index.cfm?section=article&aid=737 CICS 3.2 Delivers New SOA Capability to Enterprises http://www.zjournal.com/index.cfm?section=article&aid=848 Responding to Business Dynamics with Web Services and CICS http://www.zjournal.com/index.cfm?section=article&aid=933 Configuring CICS Pipelines in CICS TS v3.1 http://www.zjournal.com/index.cfm?section=article&aid=723 WebSphere Support Technical Exchange 27

Additional WebSphere Product Resources Discover the latest trends in WebSphere Technology and implementation, participate in technically-focused briefings, webcasts and podcasts at: http://www.ibm.com/developerworks/websphere/community/ Learn about other upcoming webcasts, conferences and events: http://www.ibm.com/software/websphere/events_1.html Join the Global WebSphere User Group Community: http://www.websphere.org Access key product show-me demos and tutorials by visiting IBM Education Assistant: http://www.ibm.com/software/info/education/assistant View a Flash replay with step-by-step instructions for using the Electronic Service Request (ESR) tool for submitting problems electronically: http://www.ibm.com/software/websphere/support/d2w.html Sign up to receive weekly technical My support emails: http://www.ibm.com/software/support/einfo.html WebSphere Support Technical Exchange 28

Questions and Answers WebSphere Support Technical Exchange 29