390: Introduction to a ... - Encode Explorer

Implement solutions based on practical examples ... development environment, details the support for XML in Enterprise COBOL, ... Patterns for e-business, as well as XML-based message design, and the ..... David Booz, Mark Dingis, Kim Johnson, Ivan Joslin, Teddy Torres ...... their prices, and is shown in Example 3-6.
5MB taille 39 téléchargements 369 vues


Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Copyright Preface

Leverage XML and XSL-based applications on z/OS and OS/390 The team that wrote this redbook

Becomeconcepts a publishedfor author Design Web services architectures on z/OS Comments welcome

Implement based Part 1: XML on solutions z/OS and OS/390

on practical examples

Chapter 1. XML concepts

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Section 1.1. XML introduction can be extended to modernize legacy applications. It provides both a high-level discussion of Section 1.2. Document type definition service-oriented architecture along with practical, detailed information about XML. Section 1.3. Namespaces Section 1.4. XML Schema In addition to an overview of XML concepts, the first part of the book provides detailed instructions for 1.5. installing the XMLStylesheet ToolkitLanguage for z/OS and OS/390 V1.4 and running the sample Section XSL – Extensible programsSection bundled with it. It describes how to use various tools that are part of the services 1.6. XHTML development environment, details the support for XML in Enterprise COBOL, and provides an Section 1.7. XSL, XSLT, Xpath, and XHTML examples overview of the IBM WebSphere Application Server. This material is of interest mainly to system Section 1.8. Real-life uses of XML programmers and application programmers. Chapter 2. XML Toolkit for z/OS and OS/390

Section XML toolkit The second part2.1. of the book components is geared more to the needs of application developers and Section 2.2. Operating environments architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, in detail someand service-based topologies for both legacy systems and Sectionand 2.3. describes XML Toolkit V1R4 installation configuration new applications. book presents some important design concepts to enable the Section 2.4.Finally, Runtime this considerations reader Chapter to build SOA-based solutions rapidly. This includes an introduction to the IBM 3. robust XML Toolkit samples Patterns for e-business, as well as XML-based message design, and the principles of design by Section 3.1. Java samples contract and service design. Section 3.2. C/C++ samples

Chapter 4. Services development environment Section 4.1. Elements of e-business development tools Section 4.2. WebSphere Studio Enterprise Developer Section 4.3. Support for enterprise service development Section 4.4. WebSphere Studio Asset Analyzer Section 4.5. XML repository Chapter 5. XML and Enterprise COBOL Section 5.1. Overview

Section 5.2. COBOL and Java interoperation Section 5.3. XML support in Enterprise COBOL for z/OS Section 5.4. WebSphere Studio Enterprise Developer & COBOL Chapter 6. WebSphere Application Server on z/OS and OS/390 Section 6.1. IBM WebSphere Application Server Section 6.2. The WebSphere for z/OS environment Section 6.3. Application deployment

• •

Table of Contents

Section 6.4. Development-time and run-time considerations

Index

Section 6.5. Application considerations XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Part 2: Service-oriented architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Chapter 7. Service-oriented architecture and Web services Section 7.1. Introduction Publisher: IBM Section 7.2. SOA definition Pub Date: June 11, 2003 Section 7.3. Web Services overview ISBN: 0-7384-2615-6 Chapter 8. Some service-based solution topologies Pages: 264 Section 8.1. Solution topology for legacy systems Section 8.2. Solution topology for new applications Chapter 9. JCA and WebSphere connectors Section 9.1. J2EE Connector Architecture overview Section 9.2. WebSphere connectors Section XML 9.3. Transaction management Leverage and XSL-based applications on z/OS and OS/390 Chapter 10. Some key design guidelines

Design concepts for Web services architectures on z/OS Section 10.1. Patterns for e-business Section 10.2. XML-based message design

Implement solutions based on practical examples Section 10.3. Design by Contract and Service Design

Glossary This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it publications can be Related extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. IBM Redbooks Referenced Web sites

In addition to an overview of XML concepts, the first part of the book provides detailed How to get IBM Redbooks instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Back cover programs bundled with it. It describes how to use various tools that are part of the services Index development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Copyright •

Table of Contents



Index

International Technical Support Organization

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Jose Luis OS/390: Fernandez Lastra, Dipak Hore, David Carmona XML onInjey, z/OS and Introduction to aSanchez Service-Oriented Architecture

MayPublisher: 2003 IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Note Before using this information and the product it supports, read the information in "Notices" on page vii. Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS

First Edition (May 2003)

Implement solutions based on practical examples This edition applies to IBM XML Toolkit for z/OS and OS/390 V1.4, program number 5655-J51 This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it for use with: can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. z/OS Version 1 Release 3 program number 5694-A01 or OS/390 Version 2 Release 10 program number 5647-A01. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the Server XML Toolkit forfor z/OS and OS/390 V1.4 and running sample WebSphere Application V4.0.1 z/OS and OS/390 at Service Level the 4, program programs bundled with it. It describes how to use various tools that are part of the services number 5655-F31 development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server.Corporation This material2003. is of interest mainly to system © Copyright International Business Machines All rights reserved. programmers and application programmers. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by The second part of the book with is geared more to the needs of application developers and GSA ADP Schedule Contract IBM Corp. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by This information was developed for products and services offered in the U.S.A. contract and service design.

Notices

IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You

can send license inquiries, in writing, to: IBM Director of Licensing, IBM Corporation, North Castle Drive Armonk, NY 10504-1785 U.S.A . The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON• Table of Contents INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do • Index not allow disclaimer of express or implied warranties in certain transactions, therefore, this XML on z/OSmay and OS/390: Introduction statement not apply to you. to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions Publisher: IBM of the publication. IBM may make improvements and/or changes in the product(s) and/or the Pub Date: June 11, 2003 program(s) described in this publication at any time without notice. ISBN: 0-7384-2615-6

Pages: 264 in this information to non-IBM Web sites are provided for convenience only and Any references do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.

IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Leverage XML and XSL-based applications on z/OS and OS/390 Information products was obtained from the suppliers of those products, Design concerning concepts fornon-IBM Web services architectures on z/OS their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the on accuracy of performance, compatibility or any other claims Implement solutions based practical examples related to non-IBM products. Questions on the capabilities of non-IBM products should be This IBM Redbook addressed to the suppliers describes ofthe those useproducts. of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of This information architecture contains examples of data and reports used in daily business operations. To service-oriented along with practical, detailed information about XML. illustrate them as completely as possible, the examples include the names of individuals, In addition to companies, brands, an overview and products. of XML concepts, All of these the names first part are of fictitious the book andprovides any similarity detailed to the instructions names and addresses for installing used the byXML an actual Toolkitbusiness for z/OSenterprise and OS/390 is entirely V1.4 and coincidental. running the sample programs bundled with it. It describes how to use various tools that are part of the services COPYRIGHT developmentLICENSE: environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system This information contains sample application programs in source language, which illustrates programmers and application programmers. programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, The second part of the book is geared more to the needs of application developers and using, marketing or distributing application programs conforming to the application architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and programming for the platform for which the sample aresystems written.and Web services, interface and describes in operating detail some service-based topologies for programs both legacy These examples have not been thoroughly tested under all conditions. IBM, therefore, new applications. Finally, this book presents some important design concepts to enablecannot the guarantee or imply reliability, serviceability, or function these programs. You may copy, reader to build robust SOA-based solutions rapidly. This of includes an introduction to the IBM modify, distribute these sample programs message in any form without to IBMoffor the by Patternsand for e-business, as well as XML-based design, andpayment the principles design purposes of developing, using, marketing, or distributing application programs conforming to contract and service design. IBM's application programming interfaces.

Trademarks The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both:

AIX®

IBM®

PR/SM™

CICS®

IMS™

RACF®

DB2 Universal Database™

Language Environment®

Redbooks (logo)

DB2®

Lotus®

Redbooks™

MQSeries®

S/370™



•Domino™

Table of Contents Index

XML on z/OS and OS/390: Introduction MVS™ to a Service-Oriented Architecture DRDA® By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Encina®

Net.Data®

Enterprise Publisher: IBM Systems

Notes®

Pub Date: June 11, 2003

S/390® System/360™

Architecture/390®

OS/2®

VisualAge®

ESCON® Pages: 264

OS/390®

WebSphere®

FICON™

OS/400®

z/OS®

ibm.com®

Parallel Sysplex®

zSeries®

ISBN: 0-7384-2615-6

The following terms are trademarks of International Business Machines Corporation and Rational Leverage XML andinXSL-based oncountries, z/OS andor OS/390 Software Corporation, the Unitedapplications States, other both: Design concepts for Web services architectures on z/OS Rational® Implement solutions based on practical examples The following terms are trademarks of other companies: This Redbook describes the and use Pentium of XML on IBM servers running or OS/390, andUnited how it Intel,IBM Intel Inside (logos), MMX are trademarks of Intelz/OS Corporation in the can be extended to modernize legacy applications. It provides both a high-level discussion of States, other countries, or both. service-oriented architecture along with practical, detailed information about XML. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation In the addition toStates, an overview XML concepts, the first part of the book provides detailed in United other of countries, or both. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs Java and all bundled Java-based with it. trademarks It describes and how logos to use are various trademarks toolsor that registered are parttrademarks of the services of Sun development environment, Microsystems, Inc. in the United details States, the support other countries, for XML inor Enterprise both. COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system UNIX is a registered trademark of The Open Group in the United States and other countries. programmers and application programmers. SET, SET Secure Electronic andto the SET Logoofare trademarks owned by SET Secure The second part of the bookTransaction, is geared more the needs application developers and Electronic Transaction LLC. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Other company, product, names some may be trademarks or service marks of others. new applications. Finally, and this service book presents important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Preface This IBM Redbook describes the use of XML on IBM servers running z/OS® or OS/390®, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of along with practical, detailed information about XML. • service-oriented Table ofarchitecture Contents •

Index

In addition to an overview of XML concepts, the first part of the book provides detailed XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample By Franck Injey, Jose Luiswith Fernandez Dipak how Hore, David Sanchez Carmona programs bundled it. It Lastra, describes to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview Publisher: ofIBM the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

The second part of the book is geared more to the needs of application developers and Pages: 264 architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The team that wrote this redbook This redbook was produced by a team of specialists from around the world working at the International Technical Support Organization, Poughkeepsie Center. • Table Contents Franck Injey is aofProject Leader at the International Technical Support Organization, • Index Poughkeepsie. He has 25 years experience working on S/390® hardware and system XML on z/OS andBefore OS/390: Introduction to a Service-Oriented performance. joining the ITSO, Franck was a Architecture Consulting IT Architect in France. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Jose Luis Fernandez Lastra is a z/OS and OS/390 Instructor in IBM Learning Services Spain. He has 4 years experience in system programming. He holds a Masters degree in Electronic Publisher: IBM Physics from UC (Universidad de Cantabria). His areas of experience include system application Pub Date: June 11,Parallel 2003 development and Sysplex®. ISBN: 0-7384-2615-6

DipakPages: Hore264 is a Senior Consultant with Westpac Banking Corp.,Australia. He holds a Masters degree in Mathematics from Delhi University, India. He has more than 25 years experience in IT. His area of expertise are XML, component-based development, patterns, application architecture and e-business applications. His current focus is on use of XML in modernization of legacy systems. David Sanchez Carmona is a z/OS and OS/390 instructor in IBM Learning Services Spain. He Leverage XML and XSL-based applications on z/OS and OS/390 has 8 years of experience in the MVS™ field. He holds a Masters degree in Computing Science from Design UPM (Universidad Politecnica de Madrid). His areas of expertise include storage, z/OS UNIX concepts for Web services architectures on z/OS System Services, Linux in zSeries®, Web Server and WebSphere® Application Server in z/OS. Implement solutions based on practical examples Thanks to the following people for their contributions to this project: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Rich Conway, Tamas Vilaghy,along Holger Wunderlich, Chandler service-oriented architecture with practical, Alison detailed information about XML. International Technical Support Organization, Poughkeepsie Center In addition to an overview of XML concepts, the first part of the book provides detailed Ueli Wahli for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample instructions International Technical Organization, Jose Center programs bundled with Support it. It describes how to San use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an David Booz, Mark Dingis, Kim Johnson, Ivan Server. Joslin, Teddy Torres is of interest mainly to system overview of the IBM WebSphere Application This material WebSphere Application Server for z/OS and OS/390, IBM Poughkeepsie programmers and application programmers. William G. Carey The second part of the book is geared more to the needs of application developers and zSeries System Software Design, IBM Poughkeepsie architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Michael D. ConnorFinally, this book presents some important design concepts to enable the new applications. Enterprise Tooling, IBMSOA-based Santa Teresa Laboratory reader to build robust solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Chris Larsson contract and service design. zSeries System Software Design, IBM Poughkeepsie Gary Mazo WebSphere zSeries Tools development, IBM Santa Teresa Laboratory Nick Tindall Application Development, IBM Santa Teresa Laboratory Robin Tanenbaum WebSphere Design and Performance Analysis, IBM Poughkeepsie



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Become a published author Join us for a two- to six-week residency program! Help write an IBM Redbook dealing with specific products or solutions, while getting hands-on experience with leading-edge technologies. You'll team with IBM technical professionals, Business Partners and/or customers. •

Table of Contents

• Index Your efforts will help increase product acceptance and customer satisfaction. As a bonus, you'll XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture develop a network of contacts in IBM development labs, and increase your productivity and marketability. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Find out more about the residency program, browse the residency index, and apply online at: Publisher: IBM

Pub Date: June 11, 2003 ibm.com/redbooks/residencies.html ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Comments welcome Your comments are important to us! We want our Redbooks™ to be as helpful as possible. Send us your comments about this or • Tableinofone Contents other Redbooks of the following ways: •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Use the online Contact us review redbook form found at:

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

ibm.com/redbooks Publisher: IBM

Send comments Pub Date: your June 11, 2003

in an Internet note to:

ISBN: 0-7384-2615-6

[email protected] Pages: 264

Mail your comments to:

IBM® Corporation, International Technical Support Organization Dept. HYJ Mail Station P099 Leverage 2455 South XMLRoad and XSL-based applications on z/OS and OS/390 Poughkeepsie, NY 12601-5400 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Part 1: XML on z/OS and OS/390 • •

In this part we provide a brief overview of XML concepts, and describe the XML Toolkit for z/OS and OS/390 and the distributed sample programs. We also provide an overview of XML and COBOL. Table of Contents Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 1. XML concepts This chapter introduces basic XML concepts like DTDs, namespaces, and XML schemas. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.1 XML introduction The idea of universal data formats is not new. Programmers have been trying to find ways to exchange information between different computer programs for a long time. Standard Generalized Markup Language (SGML) was developed to achieve this. SGML can be used to mark • of add Contents up data, thatTable is, to metadata in a way that allows data to be self-describing. SGML is meta• Index language. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

The markup involvesLastra, usingDipak tagsHore, to identify pieces of information in a document. Tags are By Franck Injey, process Jose Luis Fernandez David Sanchez Carmona names (strings of characters) surrounded by arrow brackets (< and >). Every piece of data that is encoded will have a start tag and an end tag, for example, patiya. The start Publisher: IBM and end tags make it easy for software to process the encoded information, as it clearly Pub Date: June 11, 2003 delineates where certain pieces of information start and where they end. ISBN: 0-7384-2615-6

SGML Pages: does 264 not prescribe any particular markup; instead, it defines how any markup language can be formally specified. The most popular SGML application is HTML (Hypertext Markup Language), the markup language that rules the Web. The HTML specification is owned by W3C. However, different browser vendors introduced a number of incompatible tags to HTML, which are outside the scope of theLeverage original HTML specifications. tags create problems for developers when they author XML and XSL-based These applications on z/OS and OS/390 Web pages because they must consider what browser will display the pages. And, although HTMLDesign has been very successful for displaying information on browsers, it was not found to be concepts for Web services architectures on z/OS useful in describing the data that it represents, meaning it did not have the metadata capability that is essential for a self-describing data document. Implement solutions based on practical examples Furthermore, SGMLdescribes is quite inefficient when it is used complex data This IBM Redbook the use of and XMLcumbersome on IBM servers running z/OStoorencode OS/390, and how it structure. Hence,to there arose alegacy need to develop a more lightweight markup language, so W3C can be extended modernize applications. It provides both a high-level discussion of developed the specification for XML with (eXtensible Markup Language). XMLabout is similar service-oriented architecture along practical, detailed information XML.to SGML in that it preserves the notion of general markup. There are very few optional features, and most In addition SGML features to an that overview were deemed of XML difficult concepts, to the implement first part have of the been book dropped. provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an 1.1.1 Document-centric versus data-centric XML overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. There are two broad application areas of XML technologies. The first relates to document-centric applications, andofthe togeared data-centric applications. The document-centric application The second part thesecond book is more to the needs of application developers and outputs are primarily meant for human consumption. Some examples of such documents are architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and legal briefs, manuals, product catalogs, and so forth. The key element of these documents is and Web services, and describes in detail some service-based topologies for both legacy systems semi-structured text. new applications.marked-up Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Data-centric XML is usedas towell mark highly structured as data structures a Patterns for e-business, asup XML-based messageinformation design, andsuch the principles of designinby programming language, relational data from databases, financial transactions and the like. contract and service design. Data-centric XML is typically generated by machines and is meant for machine consumption. XML's ability to nest and repeat markup makes it a perfect choice for representing these types of data. With the introduction of XML Schema, we are now able to add data type attributes to the tags, which makes data-centric XML a very powerful mechanism to represent enterprise data, especially for data exchange and e-business. For the purpose of this book, whenever we refer to XML, it is understood to mean data-centric XML only.

1.1.2 XML definitions XML is a system-independent standard for the representation of data. XML is not just some new version of HTML; it is different from HTML. Like HTML, XML has tags, and in these tags it encloses data. The difference is that HTML uses its tags to display the enclosed text, and these tags are standard and fixed. • Table of Contents In XML you can create the tags you want, with only a small number of restrictions, and these • Index by a program (parser) to process the data enclosed between them. tags will be used XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Example 1-1 shows a simple XML document. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Example 1-1. An XML document Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS David Implement solutions based on practical examples Sanchez Carmona This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it 20 can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Jose Luis development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Fernandez Lastra programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by A client with Webdesign. browser could fill out a form, entering the names of the employees he contract and his service wants to add or delete. The data could then be sent to a Web application that could process the XML document and extract the data, generating the necessary updates, for example, on a DB2® table. As this example illustrates, the rules are very few: each tag must have an enclosing tag, and not much more. The tags are invented tags, which means that they are free-form. Text is system-independent, and since XML is very flexible and is based only on text, it is used as the main way to transport data between different environments. Often, XML documents are automatically generated by tools, and in many situations we need

these XML documents to follow rules we create. We use other documents, containing XML data definitions in which we specify our restrictions, to accomplish this. The most widely used rules language is Document Type Definition (DTD), described in 1.2, "Document type definition" on page 8. XML Schema is another rules language that aims to provide more complex semantic rules. It also introduces new semantic capabilities, such as support for namespaces and type-checking within • Table of Contents an XML document. XML Schema is described in 1.4, "XML Schema" on page 13. •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

1.1.3 Document validity and well-formedness Publisher: IBM

XML is reminiscent of HTML since they are both derived from SGML, which was defined in 1986. Date:HTML, June 11,XML 2003 tags identify the data, rather than specifying how to display it. Where an But Pub unlike ISBN: 0-7384-2615-6 HTML tag says something like "display this data in bold font" (...), an XML tag acts like a fieldPages: name264 in your program. It puts a label on a piece of data that identifies it (for example: ...). This is the first of a number of differences between the languages. XML documents can be well-formed, or they can be well-formed and valid. These are two very important rules that do not exist for HTML documents. These iron-clad rules contrast with the more free-style nature of a lot of the concepts in XML. The rules can be defined briefly as follows: Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS A well-formed document carries out the basic design rules for XML documents. Implement solutions based on practical examples A valid document respects the rules written in its DTD. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it A document might be well-formed but still not be valid. Example 1-2 shows a DTD while can be extended to modernize legacy applications. It provides both a high-level discussion of Example 1-3 shows a sample XML document. service-oriented architecture along with practical, detailed information about XML. In addition to Example 1-2. an overview DTD of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of BANCO the IBM(TARJETA+)> WebSphere Application Server. This material is of interest mainly to system The second part of the book is geared more to the needs of application developers and architects. ItNom provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally,((#PCDATA)> this book presents some important design concepts to enable the
Example 1-3. XML document

Silvia

2562789452



Table of Contents

The document shown in Example 1-3 is well-formed, but it is not valid according to the sample • Index DTD shown in Example 1-2 because the tag is not defined in the associated DTD (tags XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture are case sensitive). By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

These examples illustrate the difference between well-formedness and validity: Publisher: IBM Pub Date: June 11, 2003

Documents that adhere to rules described in the associated DTD or XML Schema are valid. ISBN: 0-7384-2615-6

Pages: 264 Documents that carry out the syntactical rules for XML documents are well-formed. These rules have to do with attribute names, which should be unique within an element, and attribute values, which must not contain the character service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Example 1-5 is an XML document that refers to this external DTD.

Example 1-5. Reference to an external DTD



Matutano Gerente • •

Table of Contents

Pepe Montilla Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

912563652

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

658968574 Publisher: IBM

256 Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Pages: 264



We can also define an internal DTD in a XML document so that both of them are in the same file. Leverage XML and z/OS and OS/390 Example 1-6 shows this XSL-based case. Noticeapplications that in any on case, internal or external DTD, the declaration indicates what the root element is. Design concepts for Web services architectures on z/OS

Example 1-6.solutions An internal Implement based onDTD practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented along with practical, detailed information about XML. it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of ...... the IBM > WebSphere Application Server. This material is of interest mainly to system The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and ]> Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by . contract and service design. . .

An XML document is not required to have a DTD. DTDs provide parsers with clear instructions on what to check for when they are determining the validity of an XML document. DTDs or other

mechanisms, like XML schemas, contribute to the goal of ensuring that the application can easily determine whether the XML document adheres to a given set of rules, beyond the wellformedness rules defined in the XML standard. DTDs are also used by tools to create XML documents. Having the logical definition of an XML file stored separately allows for the resulting DTD to be shared across organizations, industries, or the Web. When building XML applications, it is probably a good idea to look for existing DTDs that might suit your purpose. As XML becomes • Table of Contents more popular, more commercially and industrially oriented applications will likely appear, and • Index standards will emerge. For more information on the latest emerging XML standards refer to the XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture following Web site: By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

http://www.oasis-open.org Publisher: IBM Pub Date: June 11, 2003

DTD ISBN: contents overview 0-7384-2615-6 Pages: 264

The purpose of a DTD is to define the valid building blocks of an XML document. It defines the document structure with a list of acceptable elements. Seen from a DTD point of view, all XML documents (and HTML documents) are made up of the following simple building blocks: Elements Leverage XML and XSL-based applications on z/OS and OS/390 In a DTD, XML elements are declared with a DTD element declaration. The syntax of this Design concepts for Web services architectures on z/OS declaration is: Implement solutions based on practical examples This IBM Redbookelement-name(allowed describes the use of XMLelement on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Attributes In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Attributes arewith additional information anvarious element. The syntax of this declaration programs bundled it. It describes howabout to use tools that are part of the servicesis: development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers andelement-name application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Entities and describes in detail some service-based topologies for both legacy systems and Web services, new applications. Finally, this book presents some important design concepts to enable the Entities are defined abbreviations so that when the document is analyzed any reference to reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM the entity is replace with the character string represented. An example of this declaration, Patterns for e-business, as well as XML-based message design, and the principles of design by together with its appearance in the document, is: contract and service design. Un día en la vida de un &ovni;

Parameter entities Parameter entities are used within the DTD itself. Their declaration differs by the inclusion of the % character. An example of this declaration is as follows:



XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

By Franck Injey, Jose Luis Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003

ISBN: 0-7384-2615-6

Pages: 264

Notations Notations are used to refer to data from anon outside (non-XML) Leverage XML and XSL-based applications z/OS and OS/390source. They provide a basic means by which non-textual information can be handled within a document. An example of Design the use concepts of this declaration for Web services is as follows: architectures on z/OS Implement solutions based on practical examples In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details theNOTATION support for XML in COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. ]> The second part of the book is geared more to the needs of application developers and Kelly Brown architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM COMMENTS Patterns for e-business, as well as XML-based message design, and the principles of design by contract service It isand possible to design. insert any comment as shown in the following:



DTD limitations

Some people think that DTD syntax is dreadful and hard to enlarge. It is possible that a parser might find "hello" when it is expected to find numeric data in a valid document. DTDs do have a few limitations, for example:

• •

A DTD makes it possible to validate the structure of relatively simple XML documents, but that's as far as it goes. A DTD can't restrict the content of elements, and it can't specify of Contents complexTable relationships. Index

XML on and OS/390: Introduction to a Service-Oriented Inz/OS a DTD, you only get to specify the structure Architecture of the

is no context-sensitivity. By Franck Injey, Jose Luis Fernandez Lastra, Dipak

element one time. There

Hore, David Sanchez Carmona

A DTD specification is not hierarchical. For a mailing address that contains several "parsed character data" (PCDATA) elements, for instance, the DTD might look something like that Pub Date: June 11, 2003 1-7. As you can see, the specifications are linear. That fact forces you to shown in Example ISBN: 0-7384-2615-6 come up with new names for similar elements in different settings.

Publisher: IBM

Pages: 264

Example 1-7. The need for namespaces

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Another withof the non-hierarchical nature of of DTD isdetailed that it is not clear In addition to problem an overview XML concepts, the first part thespecifications book provides what comments are meant to explain. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Finally, a DTD uses syntax which is substantially different from XML, so it can't be development environment, details the support for XML in Enterprise COBOL, and provides an processed with a standard XML parser. That means you can't read a DTD into a DOM, for overview of the IBM WebSphere Application Server. This material is of interest mainly to system example, modify it, and then write it back out again. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.3 Namespaces Before talking about XML Schema, we must first introduce Namespaces. Namespaces are used when there is a need to have different elements with different attributes but with the same name. Depending of the context, a tag is related to an element or to another one. Example 1-8 • Table of Contents illustrates this situation. •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Example 1-8. The need for namespaces

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

264 Description of gadget Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

Gadget

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. It is obvious there is a problem with the meaning of . It depends on the context. This The second situation complicates part of thethings book for is geared processors moreand to the might needs even of cause application ambiguities. developers We need and some architects. Ittoprovides mechanism distinguish a comprehensive between the two, introduction and apply tothe service-oriented correct semantic architecture description (SOA) to the and Web services, correct tag. The and root describes of the problem in detailissome one common service-based nametopologies space. for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the There simple solution to this problem: Namespaces are a simpletoand readeristoabuild robust SOA-based solutionsNamespaces. rapidly. This includes an introduction the IBM straightforward way to distinguish names used in XML documents. If you can specify the related Patterns for e-business, as well as XML-based message design, and the principles of design by DTD when an element is being validated, the problem is solved. contract and service design.

Example 1-9. Namespaces



XML Sample 210 • •

1-868640-34-2 Table of Contents

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By FranckJuanJose Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Hernandez Publisher: IBM Pub Date: June 11, 2003

Mr

ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web architectures on z/OS As you can see in Example 1-9,services the tag is used twice, but in a different context: once within the element and once within the element. Note the use of the xmlns Implement solutions based on practical examplesthe XML recommendation does not specify keyword in the namespace declaration. Interestingly, whether a namespace declaration should point to a valid Uniform Resource Identifier (URI), only This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it that it should be unique and persistent. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture alongtowith practical, detailed information about XML. In the previous example, in order illustrate the relationship of each element to a given namespace, we specified the relevant namespace prefix before each element. However, it is In addition to an overview of XML concepts, the first part of the book provides detailed assumed that once a prefix is applied to an element name, it applies to all descendants of that instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample element unless it is overridden by another prefix. The extent to which a namespace prefix programs bundled with it. It describes how to use various tools that are part of the services applies to elements in a document is defined as the namespace scope. development environment, details the support for XML in Enterprise COBOL, and provides an overview of theisIBM WebSphere Application isnamespace of interest mainly system Example 1-10 equivalent to Example 1-9, Server. but onlyThis the material necessary prefixestohave programmers and application programmers. been used. The second part of the book is geared more to the needs of application developers and Example Namespaces architects. It1-10. provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM as well as XML-based message design, and the principles of design by contract and service design. XML Sample 210

1-868640-34-2 JuanJose Hernandez • •

Table of Contents

Mr Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Information on namespaces can be found at the following Web site: http://www.w3.org/TR/REC-xml-names

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.4 XML Schema The W3C XML Schema Definition Language is an XML language for describing and constraining the content of XML documents. A Schema is similar to a DTD in that it defines which elements an XML document can contain, how they are organized, and which attributes and attribute types • of ContentsTherefore it is a method to check the validity of well-formed XML elements canTable be assigned. • Index documents. The main advantages of Schemas over DTDs are: XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Schemas use XML syntax.

Publisher: IBM It is possible

to specify data types.

Pub Date: June 11, 2003

Schemas are extensible. ISBN: 0-7384-2615-6 Pages: 264

DTD and XML Schema In "DTD limitations" on page 11 we identified some of the limitations and problems of DTDs. In addition to those limitations, we can add the following: limitations and add some new ones: Leverage XML and XSL-based applications on z/OS and OS/390 Designare concepts for Web on services architectures on z/OS data is allowed, any character data There no constraints character data. If character is allowed. Implement solutions based on practical examples The attribute value models are too simple. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of There is no support for namespaces. service-oriented architecture along with practical, detailed information about XML. There is no support for schema evolution, extension, or inheritance of declarations. In addition to an overview of XML concepts, the first part of the book provides detailed It is difficult to write,the maintain, and for read large DTDs, and V1.4 to define families the of related instructions for installing XML Toolkit z/OS and OS/390 and running sample schemas. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an It is of only to set defaults for attributes, not for elements. overview thepossible IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Therefore, there is a need for a way to specify more complex semantic rules and provide all those thingspart thatof DTDs cannot do, like more type-checking within an XML document. XMLand Schema, a The second the book is geared to the needs of application developers W3C Recommendation as of May 2001, aims to provide such functionality; it also introduces new architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and semantic capabilities, such as support for namespaces and type-checking. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by XML Schema example contract and service design. It is difficult to give a general outline of the elements of a schema due to the number of elements that can be used according to the W3C XML Schema Definition Language. The purpose of this language is to provide an inventory of XML markup constructs with which to write schemas. Example 1-11 is a simple document which describes the information about a book.

Example 1-11. A book description

Don Quijote de la Mancha • •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

De Cervantes Saavedra, Miguel

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Sancho Pub Date: June 11, 2003

Panza

ISBN: 0-7384-2615-6

El Quijote

Pages: 264

1547-10-04 escudero Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS ElbaBeuno Implement solutions based on practical examples 1547-08-22 This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Amor Platonico de Dondetailed Quijote service-oriented architecture along with practical, information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Since the XML Schema is a language, there are several choices to build a possible schema that covers the XML 1-12 is atopossible andofvery simple design. The second partdocument. of the bookExample is geared more the needs application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Example 1-12. XML Schema new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.





Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis

Publisher: IBM Pub Date: June 11, 2003



ISBN: 0-7384-2615-6 Pages: 264



Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system It is clear that Example 1-11 is an XML document since it begins with the XML document programmers and application programmers. declaration. The schema element opens our schema holding the definition of the target namespace. Thenofwe element named book. Thisofisapplication the root element in theand XML The second part thedefine book an is geared more to the needs developers document. We decided it is a complex type since it has attributes and non-text children. With architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and sequence we begin to declare the children elements of the root element book. W3C XML Schema Web services, and describes in detail some service-based topologies for both legacy systems and lets define the type of data, as well as the some number of possible occurrences element. new us applications. Finally, this book presents important design concepts of to an enable the For more on possible values for these types,This refer to the specification documents from readerinformation to build robust SOA-based solutions rapidly. includes an introduction to the IBM W3C. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

XML Schema options XML Schema Language offers possibilities and alternatives beyond what is shown in Example 112. We could develop another schema based on a flat catalog of all the elements available in the instance document and, for each of them, lists of child elements and attributes. Thus we would have two choices: defining elements and attributes as they are needed, or creating them first and referencing them. The first option has a real disadvantage: the schema could became very difficult to read and maintain when documents are complex.

W3C XML Schema allows us to define data types and use these types to define our attributes and elements. It also allows the definition of groups of elements and attributes. In addition, there are several ways to arrange relationships between elements. Documentation for XML Schemas can be defined by the xs: documentation element, and processing instructions for applications can be include with the xs:appinfo element. More details are on the Web at: •

Table of Contents http://www.w3.org/TR/NOTE-xml-schema-req •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.5 XSL – Extensible Stylesheet Language Up to this point we have been concerned with XML—its syntax, how XML is used to mark up information according to our own vocabularies, how a program can check the validity of an XML document, and so forth. In other words, we have described how XML can ensure that an • Table of Contents application running on any particular platform receives valid data. This is how we ensure that a • program will Index be able to process this data. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

However, since only describes document syntax, program will not know how to format By Franck Injey, JoseXML Luis Fernandez Lastra, Dipak Hore, David Sanchezthe Carmona this data without specific instructions about style. ThePublisher: solutionIBM is XSL transformations. The Extensible Stylesheet Language (XSL) specification Pub Date: June 11, 2003 describes powerful tools to accomplish the required transformation of XML data. XSL consists of: ISBN: 0-7384-2615-6 Pages: 264

The XSL Transformations (XSLT) language for transformation Formatting Objects (FO), a vocabulary for describing the layout of documents XSLT uses the XML Path Language (XPath), a separate specification that describes a means of addressing XML documents and defining simple queries. Leverage XML and XSL-based applications on z/OS and OS/390 XSLT offers a powerful means of transforming XML documents into other forms, producing XML, concepts for Web architectures on z/OSnumbering, and has many other HTML,Design and other formats. It is services capable of sorting, selecting, features for transforming XML. It operates by reading a style sheet, which consists of one or basedthe on practical moreImplement templates, solutions then matching templatesexamples as it visits the nodes of the XML document. The templates can be based on names and patterns. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can to modernize applications. It provides both a high-level discussion of XSLTbeisextended increasingly being usedlegacy to transform XML data into another form, sometimes different service-oriented architecture along with practical, detailed information about XML. XML (for example, filtering out certain data, SQL statements, plain text, and so on), or any other format. Thus, any XML document may be shown in different formats, such as HTML, PDF, RTF, In addition to an overview of XML concepts, the first part of the book provides detailed VRML, Postscript, and so forth. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an XPath overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. XPath is a string syntax for building addresses to the information found in an XML document. We The second part ofto the book the is geared more the needs of application developers and use this language specify locations of to document structures or data found in an XML architects. It provides a comprehensive introduction to service-oriented architecture (SOA) to and document when processing that information using XSLT. XPath allows us from any location Web services, and describes in detail some service-based topologies for both legacy systems address any other location or content. In other words, XPath is a tool used in XSLT to select and new applications. this book presents some important design concepts to enable the certain informationFinally, to be formatted. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

XPath patterns

Some XPath patterns are shown in Table 1-1. These are just a few examples to give you an idea what kind of things can be selected.

Table 1-1. XPath

Symbol

Meaning

/

Refer to immediate child

//

Refer to any child in the node

.

Refer to actual context

*

Refer to all elements in the actual node



Table of Contents

•@

Index Refer to an attribute

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

@*

Refer to all attributes in the actual node

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XPath models an XML document as a tree of nodes, as follows: Publisher: IBM

Pub Date: June 11, 2003

-ISBN: Root0-7384-2615-6 nodes Pages: 264

- Element nodes - Attribute nodes - Text nodes

Leverage - Namespace XML nodes and XSL-based applications on z/OS and OS/390 Design - Processing concepts instruction for Web nodes services architectures on z/OS Implement - Commentsolutions nodes based on practical examples The basic This IBM Redbook syntacticdescribes constructthe in XPath use ofisXML the on expression. IBM servers An running object isz/OS obtained or OS/390, by evaluating and how anit can be extended expression, whichtohas modernize one of the legacy following applications. four basic It types: provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. - Node-set (an unordered collection of the nodes In addition to an overview of XML concepts, firstwithout part ofduplicates) the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample - Boolean programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an - Number overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. - String The second part of the book is geared more to the needs of application developers and Example Xpath architects. It1-13. provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. xml 5

WebSphere 10 • •



Table of Contents Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

great novel Publisher: IBM

10 Pub Date: June 11, 2003 ISBN: 0-7384-2615-6



Pages: 264

good story 10 Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Considering Example 1-13, wealong couldwith make paths like: service-oriented architecture practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed /book/copies instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how useelements. various tools that are part of the services Selects all copies element children of to book development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system /book//title programmers and application programmers. Selects all title elements in the tree, although title elements are not immediate The second part of the book is geared more to the needs of application developers and children. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, book/@IDand describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the Selects all robust ID attributes beyond book elements. reader to build SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by But as we mentioned previously, it is also possible to select elements based on other criteria, contract and service design. such as: /library/*/book[title $eq$ "good story"] Selects all book elements beyond library element, but only if the title element matches with good story.

XSLT

The question (and programming challenge!) is how to access and display the information contained in an XML file. After all, data is useless unless you can use it. This is where XSLT comes into the picture. A comparison can be made between the relationship of CSS and HTML and the relationship of XSLT and XML. Indeed, XSLT is usually referred to as the stylesheet language of XML; however XML and XSLT are far more sophisticated technologies than HTML and CSS. •

Table of Contents

XSLT is a high-level declarative language. It is also a transforming and formatting language. It • Index behaves in and the OS/390: following way: XML on z/OS Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The pertinent data is extracted from an XML source document and transformed into a new that reflects the desired output. The XSLT markup is commonly called a Pub stylesheet. Date: June 11, A 2003 parser is used to convert the XML document into a tree structure composed of various types of nodes. The transformation is accomplished with XSLT by using pattern ISBN: 0-7384-2615-6 matching Pages: 264 and templates. Patterns are matched against the source tree structure, and templates are used to create a result tree.

Publisher: IBM data structure

Next, the new data structure is formatted, for example in HTML or as text, and finally the data is ready for display. Figure 1-1 shows the source tree from the XML document shown in Example 1-13. Leverage XML and XSL-based applications on z/OS and OS/390

Figure 1-1. DOM tree Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The result tree after an XSL transformation could be an XHTML document, as shown in Figure 12. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Figure 1-2. DOM tree after XSLtopologies transformation Web services, and describes in detail some service-based for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Based on how we instruct the XSLT processor to access the source of the data being transformed, the processor will incrementally build the result by adding the filled-in templates. We write our stylesheets, or "transformation specifications," primarily with declarative constructs, though we can employ procedural techniques if and when needed. We assert the desired behavior of the XSLT processor based on conditions found in our source. Leverage XML and XSL-based applications on z/OS and OS/390 Note that XSLT only manipulates the source tree and that the original XML document is left Design concepts for Web services architectures on z/OS unchanged. Implement solutions based on practical examples The most important aspect of XSLT is that it allows you to perform extremely complex manipulations on the selected tree nodes by affecting both content and appearance. Indeed, the This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it final output may bear absolutely no resemblance to the source document. This ability to can be extended to modernize legacy applications. It provides both a high-level discussion of manipulate the nodes is where XSLT far surpasses CSS. service-oriented architecture along with practical, detailed information about XML. The World Wide Web Consortium (W3C) has set the recommended standards for XSLT Version In addition to an overview of XML concepts, the first part of the book provides detailed 1.0. The W3C proposed recommendation for XSL is available at the following URL: instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system http://www.w3.org/TR/xslXHTML programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.6 XHTML The history of XHTML is very simple: it is derived directly from HTML version 4.01 and is designed to be used with XML. Indeed, XHTML is part of a whole new suite of "X" technologies, with acronyms such as XML, XPATH, XSL, and XSLT, that are destined to have a profound effect • Table of Contents on the Internet. •

Index

XML on z/OS OS/390: to a Service-Oriented People oftenand think XMLIntroduction is an extension of HTML, but Architecture we have already dispelled this notion. XHTML is the real extension of HTML. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

There are a few fundamental differences between HTML and XHTML that will significantly affect IBM howPublisher: you code with XHTML. While HTML is a loose and forgiving language, XHTML will quickly Pub Date: 2003English teacher who demands firm adherence to the rules of grammar. remind you June of a11, strict ISBN: 0-7384-2615-6

Fortunately, the syntax and coding rules are very straightforward, easy to implement, and they Pages: 264 make sense. The real purpose of these rules is to allow a seamless integration of XHTML with XML and other related X technologies. The rules are summarized as follows: All attributes, events, and tags must be written in lower case. Leverage XML and be XSL-based All elements must closed. applications on z/OS and OS/390 Design concepts for to Web on z/OS The value assigned an services attributearchitectures must be enclosed in quotes. Implement based on practical examples No attributesolutions may be minimized. This IBM Redbook must describes the usenested. of XML on IBM servers running z/OS or OS/390, and how it All elements be properly can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture with practical, detailed information about XML. XHTML documents must along be well-formed. In addition an be overview of XML concepts, the first part of the book provides detailed There to must a DOCTYPE declaration. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs Notice thatbundled this lastwith ruleit. implies It describes that there howmust to use bevarious a DTD tools to validate that are thepart XHTML of the document. services development HTML has become environment, an XML document. details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

1.6.1 XHTML document types The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and XHTML 1.0 specifies three XML types that correspond to three DTDs: Strict, Web services, and describes in document detail some service-based topologies for both legacy systems and Transitional, and Frameset. The most common is XHTML transitional. The DOCTYPE declaration at new applications. Finally, this book presents some important design concepts to enable the the beginning of the XHTML document specifies which type is being used. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

XHTML 1.0 Strict Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets. Example 1-14 shows a strict DTD.

Example 1-14. Strict DTD



XHTML 1.0 Transitional •

Table of Contents

• Index Use this when you need to take advantage of HTML's presentational features and when you want XML on z/OS browsers and OS/390: Introduction to a Service-Oriented to support that don't understand CascadingArchitecture Style Sheets.

transitional By Franck Injey,DTD. Jose Luis Fernandez Lastra, Dipak

Example 1-15 shows a

Hore, David Sanchez Carmona

Example 1-15. Transitional DTD Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS

XHTML 1.0 Frameset Implement solutions based on practical examples Use this when you want to use HTML Frames to partition the browser window into two or more This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it frames.Example 1-16 shows a frameset DTD. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

Example 1-16. Frameset DTD

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services developmenthtml environment, details the support for XML in Enterprise COBOL, and provides an architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM 1.6.2 Xlink Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. XLink is a powerful and compact specification for the use of links in XML documents. Every developer is familiar with the linking capabilities of the Web today. However, as the use of XML grows, we quickly realize that simple tags like the following ones are not going to be enough in a near future.

Freud are not going to be

enough for many of our needs.

XML Linking Language (XLink) allows elements to be inserted into XML documents to create and describe links between resources. It uses XML syntax to create structures that can describe links similar to the simple unidirectional hyperlinks of today's HTML, as well as more sophisticated links. •

Table of Contents

• Index XLink provides a framework for creating both basic unidirectional links and more complex linking XML on z/OS and OS/390: Introduction to ato: Service-Oriented Architecture structures. It allows XML documents By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Assert linking relationships among more than two resources

Publisher: IBM

Pub Date: June metadata 11, 2003 Associate

with a link

ISBN: 0-7384-2615-6

Express Pages: 264links that reside in a location separate from the linked resources Even though XLink has not been implemented in any of the major commercial browsers yet, its impact will be crucial for the XML applications of the near future. Its extensible and easy-to-learn design should prove an advantage as the new generation of XML applications develop. For more information about Xlink, refer to the specification document from W3C: Leverage XML and XSL-based applications on z/OS and OS/390 http://www.w3.org/TR/xlikn Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

Xpointer

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can extended to modernize legacy applications. It provides both a high-level of XML be Pointer Language (Xpointer) specifies a language that builds upon the XML discussion Path Language service-oriented architecture along with practical, detailed information about XML. (XPath), to support addressing into the internal structures of XML documents. In particular, it provides for specific references to elements, character strings, selections, and other parts of XML In addition to an overview XMLbear concepts, the first part of the book traversals provides detailed documents—whether or notofthey an explicit ID attribute—using of a document's instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample structure and choice of parts based on their properties, such as element types, attribute values, programs bundled with it. It describes how to use various tools that are part of the services character content, and relative position, containment, and order. Xpointer defines the meaning development environment, details the support Enterprise COBOL, and provides an of the "selector" or "fragment identifier" portionfor of XML URIsinthat locate resources of MIME media overview of the IBM WebSphere Application Server. This material is of interest mainly to system types text/xml and application/xml. programmers and application programmers. In Xpointer, one defines the addressing expression to link XML documents using XPath. For more The second part ofXPointer, the book refer is geared more to the needs of application developers and information about to the specification documents from W3C: architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and http://www.w3.org/TR/xptr/ new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.7 XSL, XSLT, Xpath, and XHTML examples Let's first look at some example stylesheets using two implementations of XSLT 1.0 and XPath 1.0 • Contents Consider theTable XML of file shown in Example 1-17. It is a very simple file we are going to use as the • Index source of information for our XSLT transformation. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey,1-17. Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Example hello.xml Publisher: IBM Pub Date: June 11, 2003

0-7384-2615-6 Pages: 264

Hello world.

XML and XSL-based on z/OS and Note Leverage that the stylesheet associationapplications processing instruction in OS/390 line 2 refers to a stylesheet with the namehello.xsl of type XSL. Recall that an XSLT processor is not obliged to respect the Design concepts for Web services z/OS stylesheet association preference, so letarchitectures us first use aon standalone XSLT processor with the stylesheet hellohtm.xsl, shown in Example 1-18. Implement solutions based on practical examples

Example 1-18.describes hellohtm.xsll This IBM Redbook the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services programmers and application programmers. Greeting The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and

Words of greeting:
Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by

contract and service design.

This file looks like a simple XHTML file: an XML file using the HTML vocabulary. Indeed, it is just that, but we are allowed to inject into the instance XSLT instructions using the prefix for the XSLT vocabulary declared in line 3. We can use any XML file as an XSLT stylesheet provided it declares the XSLT vocabulary within and indicates the version of XSLT being used. Any prefix can be used for XSLT instructions, though convention often sees XSL: as the prefix value.

Thexsl:value-of instruction uses an XPath expression in the select= attribute to calculate a string value from our source information. XPath views the source hierarchy using parent/child relationships. The XSLT processor's initial focus is the root of the document, which is considered the parent of the document element. Our XPath expression value "greeting" selects the child named"greeting" from the current focus, thus returning the value of the document element named"greeting" from the instance. We invoke the XSLT processor to point to which is the XML source file, which is the XSL • Table of Contents stylesheet, and where to leave the result. Example 1-19 shows the result file. •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Example 1-19. Output from XSLT processor

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June

11, 2003

ISBN: 0-7384-2615-6

Pages: 264 Greeting Leverage XML and XSL-based applications on z/OS and OS/390

Words ofconcepts greeting:
Design for Web services architectures on z/OS Hello world. Implement solutions based on practical examples This

IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview ofsee the in IBM WebSphere is of interest mainly system As you can Figure 1-3, thisApplication is an HTMLServer. file, so This any material browser could interpret it andtogenerate programmers and application programmers. a display. The second part of the book is geared more to the needs of application developers and Figure 1-3. Hello world architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

1.8 Real-life uses of XML XML is already used in a wide range of fields and industries, including science and medicine, publishing, broadcasting, communications, and financial services. On the W3C Web site there is information about the standards and recommendations for several. At the end of this section we • Table of Contents provide several links to information about the standards. •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

ebXML

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: ebXML is a IBM set of specifications that together enable a modular electronic business framework. Pub Date: June 11, 2003 The vision of ebXML is to enable a global electronic marketplace where enterprises of any size ISBN: 0-7384-2615-6 and in any geographical location can meet and conduct business with each other through the exchange of264 XML-based messages. Or in other words, ebXML hopes to succeed Electronic Data Pages: Interchange, more often known by its abbreviation, EDI.

ebXML adds new acronyms and other special terms that should be mentioned to help you understand the whole "vision" of ebXML interactions. Leverage XML andwants XSL-based on z/OS andwith OS/390 When a business to startapplications an ebXML relationship another business, it queries a Registry (information in XML form) to locate a suitable partner and to find information Design concepts for Web services architectures on z/OS about requirements for dealing with that partner. Implement solutions based on practical examples Business Processes: Activities that a business can engage in (and for which it would generally want one or more partners). This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Collaboration Protocol Profile (CPP): A profile filed with a Registry by a business wishing to service-oriented architecture along with practical, detailed information about XML. engage in ebXML transactions. The CPP specifies some Business Processes of the business, as well as some Business Service Interfaces it supports. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Core Library: A set of standard "parts" that may be used in larger ebXML elements. For programs bundled with it. It describes how to use various tools that are part of the services example, Core Processes may be referenced by Business Processes. The Core Library is development environment, details the support for XML in Enterprise COBOL, and provides an contributed by the ebXML initiative itself, while larger elements may be contributed by overview of the IBM WebSphere Application Server. This material is of interest mainly to system specific industries or businesses. programmers and application programmers. Collaboration Protocol Agreement (CPA): In essence, a contract between two or more The second part of the book is geared more to the needs of application developers and businesses that can be derived automatically from the CPPs of the respective companies. If architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and a CPP says "I can do X," a CPA says "We will do X together." Web services, and describes in detail some service-based topologies for both legacy systems and new applications. this book presents some important design concepts towhat enable the Figure 1-4, based Finally, on the ebXML Technical Architecture Specification, illustrates ebXML reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM means for business. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Figure 1-4. ebXML



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Company A will first review the contents of an ebXML Registry, especially the Core Library which can be downloaded there.applications The Core Library (and other registered Business Leverage XML or andviewed XSL-based on z/OS andmaybe OS/390 Processes) will allow Company A to determine the requirements for their own implementation of Design conceptsebXML for Web architectures on z/OS needs). Based on a review of the ebXML (and whether is services appropriate for their business information available from an ebXML Registry, Company A can build or buy an ebXML Implement suitable solutions based on practical examples implementation for its anticipated ebXML transactions. The hope of the ebXML initiative is that vendors will support all of the elements of ebXML. At such time, an "ebXML system" might This IBMmore Redbook the use of XMLapplication. on IBM servers runningmore z/OSrealistically, or OS/390, the andebXML how it be little than describes a prepackaged desktop Or maybe, can be extended to modernize legacy applications. It provides both a high-level discussion of system will at least be as manageable as a commercial database system (which still needs a service-oriented architecture along with practical, detailed information about XML. DBA). In addition annext overview XML concepts, the first part of the book provides detailed Either way, to the step isoffor Company A to create and register a CPP with the Registry. The instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample roles CPP will contain the information necessary for a potential partner to determine the business programs bundled with it. It describes how to use various tools that are part of the services in which Company A is interested, and the type of protocols it is willing to engage in for these development environment, details the support for XML in Enterprise COBOL, and provides an roles. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Finally, the two companies begin actual transactions. ebXML will have helped in agreeing to, monitoring, and verifying these real-world activities. The second part of the book is geared more to the needs of application developers and architects. It provides about a comprehensive to service-oriented architecture (SOA) and For more information ebXML, referintroduction to the following Web sites: Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the http://www.oasis-open.org/ reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM http://www.ebxml.org Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

References Schema standards XML Schema http://www.w3.org/XML/Schema

TREX (Tree Regular Expressions for XML) http://www.thaiopensource.com/trex/ SOX (Schema for Object-oriented XML) http://www.w3.org/TR/NOTE-SOX •

Table of Contents for Object-oriented XML) Schematron (Schema



Index

http://www.ascc.net/xml/resource/schematron/schematron.html XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Linking and presentation standards

Publisher: Xlink, IBM Xpointer Pub Date: June 11, 2003

http://www.w3.org/XML/Linking ISBN: 0-7384-2615-6 Pages: 264

XHTML

http://www.w3.org/TR/xhtml1 Knowledge standards RDF (Resource Description Framework) Leverage XML and XSL-based applications on z/OS and OS/390 http://www.w3.org/TR/REC-rdf-syntax Design concepts for Web services architectures on z/OS RDF Schema Implement solutions based on practical examples http://www.w3.org/TR/rdf-schema This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of XTM (XML Topic Maps) along with practical, detailed information about XML. service-oriented architecture http://www.topicmaps.org/xtm/index.html In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Standards that XML how to use various tools that are part of the services programs bundled withbuild it. It on describes development environment, details the support for XML in Enterprise COBOL, and provides an SMIL (Synchronized Multimedia Integration Language) overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. http://www.w3.org/TR/REC-smil The second part of the book is gearedLanguage) more to the needs of application developers and MathML (Mathematical Markup architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and http://www.w3.org/TR/REC-MathML new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by 1.8.1 XML parsers contract and service design. An XML parser is a software module that is used to read XML documents and provide application programs with access to their content and structure. Several XML parsers are now available that support many languages, such as Java, C/C++, Enterprise COBOL, and so forth. Some of them are validating parsers, while others are non-validating. Validating parsers typically allow validation to be performed or bypassed under application control. When reading an XML document, a validating parser checks the validity constraints and the well-formedness constraints defined in the XML recommendation. The current APIs for accessing XML documents, either serially or in random access mode are,

respectively, SAX and DOM.

SAX The Simple API for XML (SAX) defines an API for an event-based parser. Being event-based means that the parser reads an XML document from beginning to end, and each time it • of Contents recognizes a Table syntax construction, it notifies the application that is running it. The SAX parser • Index notifies the application by calling methods from the ContentHandler interface. For example, XML onthe z/OS and OS/390: Introduction a Service-Oriented Architecture when parser detects the start to element, it calls the startElement method; when it comes to character data, it calls the characters method; when it By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez comes Carmona to the end element it calls the endElement method. IBM SAXPublisher: is a public domain API developed cooperatively by the members of the XML-DEV mailing Pub Date: June 11, list. It provides an 2003 event-driven interface tor the purpose of parsing XML documents. ISBN: 0-7384-2615-6

An event-driven Pages: 264 interface provides a mechanism for "callback" notifications to an application's code as the underlying parser recognizes XML syntactic constructions in the document.

DOM Leverage XML and XSL-based on z/OS defined and OS/390 The Document Object Model (DOM) applications is a set of interfaces by the W3C DOM Working Group. It describes facilities for a programmatic representation of a parsed XML (or HTML) DesignThe concepts for Web services architectures on interfaces z/OS document. DOM Level 2 specification defines these using Interface Definition Language (IDL) in a language-independent fashion, and also includes a Java Language binding. Implement solutions based on practical examples The Java API for XML processing specification includes by reference both the abstract semantics This IBM Redbook describes use Recommendation of XML on IBM servers running or OS/390,Java and how it described for the DOM Level the 2 Core interfaces andz/OS the associated can be extended to modernize legacy applications. It provides both a high-level discussion Language binding. It does not include the optional extensions defined by the DOM working of service-oriented architecture along with practical, detailed information about XML. group. In to an overview of the XMLJava concepts, first part of the book provides Theaddition API package included by API forthe XML processing specification is: detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services http://www.w3.org/DOM/ development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

JAXP

The second part of the book is geared more to the needs of application developers and The Java API for XML Processing (JAXP) introduction makes it easy process XML data using applications architects. It provides a comprehensive toto service-oriented architecture (SOA) and written in the Java programming language. JAXP leverages the parser standards SAXsystems (Simpleand Web services, and describes in detail some service-based topologies for both legacy API for XML Parsing) and DOM (Document Object Model) so that you can choose to parse your new applications. Finally, this book presents some important design concepts to enable the data as a stream of events or to build a tree-structured representation of it. The latest versions reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM of JAXP also support the as XSLT Stylesheetmessage Language Transformations) standard, giving by you Patterns for e-business, well(XML as XML-based design, and the principles of design control over the presentation of the data and enabling you to convert the data to other XML contract and service design. documents or to other formats, such as HTML. JAXP also provides namespace support, allowing you to work with schemas that might otherwise have naming conflicts. Designed to be flexible, JAXP allows you to use any XML-compliant parser from within your application. It does this with what is called a "plugability layer," which allows you to plug in an implementation of the SAX or DOM APIs. The plugability layer also allows you to plug in an XSL processor, which lets you transform your XML data in a variety of ways, including the way it is displayed. The latest version of JAXP is JAXP 1.2, which adds support for XML Schema.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 2. XML Toolkit for z/OS and OS/390 • Table Contentsinformation about the XML Toolkit for z/OS and OS/390 V1R4. We In this chapter weofprovide • describe the Index product and its components. We also describe a non-SMP/E installation and the XML on z/OS andwhere OS/390: Introduction to a Architecture environments the toolkit can beService-Oriented executed. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Note

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

As this264 publication goes to print, the XML Toolkit for z/OS and OS/390 Version 1 Pages: Release 5 has been released. This new release provides updates to the XML Java and C++ parsers, based on the Apache Software Foundation's Xerces2 Java Parser 2.2.1 and Xerces-C++ Version 2.1.0. This version also includes updates to the XSLT processor based on the Apache Software Foundation's Xalan Java Version 2.4.1. For more information, see the XML Toolkit Web page at: Leverage XML and XSL-based applications on z/OS and OS/390 http://www-1.ibm.com/servers/eserver/zseries/software/xml/ Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

2.1 XML toolkit components The XML toolkit includes the following components:



XML Parser Tablefor of Contents z/OS and OS/390, C++ Edition



Index

This corresponds to the Apache Foundation's Xerces-C XML on z/OS and OS/390: Introduction to a Software Service-Oriented Architecture

1.6.0.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XML Parser for z/OS and OS/390, Java Edition

Publisher: This corresponds IBM

to the Apache Software Foundation's Xerces2 Java Parser 2.0.1.

Pub Date: June 11, 2003

The XML Toolkit for z/OS and OS/390 V1R4 provides the following enhancements to the previous ISBN: 0-7384-2615-6 releases: Pages: 264

Full Schema support is now offered for the C++ parser. Within the Java release, a rewrite of the code base has been done, providing a cleaner, more modular, and easier to maintain design. External APIs were not affected by this change. Leverage XML and XSL-based applications on z/OS and OS/390 Support for the XSLT Processor in architectures MVS native mode has been added. Design concepts for Web services on z/OS TableImplement 2-1 shows solutions the interfaces and for XML parsers in the XML toolkit for z/OS and based on specifications practical examples OS/390. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XMLXML concepts, the first of the book provides detailed Table 2-1. toolkit forpart z/OS and OS/390 instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Interfaces & specifications Edition parser Java Edition parser an development environment, details the C++ support for XML in Enterprise COBOL, and provides overview Server. This material is of interest mainly to system DOM 1.0 of the IBM WebSphere Application Completely supported Completely supported programmers and application programmers. DOM 2.0 Completely supported Completely supported The second part of the book is geared more to the needs of application developers and DOM 3.0 It provides a comprehensive ----------Subset ofarchitecture experimental APIsand architects. introduction to service-oriented (SOA) Web and describes in detailCompletely some service-based for both legacy systems and SAX services, 1.0 supportedtopologies Completely supported new applications. Finally, this book presents some important design concepts to enable the SAX 2.0 Completely supported Completely supported reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by IDOM Completely supported Completely supported contract and service design. XML 1.0 Completely supported Completely supported Namespaces

Completely supported

Completely supported

Schema

Completely supported

Completely supported

JAXP 1.0

-----------

-----------

JAXP 1.1

-----------

Completely supported

At the time of writing this redbook, DOM 3.0 has not reached W3C recommendation status. Since

it is subject to change, this API is not supported. Consequently, fixes may not be made available for this experimental API. Table 2-2 shows the interface and specifications for XSL processors in the XML toolkit.



Table of Contents



Index

Table 2-2. XSL processors in the XML toolkit

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Interfaces and specifications

C++ Edition processor

Java Edition processor

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XSLT Transformation

Completely supported

Completely supported

XPATH 1.0

Completely supported

Completely supported

TRaX ISBN: 0-7384-2615-6

-----------

Completely supported

Publisher: IBM Pub Date: June 11, 2003

Pages: 264

Sample applications of XML parsers and XSL processors have also been provided to demonstrate the features of the both editions of the toolkit. The results of running these samples are documented in the next chapter.

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

2.2 Operating environments 2.2.1 XML Toolkit for z/OS and OS/390, Java Edition •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

CICS®

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Operation with CICS Transaction Server can be achieve by exploiting the capability to run a Java Publisher: IBM (JVM) within the CICS Transaction Server V2.2 or above. CICS application Virtual Machine programs Java are able to run in a CICS address space under the control of a JVM. The Pub Date:written June 11,in 2003 internal architecture of CICS TS 2.2 allows specified user tasks to run under their own task ISBN: 0-7384-2615-6 control block (TCB). The new TCBs under which tasks, optionally, can run are known as open Pages: 264 TCBs. These form the basis for CICS becoming an open transaction environment in the longer term. Interoperability with CICS TS 2.2 is supported via CICS Transaction Gateway 4.02, which transmits application requests to CICS. Leverage XML and XSL-based applications on z/OS and OS/390

WebSphere Application Server Design concepts for Web services architectures on z/OS Implement solutions based onfor practical examples The XML parser and XSL processor z/OS and OS/390, Java edition can be used with applications running in WebSphere Application Server for z/OS or OS/390. Use of the IBM This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Common Connector Framework, which is supported by WebSphere, also provides can be extended to modernize legacy applications. It provides both a high-level discussion interoperability with IBM's enterprise transaction server processing platforms, like CICS; it of service-oriented architecture along with practical, detailed information about XML. converts parsed data into a COMMAREA, and communicates with CICS. WebSphere Application Server also provides IMS™ connectors. This is discussed in more detail in the later chapters of In thisaddition book. to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an IMS Transaction Manager overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. As we mentioned previously, a Java application can invoke the OS/390 XML parser or the XSL processor, and then use IMS Connector to send a messagedevelopers to IMS. The secondJava part Edition of the book is geared more to the needs of application and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and XML candescribes be used in to detail drive existing IMS transactions. The Java parser runssystems in the IMS Web documents services, and some service-based topologies for both legacy and Transaction Manager V7 environment. Transformation to and from the IMS message format new applications. Finally, this book presents some important design concepts to enable the is the responsibility of the application. New IMS applications can also XML. Written in Java, reader to build robust SOA-based solutions rapidly. This includes anuse introduction to the IBM they can receive XML input, parse the document and process the data directly. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Batch Batch programs that invoke the XML parser or the XSL processor Java edition must run in a JVM.

2.2.2 XML Toolkit for z/OS and OS/390, C++ Edition The XML parser and XSL processor for z/OS and OS/390, C++ edition can be invoked by any

program that can access C++ code running under the OS/390 Language Environment®, except in a CICS environment. It can also be invoked from a C or C++ DB2 application or stored procedure.

CICS Transaction Server • Table in of Contents The C++ parsers CICS are not supported. The initial beneficiaries of the changes brought in • CICS TS 2.2 Index are Java application programs. These Java programs have direct access to CICS XML on z/OSvia andthe OS/390: Introduction to a and Service-Oriented resources new JCICS classes, run under Architecture the OS/390 JVM, at JDK 1.3.1 or higher, attached by CICS under a new TCB (OTE). CICS C++ run under a single TCB, the By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchezprograms Carmona quasi-reentrant TCB, and are not allowed to access files that are not controlled by CICS TS. Publisher: IBM Pub Date: June 11, 2003

IMS Transaction Manager ISBN: 0-7384-2615-6 Pages: 264

The XML C++ parser and XSL processor APIs are supported in IMS.

Batch and UNIX System Services The XML C++ parser andXSL-based XSL processor are supported batch and in UNIX System Services. Leverage XML and applications on z/OSinand OS/390 Design concepts for Web services architectures on z/OS

2.2.3Implement XML Toolkit V1R4 requirements solutions based on practical examples The prerequisite forthe running XML is onerunning of the following: This software IBM Redbook describes use ofthe XML on toolkit IBM servers z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. OS/390 V2R8 with Language Environment and OS/390 UNIX System Services active. In addition to an overview of XML concepts, the first part of the book provides detailed z/OS V1R1 with Language Environment and OS/390 UNIXV1.4 System instructions for installing the XML Toolkit for z/OS and OS/390 andService runningactive. the sample programs bundled with it. It describes how to use various tools that are part of the services This is mandatory for a successful installation; in addition, there are some functional development environment, details the support for XML in Enterprise COBOL, and provides an requirements that must be met at run time for this product to work. These requirements are overview of the IBM WebSphere Application Server. This material is of interest mainly to system identified in Table 2-3. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Table 2-3. XML some Toolkit co-requisites new applications. Finally, this book presents important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, well as XML-based message design, andFunction the principles of design by Productas name contract and service design. IBM Developer Kit for OS/390, Java 2 XML parser for z/OS and OS/390, Java edition Technology Edition V1R1 with PTF UQ61198 and XSLT processor for z/OS and OS/390, Java or higher edition Java SDK 1.3.1

XML parser for z/OS and OS/390, Java Edition

The toolkit is compatible with IBM and non-IBM hardware and software platforms. Key uses include: Categorizing and tagging data for exchange in disparate environments.

Transforming "ad hoc" unstructured data to XML records, enabling you to search, crossreference, and share records.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

2.3 XML Toolkit V1R4 installation and configuration In the following sections, we describe how to install and configure the XML Toolkit.



Table of Contents

2.3.1 Obtaining the toolkit • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Note

Pub Date: June 11, 2003

These ISBN: instructions 0-7384-2615-6 do not replace the XML Toolkit for z/OS and OS/390 Program Directory. Pages: 264 Refer to that document and the XMLSMPE.README.txt file supplied with the download to accomplish the installation.

The XML Toolkit for z/OS and OS/390 can be distributed on a product tape if you wish, but it can also be downloaded from the Web. If you choose this second option, follow the instructions Leverage XML and XSL-based applications on z/OS and OS/390 provided in the Program Directory available at the following URL: Design concepts for Web services architectures on z/OS http://www.ibm.com/servers/eserver/zseries/software/xml/pdf/v1r4.pdf Implement solutions based on practical examples A number of sample jobs are provided to help you install the toolkit into its own SMP/E environment. But before running these jobs you must define all DDDEF entries in the appropriate This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it zones. Instead of running the samples, you could use the SMP/E Dialogs. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. The SMP/E GIMUNZIP function is required to process the downloaded package. For a description of this function refer to the SMP/E Web page at: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample http://www.ibm.com/servers/eserver/zseries/zos/smpe/ programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support XML in Enterprise COBOL, and provides an Before downloading the toolkit, allocate an R/Wfor HFS directory into which to stage the download overview of the IBM WebSphere Application Server. This material is of interest mainly to system package using the mkdir command. You can also choose the tmp file of the Hierarchical File programmers and application programmers. System. In this case you are not interested on keeping the zip files from the download. The of the bookthe is geared more to the The needs of application developers and You second are nowpart ready to start download process. package is available from the following architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web site: Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the http://www.ibm.com/servers/eserver/zseries/software/xml/download/ reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns as wellform as XML-based messagethe design, and the principles of design by You mustfor fill e-business, out a registration prior to beginning download. contract and service design.

Figure 2-1. Toolkit download Web page



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Once Leverage you have XML filledand out XSL-based the form with your ID, the files can downloaded. applications on z/OS and be OS/390 Design concepts WebToolkit services architectures on z/OS Figure 2-2.for XML for z/OS and OS/390

download page

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The following table lists the installation files.

Table 2-4. Toolkit V1R4 installation files XML Toolkit for z/OS and OS/390 SMP/E Installable Toolkit (includes all components)



SMP/E installable version

Files

Instructions

Yes

Toolkit.pax.Z

XMLSMPE.README.txt

No

IXMC400B.tar link

Table of Contents

•XML Parser,Index C++ Edition only

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

XML Parser, Java Edition only

No

IXMJ400B.tar

link

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Lotus® XSLT Processor, C++ Edition only Publisher: IBM

No

IXMCX13B.tar link

Pub Date: 11, 2003 Java Lotus XSLTJune Processor, ISBN: 0-7384-2615-6 Edition only

No

IXMJX23B.tar

link

Pages: 264

Now you are ready to execute the SMP/E dialogs or the JCLs provided to install the toolkit. As indicated in Table 2-4, when SMP/E installation is invoked the installation of both the XML parser and XSL processor is done. When a non-SMP/E installation is chosen, the user may select the installation of each individual component. Leverage XML and XSL-based applications on z/OS and OS/390 concepts for Web services architectures on z/OS 2.3.2Design SMP/E Installation Implement solutions based on practical examples The SMP/E installation process is fully described in the Program Directory for XML Toolkit for z/OS and Redbook OS/390 Version 1 Release 0, running GI10-0665-03. document is it This IBM describes the use 4, of Modification XML on IBM Level servers z/OS or The OS/390, and how available on the Web, at: can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. http://www-1.ibm.com/servers/eserver/zseries/software/xml/pdf/v1r4.pdf In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled withInstallation it. It describes how to use various tools that are part of the services 2.3.3 Non-SMP/E development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system The following sections describe the non-SMP/E installations for each individual component. programmers and application programmers. The second part of the book is geared more to the needs of application developers and XML Toolkit for z/OS and OS/390, C++ Edition to service-oriented architecture (SOA) and architects. It provides a comprehensive introduction Web services, and describes in detail some service-based topologies for both legacy systems and new applications. this book presents some important design concepts to enable Table 2-5 lists theFinally, files downloaded to the workstation and the directories in which they the are reader when to build robust solutions rapidly. This includes an introduction to the IBM placed you issueSOA-based the tar command. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Table 2-5. C++ Edition installation files Component

File name

Directory path

XML Parser

IXMC400B.tar

/usr/lpp/ixm/IBM/xml4c-4_0

XSLT Processor

IXMCX13B.tar

/usr/lpp/ixm/IBM/LotusXSL-C_1_3

V1R4 XML Parser, C++ Edition Use the following steps to install the XML parser, C++ edition.

1. Download the IXMC400B.tar file to a temporary directory on your workstation. • •

Table of Contents

2. From the TSO command environment invoke the OS/390 shell with the command: Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

OMVS Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264 3. Check whether the directory /usr/lpp/ixm/IBM exists. If not, create it using the following commands:

cd /usr/lpp/ Leverage XML and XSL-based applications on z/OS and OS/390 mkdir ixm(if this directory does not exit) Design concepts for Web services architectures on z/OS cd ixm Implement solutions based on practical examples mkdir IBM(if this directory does not exit) This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended cd IBMto modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs with it. describes how to to use various tools thatinare partformat. of the services 4. Usingbundled FTP, upload theItfile IXMC400B.tar /usr/lpp/ixm/IBM binary development environment, details the support for XML in Enterprise COBOL, and provides an At the prompt USERID:/usr/lpp/ixm/IBM $ you can issue ls command check overview of Shell the IBM WebSphere Application Server. This material is of the interest mainly totosystem that IXMC400B.tar is in this directory after FTP. You might choose another directory, or the programmers and application programmers. tmp or some other temporary directory if you do not want to keep the tar file after The second part of the book is geared more to the needs of application developers and installation. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and 5. services, Make sure youdescribes are in the specified in Step 3, then extract files from the tar Web and in directory detail some service-based topologies for both legacy systems and archive by entering new applications. Finally,the thiscommand: book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. tar -xvozf IXMC400B.tar

The extract will create an xml4c-4_0 directory with subdirectories for samples, XML documents, and documentation in HTML format. Figure 2-3 shows part of the OS/390 shell screen, where we have entered the ls command to see the files created in the xml4c-4_0 directory.

Figure 2-3. Files in xml4c-4_0 directory



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

6. Issue the following command and then edit your .profile file with the oedit command and Pub Date: June 11, 2003 add this line (or command): ISBN: 0-7384-2615-6 Pages: 264

export LIBPATH=/usr/lpp/usr/ixm/IBM/xml4c-4_0

Leverage XML and XSL-based applications on z/OS and OS/390 7. Go to ISPF panel 3.4 and allocate 3 datasets with the followings attributes. The high-level qualifier might befor different from your userid if RACF® Design concepts Web services architectures on z/OSgrants, for example SYS1. For this exercise we continue with this qualifier. Implement solutions based on practical examples -SYS1.AIXMMOD1 45XML cylinders onservers 3390, Record Directory blocks:3, This IBM Redbook describes thewith use of on IBM runningformat:U, z/OS or OS/390, and how it Record length: 0, Block size: 32760 and Data set type: PDS can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. -SYS1.SIXMMOD1 with 45 cylinders on 3390, Record format:U, Directory blocks:3, length: 0, size: 32760 type: PDS In addition Record to an overview of Block XML concepts, the and firstData part set of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample This is used for the library files required to run the XML Parser for z/OS and OS/390, programs bundled with it. It describes how to use various tools that are part of the services C++ Edition. development environment, details the support for XML in Enterprise COBOL, and provides an overview of-SYS1.SIXMEXP the IBM WebSphere This material is of interest mainly to system withApplication 2 cylindersServer. on 3390, Record format: FB, Directory blocks:3, programmers and application programmers. Record length: 0, Block size: 12960 and Data set type: PDS The second This partdataset of the book is geared needsreferences of application developers is used by the more bindertotothe resolve to functions andand variables. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web andfollowing describesTSO in detail some service-based topologies for both legacy systems and 8. services, Execute the commands: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. ogetx '/usr/lpp/ixm/IBM/xml4c-4_0/lib/IBM' 'SYS1.AIXMMOD1'

(You can ignore the messages that the EXP and JCLIN subdirectories were not selected.)

ogetx '/usr/lpp/ixm/IBM/xml4c-4_0/lib/IBM/EXP' 'SYS1.SIXMEXP'

ogetx '/usr/lpp/ixm/IBM/xml4c-4_0/lib/IBM/JCLIN/HXML140.XML.JCLIN' 'SYS1.HXML140.XML.JCLIN'

Edit theoffile SYS1.HXML140.XML.JCLIN. This job will link-edit the load modules in the Table Contents SYS1.AIXMMOD1 dataset into SYS1.SIXMMOD1. Index

• •

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Watch out! Update the high-level qualifier on the dataset in the AIXMMOD1 and SIXMMOD1 DD statements if you are not using SYS1 as your HLQ.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher:SYS1.AIXMMOD1 IBM

now contains the files shown in Figure 2-4.

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Figure 2-4. SYS1.AIXMMOD1

Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes thecontains use of XML on IBM servers running z/OS or OS/390, and how it SYS1.SIXMEXP now the files shown in Figure 2-5. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

Figure 2-5. SYS1.SIXMEXP

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by 9. Submit the JCL to link-edit the modules into SYS1.SIXMMOD1. contract and service design.

V1R4 XSL Processor, C++ Edition Some of the steps to perform this task are very similar to the ones used to install the XML parser, C++ edition. Do not repeat unnecessary steps to avoid receiving error messages.

1. Download the IXMCX13B.tar file to a temporary directory on your workstation. 2.

1. 2. From the TSO command environment invoke the OS/390 shell with the command:

OMVS



Table of Contents

• 3. Go to the Index /usr/lpp/ixm/IBM directory. If this directory does not exist, create it using the XML on z/OS and commands: OS/390: Introduction to a Service-Oriented Architecture following By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

cd /usr/lpp/

Pub Date: June 11, 2003 ISBN:mkdir 0-7384-2615-6 ixm Pages: 264

cd ixm mkdir IBM cd IBM Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS 4. Upload the file IXMCX13B.tar /usr/lpp/ixm/IBM Implement solutions based onto practical examples in binary format (using FTP). After this, at the shell prompt USERID:/usr/lpp/ixm/IBM $, issue the ls command to check that This IBM IXMCX13B.tar Redbook describes is in this the directory. use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of 5. Make sure you are in thealong directory in detailed Step 2, then extract about files from the tar archive service-oriented architecture with defined practical, information XML. by entering the command: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services tarenvironment, -xvozf IXMCX13B.tar development details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Theand extract will create a LotusXSL-C_1_3 directory with subdirectories for samples, programmers application programmers. XML documents, and documentation in HTML format. Figure 2-6 shows part of the screen where we have the commanddevelopers to see the and files created The secondOS/390 part of shell the book is geared more to entered the needs ofls application in the LotusXSL-C_1_3 directory. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presentsFigure some important 2-6. design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

6. Issue the following command and then edit your .profile file with the oedit command and

6. add this line (or command):

export LIBPATH=/usr/lpp/ixm/IBM/LotusXSL-C_1_3



Table of Contents

• 7. If you have Indexalready allocated the SYS1.AIXMMOD1, SYS1.SIXMMOD and SYS1.SIXMEXP XML on z/OS and OS/390: Architecture datasets, there is Introduction no need toto doa Service-Oriented any more definitions. (If you

have not installed the V1R4 datasets as described in Step

XML parser C++ editionLastra, yet, Dipak then Hore, you David mustSanchez allocate the three By Franck Injey, Jose Luis Fernandez Carmona 7 of that installation procedure.) Publisher: IBM

8. Execute the following TSO commands: Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 Pages: 264

ogetx '/usr/lpp/ixm/IBM/LotusXSL-C_1_3/lib/IBM/IXMLC13' 'SYS1.AIXMMOD1'

Leverage XML and XSL-based applications on z/OS and OS/390 You can ignore the messages that the EXP and JCLIN subdirectories were not selected. Design concepts for Web services architectures on z/OS Now you can check that module IXMLC13 has been added to the SYS1.AIXMMOD1 dataset, so this based datasetonhas six members now. Implement solutions practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of ogetx architecture '/usr/lpp/ixm/IBM/LotusXSL-C_1_3/lib/IBM/EXP/IXMLC13X' service-oriented along with practical, detailed information about XML. In addition'SYS1.SIXMEXP' to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an You check that member IXMLC13X hasmaterial been added to the SYS1.SIXMEXP overview of thecan IBMalso WebSphere Application Server. This is of interest mainly to system dataset, so this dataset has four members now. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and ogetx Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the '/usr/lpp/ixm/IBM/LotusXSL-C_1_3/lib/IBM/JCLIN/HXML140.XSLT.JCLIN' reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by 'SYS1.HXML140.XSLT.JCLIN' contract and service design.

Edit the file SYS1.HXML140.XSLT.JCLIN. The job will link-edit the load modules from the SYS1.AIXMMOD1 dataset into SYS1.SIXMMOD1. Do not forget to update the high-level qualifier on the dataset names in the AIXMMOD1 and SIXMMOD1 DD statements if you are not using SYS1 as your highlevel qualifier. 9.

9. Submit the JCL to link-edit the modules into SYS1.SIXMMOD1.

XML Toolkit for z/OS and OS/390, Java Edition Table 2-6 lists the tar files downloaded to the workstation and the directories in which the files are placed in when you run the tar command. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Table 2-6. Toolkit C++ Edition tar files

Publisher: IBM

Component Pub Date: June 11, 2003

File name

ISBN: 0-7384-2615-6

XML Parser

Directory path

IXMJ400B.tar

/usr/lpp/ixm/IBM/xml4j-4_0

IXMJX23B.tar

/usr/lpp/ixm/IBM/LotusXSL-J_2_3

Pages: 264

XSLT Processor

V1R4 XML Parser, Java Edition To carry out a non-SMP/E installation of the V1R4 Java Edition, follow these steps: Leverage XML and XSL-based applications onXML z/OSParser, and OS/390 Design concepts for Web services architectures on z/OS 1. Download the file to a temporary directory on your workstation. Implement solutions based on practical examples 2. Upload the IXMJ400B.tar file to z/OS UNIX system services or OS/390 UNIX system This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it services, or to a temporary directory (tmp). This upload must be in BINARY format. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. 3. Issue the following commands. Watch out! The following mkdir commands may prompt with the message: EDC5117I File exists. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development details the support for XML in Enterprise COBOL, and provides an cd environment, /usr/lpp overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers andixm application programmers. mkdir The second part of the book is geared more to the needs of application developers and cd ixm architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and mkdir IBM new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM cd IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. tar -xvozf IXMJ400B.tar

4. Enter the ls command to see the new directory /usr/lpp/ixm/IBM/xml4j-4_0. This is the result of the tar command. This directory now contains new subdirectories for samples, XML documents, and documentation in HTML format, as shown in Figure 2-7.

Figure 2-7. /usr/lpp/ixm/IBM/xml4j-4_0



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

V1R4 XSL Processor, Java Edition

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

To carry out a non-SMP/E installation of the V1R4 XSL Processor, Java Edition: Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

1. Download the IXMJX23B.tar file to a temporary directory on your workstation. Pages: 264

2. Upload this IXMJX23B.tar file to z/OS UNIX System Services to a temporary directory (tmp). This upload must be in BINARY format. If you want to keep this tar file, choose a directory other than tmp. 3. Issue the following commands. Watch out! The following mkdir commands may prompt Leverage with the message: XML and XSL-based EDC5117I File applications exists. on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples cd /usr/lpp This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it mkdir ixm can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. cd ixm In additionmkdir to an overview of XML concepts, the first part of the book provides detailed IBM instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled cd IBM with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the-xvozf IBM WebSphere Application Server. This material is of interest mainly to system tar IXMJX23B.tar programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web describes to in detail some legacy systems and 4. services, Enter theand ls command see the new service-based directory that topologies is the resultforofboth the tar command: new applications. Finally, this book presents some important design concepts to enable /usr/lpp/ixm/IBM/LotusXSL-J_2_3. This directory now contains new subdirectoriesthe for reader to buildXML robust SOA-based solutions rapidly. in This includes an as introduction to the IBM samples, documents, and documentation HTML format, shown in Figure 2-8. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Figure 2-8. /usr/lpp/ixm/IBM/LotusXSL-J_2_3



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

2.4 Runtime considerations 2.4.1 XML parsers and code page conversion •

Table of Contents

Programs executing • Index on z/OS and OS/390 and having something to do with XML deserve special mention XML on z/OS because and OS/390: of theIntroduction code pagetoconsiderations a Service-Oriented onArchitecture z/OS and OS/390. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The character encoding scheme used in z/OS and OS/390 is EBCDIC. There are hundreds of different encoding systems for assigning each character a binary number, a combination of bits. Publisher: IBM encoding schemes are based on a single byte per character (SBCS) and others Some of these Pub Date: Juneper 11, character 2003 use two bytes (DBCS). All this encoding have been appearing as the computer ISBN: 0-7384-2615-6 science world has gone forward for the last 20 years. EBCDIC was used on the successful System/360™ Pages: 264 and survived for many years despite the almost universal adoption of ASCII elsewhere. EBCDIC and ASCII are both SBCSs. In this section we discuss some characteristics of the encoding schemes that are related to z/OS and OS/390 performance considerations. Leverage and XSL-based on z/OS and OS/390 is used in almost all ASCII, theXML American Standardapplications Code for Information Interchange, present-day computers. It is a character set that uses 7-bit units to convey some control Design concepts for Web services architectures on z/OS codes, space, numbers, most basic punctuation, and unaccented letters a-z and A-Z. It is the most important character set out there, despite its limitation. ASCII provides only 128 Implement solutions based on practical examples numeric values, and 33 of those are reserved for special functions. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it EBCDIC, the Extended Binary-Coded Decimal Interchange Code, is an encoding format can be extended to modernize legacy applications. It provides both a high-level discussion of using 8-bit units. It uses more or less the same characters as ASCII. It has non-contiguous service-oriented architecture along with practical, detailed information about XML. letter sequences, some ASCII characters do not exist in EBCDIC (for example, square brackets), EBCDIC characters that areofnot ASCII. As a consequence, the In addition to anand overview of has XMLsome concepts, the first part theinbook provides detailed translation between ASCII and EBCDIC was never officially completely defined. Many instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample different encoding schemes were created overvarious time totools fulfillthat the are needs Western programs bundled with it. It describes how to use partofofdifferent the services languages. These are the different "code pages." In z/OS and OS/390, the default is code development environment, details the support for XML in Enterprise COBOL, and provides an page Cp1047. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. ISO 8859-1. This standard is part of the ISO 8859 family of standards. It defines a character identified as more "Latinto alphabet No.of1," commonly called "ISO Latin 1," as The second partrepertoire of the book is geared the needs application developers and well as a character code for it. It is actually a direct superset of US-ASCII (the repertoire architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and contains the repertoire as some a subset and the code numbersfor forboth those characters that Web services, andASCII describes in detail service-based topologies legacy systems and are the same as in ASCII). The standard also specifies an encoding, which is similar to new applications. Finally, this book presents some important design concepts to enable the that of to ASCII: code number solutions is presented simply as includes one octet. 8859-1 contains various reader build each robust SOA-based rapidly. This anISO introduction to the IBM accented characters and other letters needed for writing the languages of Western Europe, Patterns for e-business, as well as XML-based message design, and the principles of design by andand some special characters. contract service design. This list of character encoding schemes could go on and on since there are hundreds of standards, as well as variations and modern versions of some. These encoding systems also conflict with one another. That is, two encodings can use the same number (binary number) for twodifferent characters, or use different numbers for the same character. Unicode provides a unique character set for every character, no matter what the platform, no matter what the program, no matter what the language. Unicode is a character encoding that provides more character properties and algorithm descriptions, while ISO standards define collections, subsets, and so on. Unicode has been designed for the best

interoperability with both ASCII and ISO 8859-1, the most widely used character sets, to make it easier for Unicode to be used in applications and protocols. The various Unicode encoding forms are optimized for a variety of different uses: - UTF-16, the default encoding form, maps a character code point to either one or two 16bit integers. •

Table of Contents

- UTF-8Index is a byte-based encoding that offers backwards compatibility with ASCII-based, XML onbyte-oriented z/OS and OS/390: Introduction to a Service-Oriented APIs and protocols. A character Architecture is stored with 1, 2, 3, or 4 bytes. •

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

- UTF-32 is the simplest but most memory-intensive encoding form; it uses one 32-bit integer per Unicode character.

Publisher: IBM

Pub-Date: June SCSU is11, an2003 encoding

scheme that provides a simple compression of Unicode text. It is designed ISBN: 0-7384-2615-6 only for input and output, not for internal use.

Pages: 264

When a Java XML Parser has to parse an XML document that is not already encoded in Unicode, the document must be converted from its encoding schema to Unicode. The XML parser will convert the document to Unicode before parsing. When the XML document is not encoded in UTF-8 or UTF-16, you must specify the correct encoding in the XML processing instructions by including an encoding statement like the following: Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it In the encoding of thelegacy XML document is neither UTF-8both or UTF-16, so the explicit of canthis be case extended to modernize applications. It provides a high-level discussion specification via the encoding attribute is done on the XML processing instruction. service-oriented architecture along with practical, detailed information about XML. From the point of overview view of aof C++ parser,the there alsoof support for provides internationalization. In addition to an XMLXML concepts, firstispart the book detailed XML4C (the base of XML Parser, C++ Edition) integrates the Xerces-C parser withthe IBM's instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running sample International Components for Unicode (ICU) and extends the number of encodings programs bundled with it. It describes how to use various tools that are part of the supported services to over 150. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system ICU enables you to write language-independent C and C++ code that is used on separate, programmers and application programmers. localized resources to get language-specific results. ICU supports many features, including language-sensitive text, dates, time, numbers, currency, and so on. ICUdevelopers provides conversion The second part of the book is geared more to the needs of application and basis: A converter is used to transform text from one encoding type to another. In the case and of architects. It provides a comprehensive introduction to service-oriented architecture (SOA) Unicode, ICU transforms text from one encoding codepage to Unicode and back. An encoding is a Web services, and describes in detail some service-based topologies for both legacy systems and mapping from a given character set definition to the actual bits used to represent the data. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM The XML Parser for z/OS and OS/390, C++ Edition V1R4 has been tested with ICU version 2.0.2. Patterns for e-business, as well as XML-based message design, and the principles of design by The required ICU level is packaged with the corresponding parser and Xalan level. For the XML contract and service design. Toolkit for z/OS and OS/390 V1R4, all of the supported encodings are listed in the file shipped with ICU called "convrtrs.txt" that you can find in the HFS. On z/OS or OS/390, avoiding conversion prior to calling the XML parser is the best approach, whenever possible. If you do a conversion beforehand, you may be doing the conversion twice and wasting CPU. Furthermore, performing a conversion prior to calling the parser might create a discrepancy between the resulting data encoding and the encoding attribute in the processing instruction of the document, provoking the parser to produce an unpredictable result.

2.4.2 Multiple parser initialization A considerable amount of CPU time is used for parser initialization. You should, therefore, avoid instantiating a new parser every time you parse. Instead, create the parser once, and reuse the parser instance. From the point of view of Java programs, this is a programmer's task. It is a very good idea to maintain a pool of parsers that can serve multiple users simultaneously. But the implementation of object pooling is a Java program itself. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

2.4.3 XML document recommendations

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Validation is a process that should be avoided when possible. CPU time increases significantly Publisher: IBM is done. If you decide to turn validation off, XML documents must not include when validation Pub Date: June 11, 2003 the DOCTYPE clause because this version of the parser always incurs the cost of reading the DTD ISBN: 0-7384-2615-6 if this clause is included in the document, even when not validating. Pages: 264

If you use DTD validation, try not to assign default values for attributes. The process is a much slower one. We have presented in detail the advantages of schema validation versus DTD validation. Schemas provide extensive capability for validation. However, DTD validation is more efficient than schemas when performing equivalent validating tasks. Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 3. XML Toolkit samples In this chapter we discuss the samples provided with the XML Toolkit for z/OS and OS/390 V1R4. We provide short descriptions of the samples and identify the configuration steps necessary to run them. Table of Contents • •

Index

The following samples are discussed:

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Java samples: Publisher: IBM

DOM, SAX, and Socket samples

Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 C/C++ XML parser samples, including running them in z/OS or OS/390 UNIX System Pages: 264environments as well as in traditional z/OS or OS/390 environments Services

C/C++ XSLT processor samples, including running the samples in z/OS or OS/390 UNIX System Services as well as in traditional z/OS or OS/390 environments

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

3.1 Java samples In this section we identify the Java samples provided with the XML Toolkit for z/OS and OS/390, and we demonstrate the features of the XML Parser for z/OS and OS/390, using SAX and DOM APIs.

• Table of Contents To find the samples examine the path in which you have installed the Toolkit, commonly /usr/lpp/ixm.Loca • the directoryIndex IBM/xml4j-4_0/samples; this is where you will find the Java samples provided with the Toolk XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

In this document, we assume that the installation directory is /usr/lpp/ixm. If this is not the case for your By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona installation, adjust accordingly. IBM ThePublisher: samples that come with the toolkit are the following: Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

DOM Samples from package 'dom' Pages: 264 Counter

Displays the time and count of elements, attributes, spaces, and characters in an XML file

GetElementsByTagName Parses an XML document searching for specific elements by name Leverage XML and XSL-based applications on z/OS and OS/390 Writer Parses an XML document and prints it Design concepts for Web services architectures on z/OS ASBuilder Preparses XML schema documents and validates instance documents against preparsed schema grammars Implement solutions based on practical examples SAXRedbook Samples describes from package 'sax' This IBM the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Counter Displays the time and count of elements, attributes, spaces, and In addition to an overviewcharacters of XML concepts, thefile. first part of the book provides detailed in an XML instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample DocumentTracer a trace events for files parsed programs bundled with it.Provides It describes howoftoSAX2 use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Writer Parses an XML document and prints it overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Socket Samples from package 'socket'

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and DelayedInput Delays the some input to the SAX parser to simulate reading data from aand Web services, and describes in detail service-based topologies for both legacy systems socket. new applications. Finally, this book presents some important design concepts to enable the readerKeepSocketOpen to build robust SOA-based solutions rapidly. includes anon introduction to athe IBM Wraps both the input and This output stream both ends of socket Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. We are going to examine some representative cases of these samples. All Java-related contents are in dire IBM/xml4j-4_0. For the purpose of this discussion, we assume that you installed the samples in the same directory.

3.1.1 Setting up the samples Perform the following steps to set up the appropriate environment configuration:

1.

1. Go to the shell prompt in TSO OMVS, and edit your personal profile file:

oedit $HOME/.profile

• •

Table of Contents

$HOM E is the variable containing your user home path, for example, /u/david. Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By2. Franck Add Injey, theJose following Luis Fernandez lines:Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003

export XERCESJROOT=/usr/lpp/ixm/IBM/xml4j-4_0

ISBN: 0-7384-2615-6 Pages: 264

Use the full path to jar files where all needed classes for XML parsing are located.

CLASSPATH=.:$XERCESJROOT/xercesImpl.jar:$CLASSPATH Leverage XML and XSL-based applications on z/OS and OS/390 CLASSPATH=$XERCESJROOT/xmlParserAPIs.jar:$CLASSPATH Design concepts for Web services architectures on z/OS CLASSPATH=$XERCESJROOT/xercesSamples.jar:$CLASSPATH Implement solutions based on practical examples This IBM Redbook the use of XML on IBM servers running z/OS or OS/390, and how it export describes CLASSPATH can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

In additionIttoisan overview XML concepts, the your first part of the provides so detailed a very good of practice to organize .profile file book into sections, you can dedicate a sectio instructions for installing the XMLand Toolkit for contents. z/OS and OS/390 V1.4 and running the sample Java, its CLASSPATH, related programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an 3. Exit of and re-enter the shell, so that updates on your .profile file take effect.mainly You can do this with t overview the IBM WebSphere Application Server. This material is of interest to also system /bin/sh and -L command. programmers application programmers.

At point, youofhave all the classes onneeds your CLASSPATH, you can invoke Thethis second part the book isnecessary geared more to the of applicationsodevelopers and them in a native w from the shell prompt. The xerces parser classes are in xerceslmpl.jar; the APIs implemented by the parse architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and in xmlParserAPIs.jar. To determine if your definitions are correct, you can check the XML4J version Web services, and describes in detail some service-based topologies for both legacy systems and in use w following: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by From shell prompt, type: contract and service design. java org.apache.xerces.impl.Version

If it is correct, JVM can find this class using your CLASSPATH. It loads the class and returns the messa

XML4J 4.0.2

This indicates the XML4J level that is in use.

We need some more settings to use Java XSLT Processor for z/OS and OS/390. We need to add xalan.jar classes, the processor class files xml-apis.jar containing the standard APIs implemented by the parser, and bsf.jar, required to test Xalan-Java extensions. So, if you want to use a Java XSLT Processor, enter the following commands: •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

export XALANJROOT=/usr/lpp/ixm/IBM/LotusXSL-J_2_3 By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona export CLASSPATH=$CLASSPATH:$XALANJROOT/bin/bsf.jar Publisher: IBM

Pub Date: June 11, 2003 export CLASSPATH=$CLASSPATH:$XALANJROOT/bin/xml-apis.jar ISBN: 0-7384-2615-6 Pages: 264 export CLASSPATH=$CLASSPATH:$XALANJROOT/bin/xalan.jar

Output for some samples is not displayable because the samples use UTF-8 format, and UNIX System Serv for z/OS or OS/390 doesn't support it. In those cases, you can redirect output to a file, and then you can display this file.XML Redirections in UNIX can be done the form command1 > output.txt for standard outp Leverage and XSL-based applications onin z/OS and OS/390 or command1 2> errors.txt for standard error output. Design concepts for Web services architectures on z/OS solutions based on practical examples 3.1.2Implement DOM samples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. ASBuilder

In addition to an overview of XML concepts, the first part of the book provides detailed The ASBuilder pre-parses schema documents and validates documents instructions forsample installing the XML XML Toolkit for z/OS and OS/390 V1.4 and instance running the sample against pre-pa schema grammars. It can be used to check if your new schemas are well formed, and to check if your new programs bundled with it. It describes how to use various tools that are part of the services documents are valid for these schemas. You can think about it as a DOM error handler skeleton more than development environment, details the support for XML in Enterprise COBOL, and provides an DOM parser: you can use it as a basis for your new error handlers, and it shows you the features overview of the IBM WebSphere Application Server. This material is of interest mainly to system you need activate to do and XML application validating with schemas. programmers programmers.

You will probably to update the original some of point. So, to preserve it, and we have copied the tool The second part ofwant the book is geared more tofile theatneeds application developers sample from its original directory to a new one created for this purpose. We did this the following architects. It provides a comprehensive introduction to service-oriented architecture with (SOA) and sequence of commands: Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by mkdir /u/david/samples (where david was our userid) contract and service design. mkdir /u/david/samples/java mkdir /u/david/samples/java/dom cp /usr/lpp/ixm/IBM/xml4j-4_0/samples/dom/ASBuilder.java /u/david/samples/java/dom/ASBuilder.java

We can now work with our new /u/david/samples/java/dom/ASBuilder.java file, making changes to the sou code while still preserving the original version. The best way to do the updates is to rename the Java class because in your CLASSPATH you have an ASBuilder class already, and it is a good idea to preserve it. Anyw here we are going to work with the original version of the ASBuilder class. We can test whether our CLASS variable is correct and has this class invoking it without any parameter. We do this by entering the followin command: •

Table of Contents



Index java dom.ASBuilder XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

If we see ASBuilder source, we can find a package declaration that points to dom, so this is the reason we Publisher: IBM to enter dom.ASBuilder. The result is shown in Figure 3-1. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Figure 3-1. dom.ASBuilder

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing XML Toolkit for z/OS OS/390 V1.4 and running the sample With parameter -f you canthe activate a feature calledand http://apache.org/xml/features/validation/sche programs bundled with it. It describes how to use various tools that are the services full-checking; this is the special URI for the feature. When turned on, part this of feature enables Schema gram development environment, details the support for XML in Enterprise COBOL, and provides an the checkin checking for additional errors that are time-consuming or memory-intensive. It does not affect overview of the IBM WebSphere Application Server. This material is of interest mainly to system level performed on document instances that use Schema grammars. Parameter -F turns off this checking le programmers application programmers. By default thisand feature is off since it affects performance.

The part for of the booktwo is geared more to the needs of application and This second class waits at least parameters. If you write fewer than twodevelopers parameters, the program shows y architects. It provides a comprehensive introduction to service-oriented architecture andDOM parser the previous screen again. We are going to make a file with a sample XML Schema to(SOA) test this Web services, and describes in detail some service-based topologies for both legacy systems and a new fi we can use it as the second parameter. To do this, we create a different directory where we create new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract/u/david/samples/java/schemas and service design. mkdir oedit /u/david/samples/java/schemas/zOSXML.xsd

in this file we have entered the contents shown in Example 3-1.

Example 3-1. our sample XML Schema





XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher:

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264



Leverage Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index



XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM Pub Date: June 11, 2003



ISBN: 0-7384-2615-6 Pages: 264



Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical,minOccurs="0" detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents describing some important design concepts enable thecontents. First, This is a schema to validate XML documents a list of redbooks with to XML-related reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM validate this schema to determine if it is correct by issuing the command: Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. java dom.ASBuilder -a /u/david/samples/java/schemas/JavaXML.xsd

It is very useful to pre-parse our schemas before we put them in a production environment. If you browse ASBuilder.java file, you are going to find the section shown in Example 3-2 in the main method. For simpli we have omitted non-relevant parts of the code from this example.

Example 3-2. ASBuilder.java

public static void main(String argv[]) {

• •

// tooTable feeofparameters Contents Index

if (argv.length < 2) {

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona printUsage(); Publisher:System.exit(1); IBM Pub Date: June 11, 2003

}ISBN: 0-7384-2615-6 Pages: 264

// get DOM implementation DOMImplementationAS domImpl =

(DOMImplementationAS)DOMImplementationImpl.getDOMImplementation(); Leverage XML applications z/OS handler and OS/390 // create a and new XSL-based parser, and set theon error Design concepts for Web services architectures on z/OS DOMASBuilder parser = domImpl.createDOMASBuilder(); Implement solutions based on practical examples parser.setErrorHandler(new ASBuilder()); This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. .................................. In addition to an overview of XML concepts, the first part of the book provides detailed ASModel asmodel = null; instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services for (i = 0; environment, i < asfiles.size(); { for XML in Enterprise COBOL, and provides an development details the i++) support overview of the IBM WebSphere Application Server. This material is of interest mainly to system asmodel and = parser.parseASURI((String)asfiles.elementAt(i) programmers application programmers. The second parser.setAbstractSchema(asmodel); part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and } new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by In this code, a variable of type DOMASBuilder, declared at the beginning of this method. Its contract and parser serviceisdesign. declaration is a little complex, because it uses the createDOMASBuilder() method of object DOMImplementationAS to obtain an instance of this parser.

We use this type of declaration many times in parsers, because it gives a level of transparency that preven as developers from having to update our code if DOMASBuilder changes its implementation (that is, we cha the provider).

With getDOMImplementation() we get the current implementation in use for DOM parser (Apache implementation) and we store it in the domImpl variable. Next we use this variable (class object) to invoke method createDOMASBuilder(); this creates a new parser instance. Once we have parser pointing to our ne

DOM parser instance, we call its setErrorHandler() method, giving our own ASBuilder() class as parameter our class is going to be a DOM parser error handler. You can see the following line at the beginning of the c

public class ASBuilder implements DOMErrorHandler { ...... •

Table of Contents

• Index that the class is going to implement generic DOMErrorHandler, which was our purpose. This line indicates XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Inasfiles we have a vector with URIs entered as parameters. In the previous example we are parsing these By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona URIs. We are using as our schema the first URI (with parameter -a), it is also going to be the first element the Publisher: vector. IBM

Pub Date: June 11, 2003 If all the previous steps are correct, you are not going to have any answer after this command, because if ISBN: 0-7384-2615-6 check ASBuilder source code, when you only enter the URI for the schema, it parses this schema Pages: 264 (parser.setAbstractSchema(asmodel)), and if there are no errors, the error handler (method handleError() this java class) is not going to be invoked.

If you make a mistake on the source file of the schema, you can see the output handled by method handleError(). (Try to change one character, to eliminate an element, or the like, and run the sample again This method is where we control different types of errors: Warning, Error and FatalError. Here all error typ stop the process, but commonly Warning errors on only would a message and the process continues. Leverage XML and XSL-based applications z/OS andshow OS/390 Anyway, remember that this is only an error handler skeleton, and that the final decision about the way of handling errors is up to Design concepts foryou. Web services architectures on z/OS

Now we validate solutions an XML instance with the schema shown in Example 3-1. For this purpose, we created the Implement based on practical examples document shown in Example 3-3, compliant with our schema. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended modernize legacy applications. It provides both a high-level discussion of Example 3-3.tocontents.xml service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and

Java and XML

Introduction What Is It? How Do I Use It? • •

Table of Contents

Why Should I Use It? Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

What's Next?

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Pages: 264

Creating XML An XML Document The Header Leverage XML and XSL-based applications on z/OS and OS/390 The Content Design concepts for Web services architectures on z/OS What's Next? Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. focus="Java"> In Error Handlers new /u/david/docs/output.txt This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. After running this command, the output you should see (standard output) is: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services ../xml/contents.xml: 5887/6=981;15;1 msfor (26 elems, 21 attrs, 0 spaces, 386 an development environment, details the support XML in Enterprise COBOL, and provides overview of the IBM WebSphere Application Server. This material is of interest mainly to system chars) programmers and application programmers.

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and But are error messagesinondetail /u/david/docs/output.txt, so browsefor it with obrowse command, and y Webthere services, and describes some service-based topologies both the legacy systems and will see the following text: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. [Error] contents.xml:6:96: cvc-elt.1: Cannot find the declaration of element 'zOSXML:Heading'.

In the lab, this was only the first of many messages we got. It was telling us that it was looking for the zOSXML:Heading element at the beginning of our XML document, and it could not find it.

3.1.3 SAX samples DocumentTracer

This program makes a trace of the XML document; it is a good starting point to make your own parser bec you can use it as a • Table ofskeleton. Contents Again, the recommendation is to copy the original source file /usr/lpp/ixm/IBM/xml4j-4_0/samples/sax/DocumentTracer to /u/david/samples/java/sax, after creating a • Index directory sax for these samples. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

First, test whether the class is accessible by entering the command: Publisher: IBM Pub Date: June 11, 2003

java sax.DocumentTracer ISBN: 0-7384-2615-6 Pages: 264

The result is shown in Figure 3-3.

Figure 3-3. java sax.DocumentTracer Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Use parameter -p name to specify the SAX parser implementation in use. The default value is Patterns for e-business, as well as XML-based message design, and the principles of design by org.apache.xerces.parsers.SAXParser. It is the most popular implementation but you could choose another contract and service design. this case, the implementation is loaded with the following instructions:

parser = XMLReaderFactory.createXMLReader(parserName); ..................................... Parser sax1Parser = ParserFactory.makeParser(parserName); parser = new ParserAdapter(sax1Parser);

.....................................

XMLReaderFactory is a class in the org.xml.sax.helpers package that defines a method createXMLReader( instantiate this implementation.

• Table of Contents XMLReaderFactory contains static methods to create an XML reader based on the system property org.xml.sax.driver • Index as the full name for the XML Reader Java class. The parserName is a variable contain the name XML on z/OS ofand theOS/390: implementation, Introduction org.apache.xerces.parsers. to a Service-Oriented Architecture SAXParser is the default value, and XMLReaderFactory is going to try to instantiate it. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

ParserFactory is a deprecated class which dynamically loads SAX 1.0 parsers. This class is designed to w IBM withPublisher: SAX 1.0 implementations. The reason to have it here is that this part of the code is going to be execut Pub Date: June 11,exception 2003 only if we get an instantiating with XMLReaderFactory (SAX 2), then we can test if the problem i ISBN: 0-7384-2615-6 our parser is a SAX 1.0 parser. In this case we show a warning advising about this (some features are not available Pages: in264 a SAX 1 parser), and the process continues instantiating with ParserAdapter (the class that inv the SAX 1 parser). So the last two lines are executed only if SAX 2 instantiating fails. The four sets of parameters -n and -N, -v and -V, -s and -S, -f and -F, have the same meaning that we discussed for the DOM samples "Counter" on page 58: -n and -N turn namespace processing on and off Leverage XML and XSL-based applications on z/OS and OS/390 -v and -V turn the validation feature on and off Design concepts for Web services architectures on z/OS -s and -S turn schema validation on and off Implement solutions based on practical examples -f and -F turn schema full checking on and off This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can extended modernize applications. It provides both a high-level discussion of One be execution of to this sample islegacy the following: service-oriented architecture along with practical, detailed information about XML.

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the -v XML-sToolkit for z/OS and OS/390 V1.4 and running the sample java sax.DocumentTracer ../xml/contents.xml > /u/david/docs/output.txt programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. If we do an obrowse to file output.txt, we see the result shown in Example 3-4. We only show here a part o output, because it is very long. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Example 3-4. sax.DocumentTracer output Web services, and java describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by setDocumentLocator(locator=org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@81ad6 contract and service design. startDocument() comment(text=" Java and XML ") startPrefixMapping(prefix="zOSXML",uri="http://www.redbooks.ibm.com/") startPrefixMapping(prefix="xsi",uri="http://www.w3.org/2001/XMLSchema-instance")

startElement(uri="http://www.redbooks.ibm.com/",localName="Book",qname="zOSXML:Book" ,attributes={{uri="h ttp://www.w3.org/2001/XMLSchema-instance",localName="schemaLocation",qname="xsi :schemaLocation",type="CD •

Table of Contents

ATA",value="http://www.redbooks.ibm.com/ /u/david/samples/java/schemas/zOSXML.xsd"}}) • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

characters(text="\n\n ")

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

startElement(uri="http://www.redbooks.ibm.com/",localName="Title",qname="zOSXML:Title" Publisher: IBM Pub Date: June 11, 2003 ,attributes={}) ISBN: 0-7384-2615-6

characters(text="Java and XML") Pages: 264 endElement(uri="http://www.redbooks.ibm.com/",localName="Title",qname="zOSXML:Title") characters(text="\n ") startElement(uri="http://www.redbooks.ibm.com/",localName="Contents",qname="zOSXML Leverage XML and XSL-based applications on z/OS and OS/390 :Contents",attributes= Design concepts for Web services architectures on z/OS {}) Implement solutions based on practical examples Thischaracters(text="\n\n IBM Redbook describes the") use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

In addition to an overview of XML concepts, the first part of the book provides detailed startElement(uri="http://www.redbooks.ibm.com/",localName="Chapter",qname="zOSXML:Chapter instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services ,attributes={{ development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system uri="",localName="focus",qname="focus",type="CDATA",value="XML"}}) programmers and application programmers. characters(text="\n ") The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the startElement(uri="http://www.redbooks.ibm.com/",localName="Heading",qname="zOSXML:Heading reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by ,attributes={} contract and service design. ) characters(text="Introduction")

endElement(uri="http://www.redbooks.ibm.com/",localName="Heading",qname="zOSXML:Headi characters(text="\n

")

................................................................

As you see, it is a trace of the SAX 2 API's flow, so you can use this parser as a skeleton to make your own parser. The only thing you have to do is replace the code for the APIs you don't need with your own code.

3.1.4 Socket samples •

Table of Contents

These samples show the possibility of making an XML parser that uses a socket stream for the transmission • Index XMLon documents. The problem is that XML documents XML z/OS and OS/390: Introduction to a because Service-Oriented Architecturehave no explicit end-of-document, you have close the socket end point in your code. The sample shows you how to solve this problem. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

KeepSocketOpen

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

This sample tries to make a parser receive multiple XML documents by the same open socket. This present Pages: 264 problem because the parser could be receiving many root elements (from the many documents it receives) this is forbidden in XML. The sample is also going to use this socket to receive different types of data; the problem with this is that buffers the input stream in specific block sizes, and because of this it could read beyond the end of the dat First we test that this class is found applications by invoking on it: z/OS and OS/390 Leverage XML and XSL-based Design concepts for Web services architectures on z/OS java Implement socket.KeepOpenSocket solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented along with practical, detailed information about XML. The answer mustarchitecture be:

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs usage: java bundled socket.KeepSocketOpen with it. It describes how file(s) to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. This program creates two threads: a server and a client. These two threads communicate between themse Theasecond is geared more to the needs of application developers and by specificpart portofinthe thebook localhost address. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and The contacts the server, thesome server responds bytopologies sending the documents specified as Webclient services, and describes in and detail service-based forclient both XML legacy systems and parameters. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM For testing create an XML documentmessage called content2.xml. documentofisdesign a copyby of the one in Patterns forpurposes, e-business, as well as XML-based design, and This the principles Example 3-3 on page 56. In this second document, change all zOSXML references to zOS2 strings, so you contract and service design. distinguish between the documents. Do not refer to an external DTD document because the client will not b able to access it. Once you have prepared your two documents, run the following command:

java socket.KeepSocketOpen ../xml/contents.xml ../xml/content2.xml

The response should be like that shown in Figure 3-4.

Figure 3-4. socket.KeepSocketOpen output



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS In the main() section of the source file you will see the following declaration: Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of // constants service-oriented architecture along with practical, detailed information about XML. final int port = 6789; In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample ....................................... programs bundled with it. It describes how to use various tools that are part of the services development environment, if (argv.length == 0) {details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. System.out.println("usage: java socket.KeepSocketOpen file(s The second part of the book is geared more to the needs of application developers and System.exit(1); architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and } new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based // create server and client solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Server server = new Server(port, argv); Client client = new Client("localhost", port);

Here, we declare 6789 as the port to use, and create an instance for Server and another for Client. The ser wraps each document in a socket.io.WrappedOutputStream. This prevents problems with the length of th message, and the client reads from a socket.io.WrappedInputStream. The server has a loop for the num of bytes resulting from the files you give it as parameters, and the client parses them as they come to it.

3.2 C/C++ samples In this section we introduce the setup of C/C++ samples, and we describe how to run a representative sample using XSLT processing. • Contents The samples Table that of come with the toolkit are the following: •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

SAXCount Counts elements, spaces, By Franck Injey, Jose Luis Fernandez Lastra,the Dipak Hore, Davidattributes, Sanchez Carmona SAX2Count

and characters in an XML file

Same as SAXCount, except uses SAX 2.0

Publisher: IBM

SAXPrint Pub Date: June

11, 2003

ISBN: 0-7384-2615-6 SAX2Print Pages: 264

Parses an XML file and prints it out Same as SAXPrint, except uses SAX 2.0

DOMCount

Counts the elements, attributes, spaces, and characters in an XML file

IDOMCount

Counts the elements, attributes, spaces and characters in an XML file (uses experimental IDOM API)

DOMPrint

Parses an XML file and prints it out

Leverage XML and XSL-based z/OSitand IDOMPrint Parses an applications XML file andon prints out OS/390 (uses experimental IDOM API) Design concepts for Web services on z/OS MemParse Parses XML inarchitectures a memory buffer, outputting the number of elements and attributes. Implement solutions based on practical examples Redirect Redirects the input stream for external entities This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it PParse Demonstrates progressive parsing can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, information aboutinput XML. StdInParse Demonstrates streamingdetailed XML data from standard EnumVal to enumerate markup declarations indetailed a DTD validator In addition to an overviewShows of XMLhow concepts, the firstthe part of the book provides instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample SEnumVal Shows how to enumerate the markup declarations in a Schema validator programs bundled with it. It describes how to use various tools that are part of the services development environment,Creates detailsathe support for XML in from Enterprise COBOL, and provides an CreateDOMDocument DOM tree in memory scratch overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

3.2.1 Setting up the samples

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Setting up the C++ XML samples for z/OS or important OS/390 UNIX System Services new applications. Finally, this book presents some design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based design, and the principles of design by to do To run Toolkit C/C++ parser samples on UNIXmessage System Services for z/OS or OS/390, you need contract and service design. following: Ensure that the SCEERUN Language Environment run-time library can be found in the correct searching sequence z/OS or OS/390 follows to find modules. In your system this library is called .SCEERUN (check the first hlq in your installation); add it to the LNKLSTxx member in use. You need a GNU gmake utility to build parser samples. From a browser, go to following URL: http://www.ibm.com/servers/eserver/zseries/zos/unix/redbook/index.html Find the gmake link and click it. See Figure 3-5.

Figure 3-5. Obtain gmake tool



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Click the binary link. This link will open a message window in which you have to select "Save Leverage and XSL-based applications on z/OS and OS/390 this file toXML disk." Design concepts for Web services architectures on z/OS

Figure 3-6. Download gmake tool

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Select a directory on your PC into which the compressed file will be downloaded. For example, you could use C:\temp. The name of the file is of type gmake-bin.pax.Z. Once you have downloaded the file to your PC, open a z/OS or OS/390 UNIX System Services shell session. Then, create a directory called /usr/local, or another name of your choice.

mkdir /usr/local

This directory should be on a different HFS, so it will not be replaced on subsequent maintenance or service fixes. You can create this new HFS with the ISHELL: •

Table of Contents

• a. From TSO Index enter command TSO ISHELL to get into ISHELL application. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

b. From ISHELL, go to pop-up menu bar and select File System – New. Enter name of your HFS dataset, primary and secondary space assignment, and if it is necessary, specify storage class, management class, and data class (check the SMS requirements for your installation).

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Figure 3-7. Mount a file system

Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an point overview of new XML HFS concepts, part of(or thethe book provides detailed The mount of this shouldthe befirst /usr/local directory you created). You can instructions installing XML ToolkitSelect for z/OS and OS/390 and running the sample mount for your new HFSthe from ISHELL. File System ->V1.4 Mount. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Figure 3-8. Mount a file system overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Remember to update your BPXPRMxx UNIX parameter member in SYS1.PARMLIB. For example, add:

MOUNT FILESYSTEM('OMVS.&SYSNAME..GMAKE') •

MOUNTPOINT('/usr/local') Table of Contents



Index

TYPE(HFS)

MODE(RDWR)

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher:Now IBM

you have a new directory /usr/local from which it hangs an independent HFS

Pub Date:(OMVS.&SYSNAME..GMAKE). June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

c. Next, we are going to do a binary file transfer from C:\temp\gmake.bin.pax.Z file on your workstation to the new /usr/local directory on z/OS. From a Windows command prompt, enter the following commands:

Leverage ftp>XML cd and /usr/local XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS ftp> lcd C:\temp Implement solutions based on practical examples ftp> bin This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it ftp> put gmake.bin.pax.Z can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed And, from the z/OS shell prompt, enter the following command: instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the-rzf IBM WebSphere Application Server. This material is of interest mainly to system pax gmake.bin.pax.Z programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. After It provides a comprehensive introduction to service-oriented architecture (SOA) and executing this command, you have following subdirectories in directory /usr/local: Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by ./bin contract and service design. ./info ./share ./man

From the shell prompt, enter the commands:

export PATH=$PATH:/usr/local/bin export XERCESCROOT=/usr/lpp/ixm/IBM/xml4c-4_0/samples unset _CXX_CXXSUFFIX • •

export Table CXX=c++ of Contents Index

export CXXFLAGS=-2 XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: Then, IBM enter

the commands to configure the samples environment:

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

cd $XERCESCROOT/samples Pages: 264 configure

Wait until it finishes. Check output messages for errors. From this point, you have created Leverage XML and XSL-based applications on z/OS and OS/390 Makefile files for C/C++ parser samples. Design concepts for Web services architectures on z/OS Once you have finished the configuration, you have to enter the following commands. Be careful Implement solutions based on practical examples with permission bits; if any file is not accessible, compilation is going to fail: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of export _CXX_CXXSUFFIX=cpp service-oriented architecture along with practical, detailed information about XML. exportto _CXX_CCMODE=1 In addition an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample export _CXX_CVERSION="0x220a0000" programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. (You have to enter this command only if you are using a C/C++ compiler higher than The secondV2R10.) part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the gmake reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Wait until all compilations have finished. It is possible to have four warning messages, and we had a problem with permission bits and owner on directories and files. Check all these points before you look for other reasons. To run parser samples, you need some more adjustments:

export LIBPATH=$XERCESCROOT/lib:$LIBPATH export ICU_DATA=$XERCESCROOT/lib

You could add these lines to your .profile file. These lines are needed to bind with libxercesc1_6_0.dll, libxerces-c1_6_0.x, libicuuc.20.2.dll, libicudt20e.dll, and libicudt20e_390.dll. You are now ready to run the parser samples. The SAXCount program is equivalent to the program with the same name we saw in the Java section. To run it, enter the following: • •

Table of Contents Index cd $XERCESCROOT/bin

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

SAXCount By Franck Injey, Jose$XERCESCROOT/samples/data/personal.xml Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM Pub Date: June 11, 2003 personal.xml is an

XML document we used for testing. The response you receive should be ISBN: 0-7384-2615-6 similar to Figure 3-9. Pages: 264

Figure 3-9. SAXCount output

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

Setting C/C++describes XML samples z/OS OS/390 This IBM up Redbook the use for of XML onor IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of In addition to thearchitecture setup described the practical, previous section, the following steps to be able to service-oriented alonginwith detailedperform information about XML. run z/OS or OS/390 samples: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services 1. Allocate environment, a PDS datasetdetails to contain all necessary modules. The dataset weand allocated had development the support for XML in Enterprise COBOL, provides anthe attributes identified in Figure 3-10. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

Figure 3-10. Partitioned dataset attributes The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

2. Open a shell session (TSO OMVS) and enter the following commands:

Leverage XMLXERCESCROOT=/usr/lpp/ixm/IBM/xml4c-4_0 and XSL-based applications on z/OS and OS/390 export Design concepts for Web services architectures on z/OS Implement solutions based on practical examples Remember that you can add this line to your .profile, so you do not need to enter this command again. the use of XML on IBM servers running z/OS or OS/390, and how it This IBM Redbook describes can be extended to modernize legacy applications. It provides both a high-level discussion of Adjust the high level qualifiers, and file names, depending on the options selected in your service-oriented architecture along with practical, detailed information about XML. installation of the Toolkit. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services export LOADMOD=DAVID.SAMPLES.LOAD development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system export LOADEXP=IXM.SIXMEXP programmers and application programmers. export OS390BATCH=1 The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and unset _CXX_CXXSUFFIX Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the export CXX=c++ reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by export CXXFLAGS=-2 contract and service design. cd $XERCESCROOT/samples configure

These are the Makefiles needed to compile the samples. Wait until the process ends, and check for error messages. If everything is correct, you will see the messages shown in Example 3-5.

Example 3-5. Makefile messages

creating SAXCount/Makefile creating SAX2Count/Makefile • •

Table of Contents

creating DOMCount/Makefile Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

creating IDOMCount/Makefile

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

creating SAXPrint/Makefile Publisher: IBM Pub Date:creating June 11, 2003 SAX2Print/Makefile ISBN: 0-7384-2615-6 Pages:creating 264

DOMPrint/Makefile

creating IDOMPrint/Makefile creating MemParse/Makefile creating Redirect/Makefile Leverage XML and XSL-based applications on z/OS and OS/390 creating Design conceptsPParse/Makefile for Web services architectures on z/OS Implement creating solutions StdInParse/Makefile based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it creating EnumVal/Makefile can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. creating SEnumVal/Makefile In additioncreating to an overview of XML concepts, the first part of the book provides detailed CreateDOMDocument/Makefile instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. 3. Create sample modules using the gmake utility: The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, export and describes _CXX_CXXSUFFIX=cpp in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build export robust _CXX_XSUFFIX_HOST=SIXMEXP SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and export service _CXX_CCMODE=1 design. export _CXX_CVERSION="0x220a0000"

(You have to enter this command only if you are using a C/C++ compiler higher than V2R10.)

gmake

You can expect a return code 4. 4. To run parser samples in a z/OS or OS/390 environment, you can put the library SIXM MOD1 of Contents with theTable modules you generated in the installation in LNKLST, or you can put it in STEPLIB in the • Index JCL. We used the following JCL: •

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

//TOOLKIT1 JOB (POK,999),DAVID,MSGLEVEL=(1,1),MSGCLASS=X,

Publisher: IBM

Pub Date:// June CLASS=A,NOTIFY=&SYSUID 11, 2003 ISBN: 0-7384-2615-6 Pages://* 264

//********************************************************************* //RUNIVP EXEC PGM=SAXCOUNT //STEPLIB DSN=FRANCK.SIXMMOD1,DISP=SHR Leverage XML andDDXSL-based applications on z/OS and OS/390 //concepts for DD Web DSN=DAVID.SAMPLES.LOAD,DISP=SHR Design services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use ofisXML on in IBM servers running z/OS or OS/390, and how it The output from execution shown Figure 3-11. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML.

Figure 3-11. SAXCOUNT output

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

In the previous example, we could pass the document to parse as a parameter. The JCL would be as follows:

//TOOLKIT1 JOB (POK,999),DAVID,MSGLEVEL=(1,1),MSGCLASS=X,

//

CLASS=A,NOTIFY=&SYSUID

//* //********************************************************************* //RUNIVP EXEC PGM=SAXCOUNT, • •

Table of Contents

//

Index

PARM='//usr/lpp/ixm/IBM/xml4j-4_0/data/personal.xml'

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

//STEPLIB DD DSN=FRANCK.SIXMMOD1,DISP=SHR

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

//

DD DSN=DAVID.SAMPLES.LOAD,DISP=SHR

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Note that in the path of the document we passed in the parameter line, we included an extra slash at the beginning; if you write an absolute path, the beginning of the line is "//". On the other hand, if you want to activate POSIX processing, you can write a parameter as follows:

Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 PARM='POSIX(ON)//usr/lpp/ixm/IBM/xml4j-4_0/data/personal.xml' Design concepts for Web services architectures on z/OS Implement solutions based onof practical examples You can check the result the previous JCL execution in the job output: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information /usr/lpp/ixm/IBM/xml4j-4_0/data/personal.xml: 59 msabout (37 XML. elems, 18 attrs, 140 In additionspaces, to an overview of XML concepts, the first part of the book provides detailed 128 chars) instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

Setting up the C/C++ XSLT samples for z/OS or OS/390 UNIX System Services

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and To use XSLT you need STLport-4.0 (Standard Library). Toand install Web services, andprocessor describes in in C/C++ detail some service-based topologies for Template both legacy systems this product, perform the following steps: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by a.and Goservice to the Web browser, and open URL: contract design. http://www.stlport.com/archive/ b. Search for a link to version 4.0 of the product and click STLport-4.0.tar.gz, (see Figure 312).

Figure 3-12. Locate STLport 4.0



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

c. Select "Save this file to disk" and select a folder in which to store the downloaded file. For example, select C:\temp.

Publisher: IBM

Pub Date: June 11, 2003

You also need another tool, GNU zip, to decompress files in format gz. To obtain this tool, point ISBN:browser 0-7384-2615-6 your to: Pages: 264

http://www.ibm.com/servers/eserver/zseries/zos/unix/redbook/index.html Locate the gzip link and select the binary option.

Figure 3-13. gzip download Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed When prompted to save the file to disk, click and OK. OS/390 Select the folder which to the file. In instructions for installing the XML Toolkit for z/OS V1.4 andin running thesave sample our case we selected same folder: C:\temp. Now,tools in this directory alsoservices have a file called programs bundled with it. the It describes how to use various that are partyou of the gzip.bin.pax.Z. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system FTP to the z/OS host the programmers. files you just downloaded to your PC. programmers and application The second part of the book isFigure geared more to ftp the needs of application and 3-14. upload gzip to developers z/OS architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XMLsession and XSL-based applications on z/OS and OS/390 Open a shell (TSO OMVS). Go to /usr/local and enter the following commands: Design concepts for Web services architectures on z/OS cd /usr/local Implement solutions based on practical examples pax Redbook -rf gzip.bin.pax.Z This IBM describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of gzip -d STLport-4.0.tar.gz service-oriented architecture along with practical, detailed information about XML. tar -xvf In addition to anSTLport-4.0.tar overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Waitof until If you have problems, check your writemainly permission bits. overview the decompression IBM WebSpherefinishes. Application Server. This material is of interest to system programmers and application programmers. At this point, you have a subdirectory called STLport-4.0, but it is in ASCII, so your compilations The second part of the book is geared more to the needs of application developers and are going to fail. To solve this problem, issue the commands: architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the pax -o from=ISO8859-1,to=IBM-1047 -wf compout STLport-4.0 reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by rm -Rf STLport-4.0 contract and service design. pax -rf compout

These steps re-compress your ASCII directory into a new file, use pax to convert from ASCII to EBCDIC, and then decompress the file using pax. Once you have the STL libraries installed, enter the commands:

export XALANCROOT=/usr/lpp/ixm/IBM/Lotus\SL-C_1_3 export XERCESCROOT=/usr/lpp/ixm/IBM/xml4c-4_0 export STLPORTROOT=/usr/local/STLport-4.0 export XALANCOUT=/u/david/samples/C/XSLT •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Directory /u/david/samples/C/XSLT is David a new directory created By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, Sanchez Carmona

for the output of the

compilations.

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 export _CXX_CXXSUFFIX=cpp Pages: 264

export _CXX_CCMODE=1 export _CXX_CVERSION="0x220a0000"

Leverage XML and XSL-based applications on z/OS and OS/390 (You have to enter this command only if you are using C/C++ compiler higher than V2R10) Design concepts for Web services architectures on z/OS Implement solutions based on practical examples cd $XALANCROOT/samples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it /usr/local/bin/gmake can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed Remember: this is the where installed the gmake instructions for installing thedirectory XML Toolkit for we z/OS and OS/390 V1.4utility. and running the sample programs bundled with it. It describes how to use various tools that are part of the services These compilations may end with a returnfor code 4,in giving you some warning messages. development environment, details the support XML Enterprise COBOL, and provides anIn the lab we obtained messages such as the following: overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and "/usr/local/STLport-4.0/stlport/stl/_construct.h", line architecture 53.74: CBC1252(W) architects. It provides a comprehensive introduction to service-oriented (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and The destructor for "NodeSorter::VectorEntry" does notconcepts exist. to The callthe is new applications. Finally, this book presents some important design enable reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM ignored. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Another problem we encountered was running out of virtual storage, which happened while we were running the TraceListen sample. We solved this problem by increasing the region size for the TSO userid.

Setting-up the C/C++ XSLT samples for z/OS or OS/390 Once you have completed the setup in the UNIX environment, you can generate the modules in a PDS

to invoke them in the z/OS environment.

1. First of all, check that in the Toolkit installation process you have installed library .SIXMEXP with members:

• •

-IXMLC13X Table of Contents Index

IXM4C40X XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

-IXM20UCX

IXM2018X Publisher: -IBM Pub Date: June 11, 2003

You are going to use the same dataset, DAVID.SAMPLES.LOAD, already used in the previous ISBN: 0-7384-2615-6 section. Pages: 264

2. Enter the following commands:

export XALANCROOT=/usr/lpp/ixm/IBM/LotusXSL-C_1_3 Leverage XML and XSL-based applications on z/OS and OS/390 export LOADMOD=DAVID.SAMPLES.LOAD Design concepts for Web services architectures on z/OS export LOADEXP=.SIXMEXP Implement solutions based on practical examples export OS390BATCH=1 This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended modernize legacy applications. It provides both a high-level discussion of unset to _CXX_CXXSUFFIX service-oriented architecture along with practical, detailed information about XML. export CXX=c++ In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample export CXXFLAGS=-2 programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers andif application programmers. (or -g building a debug version) The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and export _CXX_CXXSUFFIX=cpp new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM export _CXX_XSUFFIX_HOST=SIXMEXP Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. export _CXX_CCMODE=1 export _CXX_CVERSION="0x220a0000" gmake

3. The built samples are now in the DAVID.SAMPLES.LOAD dataset.

3.

3.2.2 Running the C++ XSLT sample on z/OS or OS/390 UNIX System Services We have chosen the SimpleTransform sample to test the XSLT processor. This sample uses a foo.xsl stylesheet to transform a foo.xml document, and the output is stored on foo.out. For this exercise, we made two input documents. You could use sample documents stored in • Table of Contents $XALANCROOT/samples/SimpleTransform, but we preferred to create new documents for our test. •

Index

XML z/OS and the OS/390: a Service-Oriented Firston we made XMLIntroduction document,tocalling it foo.xml. Architecture This document contains a list of products with their prices, and is shown in Example 3-6. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Example 3-6. foo.xml Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 BLU-051 Design concepts for Web services architectures on z/OS 780811-100051 Implement solutions based on practical examples Blue Potatoes-18-2 lb Vexar-US1-C This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Blue can be extended toPotatoes modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. 63.03 In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system BLU-048 programmers and application programmers. 780811-100048 The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes Blue Potatoes-25 in detaillb some box-US1-A service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust Blue Potatoes SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. 8.85 BLU-049 780811-100049 Blue Potatoes-25 lb box-US1-B

Blue Potatoes 7.89 •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

We stored this file in the same directory where the SimpleTransform executable is located. We made By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona an XSL document in the same directory and called it foo.xsl. The purpose of this stylesheet is to transform the input XML document, building a table in which each row corresponds to a product. The IBM XSLPublisher: document is shown in Example 3-7. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Example 3-7. foo.xsl Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Price List Viewer Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. ItCELLPADDING="1" describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and a comprehensive introduction to service-oriented architecture (SOA) and architects. It provides Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM as well as XML-based message design, and the principles of design by Patterns for e-business, contract and service design.



Table of Contents



Index

Publisher: IBM

Date: June 11, 2003 ISBN: 0-7384-2615-6

Pages: 264

Implement solutions based on practical examples In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM
Product ID UPC Description Category Price
XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of practical, detailed information about XML. service-oriented architecture along with programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.
Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The result should be a foo.out document in which each product entry is a different row in an HTML table.

Once we have created the XML and XSL documents in the same directory with the SimpleTransform executable, we need to make some final adjustments. Enter the following commands:

export LIBPATH=$XALANCROOT/lib:$XERCESCROOT/lib:$LIBPATH export ICU_DATA=$XERCESCROOT/lib • Table of Contents •

Index

export PATH=$XALANCOUT/bin:$PATH

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Now, it is time Publisher: IBM to execute the program. Enter: Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264 SimpleTransform

At the end of the program, you have a new file: foo.out. You are not able to look at it (if you try OBROWSE foo.out you will see weird characters), because it is coded in UTF-8, but you can download Leverage XML and XSL-based on You z/OScan and OS/390 it to your PC with FTP and look at it applications with Notepad. also use a tool such as viascii, which lets you to see ASCII files from your vi editor. If you want this tool, you can download it from: Design concepts for Web services architectures on z/OS http://www.ibm.com/servers/eserver/zseries/zos/unix/bpxa1ty2.html Implement solutions based on practical examples Another easy way to check that the resulting file is correct is to use the ICONV utility. For example, This IBM Redbook describes the of XML servers running command: z/OS or OS/390, and how it for the previous foo.out coded inuse UTF-8, we on canIBM enter the following can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, first part of the book provides detailed iconv -f utf-8 -t ibm-1047 foo.out > the foo2.out instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM foo2.out, WebSphere Application This material codepage). is of interest mainly to system Now we can browse because it is inServer. EBCDIC (IBM-1047 programmers and application programmers. We are going to do a second test. This time we are testing testXSLT from the command prompt. Enter The following second part of the book is geared more to the needs of application developers and the commands: architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the testXSLT -IN robust $XALANCROOT/samples/SimpleTransform/foo.xml reader to build SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by -XSL $XALANCROOT/samples/SimpleTransform/foo.xsl contract and service design. -OUT foo.out

Again you can use ICONV to convert foo.out from UTF-8 to EBCDIC IBM-1047. You can also update the source files from the programs to generate the output in the codepage you want.

3.2.3 Running the C++ XSLT sample on z/OS or OS/390

To test the sample, you only have to ensure that you have access to SIXMMOD1. For instance, if you want to execute the TraceListen sample you only have to build the JCL shown in Example 3-8.

Example 3-8. TraceListen JCL •

Table of Contents

//TOOLKIT2 JOB (POK,999),DAVID,MSGLEVEL=(1,1),MSGCLASS=X, • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

// CLASS=A,NOTIFY=&SYSUID By Franck Injey, Jose Luis Fernandez Lastra, Dipak

Hore, David Sanchez Carmona

//* Publisher: IBM Pub Date: June 11, 2003 //******************************************************************** ISBN: 0-7384-2615-6

//RUNIVP Pages:EXEC 264 PGM=TRACELSN, //

PARM='/-tt'

//STEPLIB DD DSN=.SIXMMOD1,DISP=SHR //

DD XML DSN=DAVID.SAMPLES.LOAD,DISP=SHR Leverage and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS

The samples you solutions can use are the on same ones we discussed in the UNIX System Services section. Implement based practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 4. Services development environment • Table Contents some critical components of an application development In this chapter weofintroduce • environment Index that are required to modernize your legacy applications. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Today's Web application development teams include business analysts, managers, host By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona programmers, application programmers, Web page designers, graphics designers, Java programmers, and component developers. A different person might fill each role, or any one Publisher: IBM person might be required to play multiple roles. Planning a Web application has become complex Pub Date: June varied 11, 2003skills and numerous roles required. For example, on the EIS tier, you may because of the ISBN: 0-7384-2615-6 have COBOL or PL/1 programmers with experience building IBM CICS or IMS transactions or other Pages: applications 264 and databases associated with current business logic. Their approach to development is probably based on models of structural programming, and most likely does not separate the user interface from the business logic. The processes for building such systems are specific to the host environment. Your development team needs professionals with experience in your existing business applications—perhaps host programmers—working aspects of the middleon tier. Onand the OS/390 middle tier, you can have Java Leverage XML and on XSL-based applications z/OS programmers building servlets, classes, or JSP code. Their development and architectural model is likely to beconcepts more object-oriented. It is crucial to get business knowledge that is embedded Design for Web services architectures onthe z/OS in your existing applications and leverage it as you develop in the middle tier. Implement solutions based on practical examples Graphic designers and HTML programmers develop for presentation on client systems (graphics, JSP HTML). describes Today thisthe means browsers, but servers other client platforms, as hand-held This pages, IBM Redbook use of XML on IBM running z/OS orsuch OS/390, and how it devices and data-enabled phones, areapplications. becoming popular. Teamboth members with these skills tend can be extended to modernize legacy It provides a high-level discussion of to have backgrounds in building user interfaces. course,information managers ofabout teams developing Web service-oriented architecture along with practical,Ofdetailed XML. applications might come from any of these programming disciplines, or perhaps a technical In addition business role, to an or some overview other of technical XML concepts, lead position. the first Teams part of need the book development provides detailed tooling that not instructions only allows diverse for installing roles to theinteract, XML Toolkit but also for z/OS integrates and OS/390 the members V1.4 and as running a team. the sample programs bundled with it. It describes how to use various tools that are part of the services Before we go environment, any further, we need the to clarify a few frequently used terms. Forand the provides purpose an of this development details support for XML in Enterprise COBOL, discussion, Services and Components will be in an is interchangeable fashion. overview of the theterms IBM WebSphere Application Server. Thisused material of interest mainly to system There is a slight semantic difference between these two terms. Services are run-time objects and programmers and application programmers. Components are design-time objects. Enterprise assets or just assets in the context of this report The second refer to the part application of the book software is geared systems more of an to the enterprise needs of (also application sometimes developers referredand to as legacy architects.Harvesting systems). It providesand a comprehensive Re-engineeringintroduction are also used to interchangeably. service-oriented architecture The terms harvesting, (SOA) and Web services, enterprise asset, andand describes the basic in detail thought some processes service-based of modernizing topologies legacy for both systems legacy aresystems presented and new in the applications. seminal paper Finally, Enterprise this book Solution presents Structure some by important E.C. Plachy design andconcepts P.A. Hausler, to enable published the in readerinto 1999 IBM build System robust Journal, SOA-based volume solutions 38, number rapidly. 1. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4.1 Elements of e-business development tools For enterprises to fully engage and implement Web applications, development tools are needed to directly leverage existing assets, help solve the middle-tier skill and complexity problems, and support proven development practices. The need is for an integrated development environment • Table of Contents in which critical aspects of Web application development and the associated modernization of • Index existing applications can be addressed. Such tools would also include the ability to simplify the XML on z/OS and Introduction to a Service-Oriented Architecture combination of OS/390: the complex technologies involved—within and between the various tiers—in Web application By Franck Injey,development. Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Development tools for the enterprise need to take the best capabilities of the point tools and Publisher: IBM combine them into a single coherent environment where team members with various technology Pub Date: June 11, 2003 backgrounds and experience can bring their particular expertise to bear. These tools also need to ISBN: support the0-7384-2615-6 enterprise's requirement to create reusable components that can be leveraged Pages: 264 throughout the e-business environment. With the availability of XML, Java, and infrastructures like WebSphere on z/OS and OS/390, developers need a new generation tool set to build robust services-oriented architecture (SOA) based, mission-critical business applications. The convergence on the same platform of new technologies like XML and Java on one hand, and COBOL, CICS, and IMS on the other hand, is opening up a fascinating and exciting applicationonsolution model. The new model not only holds Leverage XML and XSL-based applications z/OS and OS/390 promise of lower cost of ownership and development, which is very good news for organizations, it alsoDesign raises concepts the possibility for services many thousands of legacy application developers to blur the line for Web architectures on z/OS that divided them from Web technology-based solution developers. Implement solutions based on practical examples The toolsets that can make this happen are: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of WebSpherearchitecture Studio Enterprise (WSED) service-oriented along Developer with practical, detailed information about XML. WebSphere Studio Asset Analyzer (WSAA) In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample XML Repository programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Figure 4-1 presents an overview of how these three toolsets are related. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

Figure 4-1. e-business development tools

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

While individual organizations and developer communities will have their preferred set of tools for specific tasks, we believe these three classes of toolsets provide a great way to kick-start your "Legacy Modernization" effort and help you achieve your e-business goal in the fastest possible time. This toolset environment can be supplemented by additional tools (such as XML editors, debuggers, and so forth), based on per individual preferences.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4.2 WebSphere Studio Enterprise Developer WebSphere Studio Enterprise Developer offers tools for building and managing complex, component-based, N-tier Web applications to development teams with heterogeneous skill sets. It also leverages component architecture models and development tooling that can enable the • Table of Contents successful creation, deployment, and maintenance of enterprise Web applications. With • Index Enterprise Developer, an enterprise can create Web applications by WebSphere Studio XML on z/OS and OS/390: Introduction a Service-Oriented integrating diverse employee skill to sets and extendingArchitecture existing systems. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

This approach allows enterprises to use proven run-time environments while helping to reduce deployment risks. WebSphere Studio Enterprise Developer also supports accepted practices and Publisher: IBM emerging Web application technologies to help ensure that development teams build robust, Pub Date: June 11, 2003 component-based applications. In particular, you can use a Model-View-Controller (MVC) ISBN: 0-7384-2615-6 architectural model and an open-source Struts (MVC2) implementation design. Pages: 264

WebSphere Studio Enterprise Developer also helps extend emerging Web application component-oriented technologies and projects, such as XML, Struts, Web Services Description Language (WSDL) and Simple Object Access Protocol (SOAP). It is not our intent here to describe all the features of WebSphere Studio Enterprise Developer; other Leverage redbooksXML deal and withXSL-based the topic in great detail. example, see Legacy Modernization with applications onFor z/OS and OS/390 WebSphere Studio Enterprise Developer, SG24-6806. In this chapter we only highlight some of the important featuresfor that areservices critical to build an N-tier-based Design concepts Web architectures on z/OS application on z/OS or OS/390. Implement solutions based on practical examples

4.2.1 Designing a Web application This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of The focus on modernizing enterprise applications creating e-business solutions service-oriented architecture along with practical,and detailed information about XML. dictates specific development processes. Existing enterprise applications must act as a resource pool for the Web applications underofconstruction. Youthe willfirst need new code and business logic. In addition to an overview XML concepts, part of application the book provides detailed You need to for create reusable your enterprise builds its Web applications, instructions installing thecomponents XML Toolkit so forthat, z/OSas and OS/390 V1.4 and running the sample their capabilities can beit. leveraged as components in futuretools Webthat applications. programs bundled with It describes how to use various are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Figure 4-2ofshows a development process where existing identified, new overview the IBM WebSphere Application Server. This components material is ofare interest mainly to system components are created and application flow is defined, and components are linked together in programmers and application programmers. an efficient way. Once you complete initial planning, simultaneous development begins that defines application flow, finds components, creates new components and engages in The second part of the book is existing geared more to the needs of application developers and various levels of testing. As this development concludes, your teams can engage in build and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and deploy activities. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Figure 4-2. Web application development Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

For Publisher: a onlineIBM demonstration of WebSphere Studio Enterprise Developer, see: Pub Date: June 11, 2003

http://www.ibm.com/software/ad/studioedm/demo ISBN: 0-7384-2615-6 Pages: 264

In the following sections we briefly describe two important functions of WebSphere Studio Enterprise Developer from the component development point of view.

4.2.2 Creating components from existing assets Leverage XML and XSL-based applications on z/OS and OS/390 A key aspect of creating a Web application involves leveraging existing applications, and Designcomponents concepts forfrom Webwithin services on z/OS developers may encounter harvesting thearchitectures enterprise. However, significant difficulties when they try to create components based on traditional applications. Implement solutions based on practical examples WebSphere Studio Enterprise Developer simplifies the process by providing powerful componentization tooling that helps development teams turn existing applications into reusable This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it components. WebSphere Studio Enterprise Developer adapter tooling provides a wizard-based can be extended to modernize legacy applications. It provides both a high-level discussion of user interface, which helps a developer identify important aspects of an EIS component. service-oriented architecture along with practical, detailed information about XML. The tooling automatically creates a Java 2 Connectivity (J2C) interface to the host component. In addition to an overview of XML concepts, the first part of the book provides detailed This component interface is a Java class that runs on the Web server but can communicate with instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample transactions or other capability on the host. This component interface can then be incorporated programs bundled with it. It describes how to use various tools that are part of the services into the visual design tool, making it available as an action within the Web application. These development environment, details the support for XML in Enterprise COBOL, and provides an connectors are automatically designed to be complete Web services, allowing the enterprise to overview of the IBM WebSphere Application Server. This material is of interest mainly to system directly engage Web service business paradigms. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides anew comprehensive introduction to service-oriented architecture (SOA) and 4.2.3 Developing components Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally,existing this book presents your somedevelopment important design enable the In addition to leveraging capability, teamconcepts will oftentoneed to create reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM new components to be part of a Web application. WebSphere Studio Enterprise Developer Patterns e-business, well as XML-based design, and the of design provides for powerful sourceas editors integrated asmessage a single development toolprinciples for building many by contract and service design. component types required, including HTML, JSPs, EJB components, Java Beans, COBOL, PL/1, Assembler, and IBM Enterprise Generation Language (EGL). Many combinations of these technologies can be used when implementing actions described in the visual assembly environment. This approach can allow WebSphere Studio Enterprise Developer to provide a fully integrated development environment in which the various Web application development roles can be performed effectively by a heterogeneous team. For a comprehensive tutorial on how WebSphere Studio Enterprise Developer can be used in developing an n-tier application, refer to Legacy Modernization with WebSphere Studio Enterprise Developer, SG24-6806.

4.2.4 Summary of WebSphere Studio Enterprise Developer features Struts application development tools •

Table of Contents

Struts is an open-source subproject of the Apache Jakarta project. The purpose of Struts is to • Index encourage and support the "Model 2" model-view-controller design approach to building Web XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture applications. In this model, applications are based on servlets and Java server pages (JSPs) that By Josecontainer Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona runFranck in a Injey, servlet such as WebSphere Application Server or Jakarta Tomcat. Struts comprises primarily a set of JSP taglibs and a relatively thin set of additional run-time support classes. ForIBM more information about Struts, see the Struts Framework Project page at: Publisher: Pub Date: June 11, 2003

http://jakarta.apache.org/struts/index.html ISBN: 0-7384-2615-6

Pages: tools 264 in WebSphere Studio Application Developer and WebSphere Studio Enterprise The Struts Developer integrate Struts. Struts includes the following components:

An Action Servlet, which manages the flow of run-time events. A configuration file with which you configure the Action Servlet. (Using a configuration file Leverage XML and XSL-based applications on z/OS and OS/390 means that changes to the flow of control do not necessarily require software changes.) Design concepts for Web services architectures on z/OS A set of JSP taglibs to use in JSPs and to access user-specified data. Implement solutions based on practical examples A set of run-time classes. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it The Struts tools make it easy to build and manage a Struts-based Web application. Struts tools can be extended to modernize legacy applications. It provides both a high-level discussion of do this by: service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed Letting you set up a Struts project so that taglibs and other Struts-related resources are instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample located properly; as a result, you can reference those resources without fail as you develop programs bundled with it. It describes how to use various tools that are part of the services your application development environment, details the support for XML in Enterprise COBOL, and provides an overview of thewizards IBM WebSphere Server. material of interest mainly to system Providing to create Application syntactically correctThis Action Form is subclasses (form beans) and programmers and application programmers. Action subclasses (actions), so you have a head start in developing the logic that is specific to your application The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Providing a specialized editor to access your Struts configuration file, which is the file that Web services, and describes in detail some service-based topologies for both legacy systems and you modify to configure the Struts Action Servlet new applications. Finally, this book presents some important design concepts to enable the reader to build a robust SOA-based This includes an diagrams, introduction to the Providing specialized editorsolutions to accessrapidly. your Struts application which areIBM files Patterns e-business, as well XML-based design, and principles of design by thatfor help you visualize the as flow structure message of a Struts-based Webthe application contract and service design. Adding Struts support to the other editors (for example, VCT support for Struts taglibs in PageDesigner) Validating your Struts-based application

z/OS application development tools z/OS application development tools provide an interactive, workstation-based environment where you can develop mainframe applications in ASM, COBOL, or PL/1. The environment gives

you a seamless way to edit on the workstation and prepare output on the mainframe. Your interaction with z/OS includes these steps:

1. Create or modify the code in one of several editors (JLPEX, LPEX, or an editor that you introduce). The editor retains fixed lengths and column layouts, as appropriate. • 2. CompileTable Contents the of code locally as a convenient way to validate the source. • Index

3. onDebug theOS/390: code locally. XML z/OS and Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

4. Generate and customize JCL as needed.

IBMthe source to the host, where z/OS tools submit the JCL or otherwise prepare the 5.Publisher: Transfer Pub source, Date: June including 11, 2003 pre-preparation steps for CICS and DB2 UDB. ISBN: 0-7384-2615-6

6. Inspect the results of code preparation. Pages: 264 You can access z/OS datasets by way of a workstation-like directory structure; and you can process CLISTs, REXX EXECs, and USS shell scripts in the following way:

1. Edit them XML on the Leverage andworkstation. XSL-based applications on z/OS and OS/390 2. Transfer them to for z/OS. Design concepts Web services architectures on z/OS 3. Run them there. Implement solutions based on practical examples 4. IBM ViewRedbook the output in the workstation environment. This describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of The code you write can targetalong CICS,with IMS, or OS/390 UNIX information System Services. service-oriented architecture practical, detailed about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Enterprise Generation Language programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML intechnology Enterprise that COBOL, an Enterprise Generation Language (EGL) is a development lets and you provides quickly write overview of the IBM WebSphere Application Server. This material is of interest mainly to system full-function programs. The initial release of EGL lets you use a simple procedural language to programmers andofapplication programmers. create programs the following types: The second part of the book is geared more to the needs of application developers and architects. It provides a that comprehensive introduction toinservice-oriented architecture (SOA) and A COBOL program runs as a called program CICS TS. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, presents important design concepts toWindows enable the A Java program that this runsbook on z/OS UNIXsome System Services, Windows 2000, NT, or reader to build XP. robust rapidly. This includes anofintroduction to the IBM Windows YouSOA-based can deploy solutions the Java program in the context any of the J2EE containers: Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. - J2EE application client - J2EE Web application - EJB container; in this case, you also generate an EJB session bean At your request, EGL readies the generated parts for runtime. Specifically, EGL: Sends each generated part to the target platform

Oversees a preparation step to compile Java programs; to translate, compile, and link CICS COBOL programs; and to bind load modules to a DB2 database Returns a confirmation message EGL is built on the proven technology of VisualAge® Generator and offers several benefits: • •

of Contents You canTable quickly implement business logic by using a procedural scripting language and a Index language-specific debugger.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

You can focus on the problem your code is addressing rather than on the technical complexities of CICS, MQSeries®, and SQL; for example, you can use similar I/O statements to access different types of external data stores.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003 You can code in response

to current platform requirements without worrying about future

migration. ISBN: 0-7384-2615-6 Pages: 264

You can produce multiple parts of an application system from the same source. After developing an EGL program, for example, you can generate a Java wrapper, an EJB session bean, and a back-end program. This increased efficiency comes into play, for example, when you develop software to give users access to a servlet, which in turn passes data to a generated Java wrapper, which in turn accesses either a generated program on CICS TS or an EJB Server. Leverage XML and XSL-based applications on z/OS and OS/390 You can produce Java applications and servlets without learning object-oriented Design concepts for Web services architectures on z/OS programming. Implement solutions based on practical examples You avoid having to configure a CICS connector when you deploy a generated program on CICSRedbook for z/OS. A generated Java reformats the data toz/OS be passed between Web This IBM describes the use of wrapper XML on IBM servers running or OS/390, and ahow it application server and a back-end program. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition Java development to an overview toolsof XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled withtools it. It included describeswith howEnterprise to use various tools that are the partdevelopment of the services The Java development Developer support of any development environment, details the support for XML in Enterprise COBOL, and provides an Java application. They add a Java perspective to the workbench, as well as a number of views, overview of the IBM WebSphere Application Server. This material is of interest mainly to system editors, wizards, builders, and code merging and refactoring tools. The Java development tools programmers and application offer the following capabilities:programmers. The second part of the book is geared more to the needs of application developers and architects. It provides JDK 1.3 support a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Pluggable run-time Finally,support this book forpresents JRE switching some important and targeting design multiple concepts run-time to enable environments the reader from to build IBM and robust other SOA-based vendors solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Incremental compilation contract and service design. One debugger for both local and remote debugging Ability to run code with errors in methods Error reporting and correction Java text editor with full syntax highlighting and complete content assist Refactoring tools for reorganizing Java applications

Search tools The Java development environment includes intelligent search tools for Java source files. The Java support allows you to precisely find declarations and references of Java elements (package, type, method, field). Searching is supported by an index that is kept up to date in the background as the resources corresponding to Java elements are changed. •

Table of Contents



Index

XML on z/OS and OS/390: Performance profiling Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Enterprise Developer provides tools that enable you to test your application's performance early in the development cycle. This allows enough time to make architectural changes and resulting Publisher: IBM implementation changes. This reduces risk early in the cycle, and avoids problems in the final Pub Date: June 11, 2003 performance tests. ISBN: 0-7384-2615-6

Pages: 264 The profiling tools collect data related to a Java program's run-time behavior, and present this data in graphical and non-graphical views. This helps you to visualize your program execution easily, and explore different patterns within the program. The tools are useful for performance analysis, and for gaining a deeper understanding of your Java programs. You can view object creation and garbage collection, execution sequences, thread interaction, and object references. The tools also show you which operations take the most time, and help you to find and solve memory leaks. XML You can identify repetitive on execution behavior Leverage and easily XSL-based applications z/OS and OS/390and eliminate redundancy, while focusing on the highlights of an execution. The profiling tools are especially designed for Design concepts for Web services architectures on z/OS analyzing object-oriented programs.

Implement solutions based on practical examples

Information display This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Conventional performance tools, which based on the procedural programming service-oriented architecture along withare practical, detailed information about XML. model, miss a lot of important information about the behavior of Java programs, which are object-oriented. The profilingtotools model and present your program's execution in a way that isdetailed natural and In addition an overview of XML concepts, the first part of the book provides consistent object-oriented model,for and thatand retains all relevant instructionswith for the installing the XML Toolkit z/OS OS/390 V1.4 andinformation. running the sample programs bundled with it. It describes how to use various tools that are part of the services The profiling tools enable you to visualize the topology of Enterprise your application, is built from development environment, details the support for XML in COBOL,which and provides an monitors, hosts, processes, and agents. You Server. can lookThis at different of your mainly application from overview of the IBM WebSphere Application material views is of interest to system either the monitor or the agentprogrammers. level. Information displayed from the monitor level is an programmers and application aggregated view of your application. Output from and input to your application can be viewed in the view. views these toolsofoffer help you to visualize the The Console second part ofThe the various book is other geared morethat to the needs application developers and elements Java program (the objects, methods, calling sequences, object references, and architects.ofItaprovides a comprehensive introduction to service-oriented architecture (SOA) and threads) from and many angles. Moreover, the views show youtopologies how thesefor elements comesystems together in Web services, describes in detail some service-based both legacy and your program's execution. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Pattern extraction capabilities Pattern extraction takes a highly redundant mass of execution information, and reduces it to its fundamental form. It gives you an overall view of the execution of a program, with the choice of viewing more detail about every object or method call. Pattern extraction greatly simplifies runtime analysis. The profiling tools have powerful pattern extraction capabilities. They present recurring patterns of run-time behavior in a single, compact view.

Features to find and solve memory leaks

The profiling tools have unique features to help you find and solve memory leaks. The Object Reference view uses pattern extraction and visualization techniques to help you explore your program's data structures. It lets you quickly understand the pattern of references to and from a large numbers of objects, and helps you find objects that are holding onto references, thus preventing garbage collection. The tools are very useful for developers because they help them to identify areas where changes would significantly improve performance. Developers can finetune their applications to ensure efficiency and the best possible response times for users. •

Table of Contents



Index

Distributed process monitoring

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The tools also give you the ability to concurrently monitor multiple processes that may be distributed Publisher: on IBM different machines, and you can launch remote applications. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Color-coding Pages: 264 for classes In the Execution Flow, Method Execution, and Method Invocation views, classes are assigned colors. The same classes are represented by the same color across these three different views. For every class, a unique color is used to draw its methods. This makes it easier to identify methods from the same class. Leverage XML and XSL-based applications on z/OS and OS/390 conceptsenvironment for Web services architectures on z/OS EJB Design development Implement solutions based on practical examples The EJB development environment features full EJB 1.1 support, an EJB test client, a unit test environment for J2EE, and deployment support for Web application files and This IBM Redbook describes the use of XML on IBM servers running archive z/OS or (WAR) OS/390, and how it enterprise application archive (EAR) files. Entity beans can be mapped to databases, and can be extended to modernize legacy applications. It provides both a high-level discussionEJB of components can architecture be generatedalong to tiewith intopractical, transaction processing systems. XMLXML. provides an service-oriented detailed information about extended format for deployment descriptors within EJB. The EJB development environment consists of multiple tools: of XML concepts, the first part of the book provides detailed In addition to an overview instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Tools for import/export, creation and code generation, and editing, as well as support for development environment, details the support for XML in Enterprise COBOL, and provides an standard deployment descriptors and extensions and bindings specific to WebSphere overview of the IBM WebSphere Application Server. This material is of interest mainly to system Application Server. programmers and application programmers. EJB-to-RDB mapping tools that provide the model, run-time environment, and interface for The second part of the book is geared more to the needs of application developers and editing the mapping between EJBs and relational database tables with top-down and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and bottom-up capability. The mappers support associations, inheritance, and converters and Web services, and describes in detail some service-based topologies for both legacy systems and composers as helpers on column maps. new applications. Finally, this book presents some important design concepts to enable the reader build robustthat SOA-based includesSQL an introduction to the IBM A to query engine supportssolutions deployedrapidly. code byThis generating strings into persister Patterns for e-business, as well as XML-based message design, and the principles of design by classes. contract and service design. Tools that provide the ability to create, edit, and validate ear files. Editors for deployment descriptors.

J2EE perspective All of the EJB development environment tools are accessible from the J2EE perspective. This is where your EJB projects and individual enterprise beans reside, and it is where you accomplish

all of your enterprise bean development and testing activities.

Support for enterprise beans and access beans The EJB development environment provides tools to help you create enterprise beans (either with or without inheritance), including session beans, container-managed persistence (CMP) • Contents entity beans,Table and of bean-managed persistence (BMP) entity beans. Tools are also provided to • create accessIndex beans and other EJB elements, such as associations. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Data persistence Publisher: IBM

ThePub EJB development Date: June 11, 2003environment provides a mapping editor to help you map entity enterprise beans ISBN: to data stores such as relational databases. There is support for top-down, bottom-up, 0-7384-2615-6 and meet-in-the-middle development. You can also create schemas and maps from existing Pages: 264 enterprise beans.

Deployment code Enterprise Developer includes tools applications to set deployment descriptor and control descriptor Leverage XML and XSL-based on z/OS and OS/390 properties for your enterprise beans and to generate the deployed classes that allow your beans to operate Design onconcepts a server.for The Web tool services that generates architectures the deployment on z/OS code is integrated with the Enterprise Developer generation options, so you can simply select individual enterprise beans as solutions based ontopractical examples input Implement and then select a menu item automatically generate the deployment code. The tools support session beans, CMP entity beans, and BMP entity beans. They also allow you to create This IBM Redbook use of XML on IBM servers running or OS/390, and how it relational databasedescribes tables forthe CMP entity beans. Once code has beenz/OS generated for deployment, can be extended to modernize legacy applications. It provides both a high-level discussion you can export your enterprise beans to a JAR file for installation on an EJB server, such asof the service-oriented architecture along with practical, detailed information about XML. WebSphere Application Server. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Verifying enterprise and access programs bundled with bean it. It describes how bean to usecode various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an The EJB development environment automatically andThis seamlessly that your enterprise overview of the IBM WebSphere Application Server. materialverifies is of interest mainly to system bean code is consistent and that it conforms to the rules defined by the Enterprise Java Bean programmers and application programmers. specification. Code verification occurs whenever an enterprise bean or its properties are The second changed. If part any problems of the book are isdetected, geared more an error to the orneeds warning of application icon appears developers beside the and problematic architects. lines of code It and provides a message a comprehensive appears in the introduction Tasks view to at service-oriented the bottom of architecture the J2EE perspective (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and The development environment automatically verifiesdesign that access beans constructed new EJB applications. Finally, this book also presents some important concepts to are enable the correctly and that they are consistent with their associated enterprise beans. Code verification reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM occurs whenever you create or edit access beans. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Server Tools Server Tools uses server instances and server configurations to test your projects. Server instances identify servers where you can test your projects. Server configurations contain setup information. Server Tools allows you to test your applications in different run-time environments that can be installed locally or remotely: The server tools feature includes a local copy of the full WebSphere Application Server run-

time environment, where you can test Web projects, EJB projects, and ear projects. You can also test on a remote copy of the WebSphere Application Server. To do this, you must install on your remote machine: - WebSphere Application Server • •

of Contents - Table IBM Agent Controller (included with Enterprise Developer as a separate install) Index

Server Tools also Introduction supports the Apache Tomcat run-time environment, XML on z/OS and OS/390: to a Service-Oriented Architecture

running locally. With Tomcat, you can only test Web projects that contain servlets and JSPs. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona A test environment called the TCP/IP Monitoring Server is also packaged with Server Tools. server that forwards requests and responses, and monitors test activity. Pub Date: June 11, 2003 This run-time environment can only be run locally, and it only supports Web projects. You cannot ISBN: 0-7384-2615-6 deploy projects to the TCP/IP Monitoring Server.

Publisher: This isIBM a simple

Pages: 264

Web development tools Enterprise Developer provides the tools necessary to develop Web applications as defined in the Sun Microsystems Java Servlet specification. Web applications include static Web pages with XMLpages and XSL-based onalong z/OS with and OS/390 HTML,Leverage Java server (JSP files),applications and servlets, all resource metadata and a deployment descriptor. The Web development environment provides you with wizards for DesignWeb concepts Web by services architectures z/OSand tools for developing images and generating pagesfor driven databases and Java on beans, animated GIFs. Links are automatically updated when content changes. Implement solutions based on practical examples This environment brings all aspects of Web application development into a common interface. This IBM Redbook describes the use of XML content on IBM authors, servers running or OS/390, and how Everyone on your Web site team, including graphicz/OS artists, programmers, andit can be extended to modernize legacy applications. It provides both a high-level discussion of Web masters, can work on the same projects and access the files they need. Within the service-oriented architecture along with practical, detailed informationcreate, about assemble, XML. integrated Web development environment, it is easy to cooperatively publish, deploy, and maintain dynamic, interactive Web applications. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample The Web development environment provides the following features: programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview the IBM WebSphere Server. This material is of interest mainly to system Webof project creation, usingApplication the J2EE container structure programmers and application programmers. Integrated, intuitive visual layout tools for JSP and HTML file creation and editing The second part of the book is geared more to the needs of application developers and architects. Servlet It creation provideswith a comprehensive a wizard introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Advanced scripting to presents create client-side dynamicdesign applications new applications. Finally,support this book some important concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM WebArt Designer toas create graphic titles, message logos, buttons, frames of design by Patterns for e-business, well as XML-based design,and andphoto the principles contract and service design. Animated GIF Designer to create animation from still pictures, graphics, and animated banners Over 2,000 images and sounds in a built-in library Site style and template support Automatic update of links when resources are moved or renamed HTTP/FTP import

FTP export (simple resource copy) to a server J2EE WAR/EAR deployment support Generation of Web applications from database queries and beans

Web services development tool • Table of Contents •

Index

Enterprise wizards and other tools to enable rapid development of Web XML on z/OSDeveloper and OS/390:provides Introduction to a Service-Oriented Architecture services. Web services are modular, standards-based e-business applications that businesses By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona can dynamically mix and match to perform complex transactions with minimal programming. Web services allow buyers and sellers all over the world to discover each other, connect Publisher: IBM dynamically, and execute transactions in real time with minimal human interaction. Pub Date: June 11, 2003

Some examples of Web services are theatre review articles, weather reports, credit checks, stock ISBN: 0-7384-2615-6 quotations, travel advisories, or airline travel reservation processes. Each of these self-contained Pages: 264 business services is an application that can easily integrate with other services, from the same or different companies, to create a complete business process. This inter-operability allows businesses to dynamically publish, discover, and bind a range of Web services through the Internet. The Web services development tools provided in Enterprise Developer are based on open, cross-platform standards: Leverage XML and XSL-based applications on z/OS and OS/390 Simple Object Access Protocol (SOAP), which is a standard for reliably transporting Design concepts formessages Web services z/OS electronic business fromarchitectures one businesson application to another over the Internet Implement solutions based on practical examples Web Services Description Language (WSDL), which describes programs accessible via the Internet (or other networks), and the message formats and protocols used to communicate This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it with them can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with detailed information about businesses XML. Universal Description Discovery andpractical, Integration (UDDI), which enables to describe themselves, publish technical specifications on how they want to conduct eIn addition to an overview of XML concepts, the first part of the book provides detailed business with other companies, and search for other businesses that provide goods and instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample services they need, all via online UDDI registries programs bundled with it. It describes how to use various tools that are part of the services development environment, details supportprocesses for XML in an Enterprise Developer facilitates thethe following toEnterprise assist withCOBOL, buildingand andprovides deploying overview of the IBM WebSphere Application Server. This material is of interest mainly to system Web services-enabled applications: programmers and application programmers. The second part of the the book is geared more to the to needs of application developers and Discover: Browse UDDI Business Registry locate existing Web services for architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and integration. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this bookWeb presents some important concepts enableURLs the that Create or Transform: Create services from existing design artifacts, such astobeans, reader to build robustdata, SOA-based solutions rapidly. an introduction to the IBM take and return DB2 XML Extender calls, This DB2 includes stored procedures, and SQL queries. Patterns for e-business, as well as XML-based message design, and the principles of design by contract Build: andWrap service existing design. artifacts as SOAP and HTTP GET/POST accessible services and describe them in WSDL. The Web services wizards assist you in generating a SOAP proxy to Web services described in WSDL and in generating bean skeletons from WSDL. Deploy: Deploy Web services in the WebSphere Application Server or Tomcat test environments using Server Tools. Test: Test Web services running locally or remotely to get instant feedback. Develop: Generate sample applications to assist you in creating your own Web service client application.

Publish: Publish Web services to the UDDI Business Registry, advertising your Web services so that other businesses can access them.

Relational database environment The Data perspective in Enterprise Developer allows you to create and manipulate the data • Table of Contents design for your project, in terms of relational database schemas. The Data perspective lets you • Index database schemas in the DB Explorer view, and create and work with database browse or import XML on z/OS Introduction a Service-Oriented schemas in and theOS/390: Data view. You cantoexplore, import, Architecture design, and query databases, working with either a local copy of an already deployed design, or creating By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmonaan entirely new design to meet your requirements. The Data perspective provides a metadata model that is used by all other tools that need database information, such as connection information so that tools that are Publisher: IBM unaware of each other can share connections. Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 Pages: 264 SQL query builder

The SQL query builder provides a visual interface for creating and executing SQL statements. You can create a simple statement or add complex expressions and grouping. When you are satisfied with your statement, you can use the SQL-to-XML wizard to generate XML and related artifacts, then use the files to implement your query in other applications, for example, a servlet Leverage XML and XSL-based applications on z/OS and OS/390 or JSP. Design concepts forquery Web services on z/OS You can create a simple using thearchitectures SQL statement wizard, or you can use the SQL query builder that supports a wider range of statements. There is also a SQL editor with highlighting Implement solutions based on practical examples and content assist that allows you to manually edit and create SQL files. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of XML development environment service-oriented architecture along with practical, detailed information about XML. In additionDeveloper to an overview of XML concepts, the first of the book provides detailed Enterprise provides a comprehensive XML part development environment that includes instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample tools for building DTDs, XML schemas, and XML files. It also supports integration of relational programs bundled with it. It describes how to use various tools that are part of the services data and XML. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

XML editor

The second part of the book is geared more to the needs of application developers and The XML editor is a tool creating, viewing, and validating XML files. You can use it(SOA) to create architects. It provides a for comprehensive introduction to service-oriented architecture and new XML files from scratch, from existing DTDs, or from existing XML schemas. You can also and use Web services, and describes in detail some service-based topologies for both legacy systems it to edit XML files, associate them with DTDs or schemas, and validate them. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. DTD editor The DTD editor is a tool for creating, viewing, and validating DTDs. Using the DTD editor, you can create and validate DTD elements, attributes, entities, and notations. You can generate XML schema files, and generate Java beans for creating XML instances of an XML schema. You can also use the DTD editor to generate a default HTML form based on the DTDs you create.

XML schema editor

The XML schema editor facilitates creating, viewing, and validating XML schemas. You can use the XML schema editor to perform tasks such as creating XML schema components, importing and viewing XML schemas, generating DTDs and relational table definitions from XML schemas, generating Java beans for creating XML instances of an XML schema, and generating DDL from an XML schema.

XSL trace editor • Table of Contents •

Index

XML z/OS andeditor OS/390: Introduction a Service-Oriented Architecture The on XSL trace allows you totoapply an XSL stylesheet against an XML document to create a result document (HTML or XML). You can transform XML documents into HTML, text, or other By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona XML document types. The editor displays the three documents (result, source XML, source XSL) and enables you to visually step through the XSL transformation script, examining the Publisher: IBM relationships between the three documents. Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 Pages: 264 XML-to-XML mapping editor

The XML-to-XML mapping editor maps one or more source XML documents to a single target XML document. You can provide a source file (DTD or XML) and a target file, and define the mappings between the source and the target. Each mapping is a selection of a target field, a conversion function and source fields. Mappings can be edited, deleted, or stored for later use. XML and XSL-based z/OSscript, and OS/390 After Leverage defining the mappings you canapplications generate anonXSLT which can then be used to combine and transform any XML documents that conform to the source DTDs. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

XML and SQL query

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can to modernize legacywizard applications. It provides both a high-level You be canextended use the XML and SQL query to create an XML file from the resultsdiscussion of an SQLof service-oriented architecture along with practical, detailed information about XML. query. You can optionally choose to create an XML schema or DTD file that describes the structure that the XML file has for use in other applications. You can also use the XML and SQL In addition to to ancreate overview of XML theused first with part of book provides detailed Query wizard a DADX fileconcepts, that can be thethe Web services tool. The generated instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample DADX file will contain your SQL query. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Relational database-to-XML mapping editor programmers and application programmers. The RDB-to-XML second part of mapping the book editor is geared makes more it easy to the to define needs the of application mapping between developers relational and tables architects. and a DTD It file. provides You cana map comprehensive columns in introduction one or moreto relational service-oriented tables toarchitecture elements and (SOA) attributes and Web in an services, XML document. and describes You caningenerate detail some a document service-based accesstopologies definition for (DAD) bothscript, legacyused systems by IBM and new applications. DB2 Extender, to either Finally, compose this book XML presents documents somefrom important existing design DB2 concepts data, or decompose to enable the XML reader to build documents intorobust DB2 data. SOA-based You cansolutions also create rapidly. a testThis harness includes to test an the introduction generatedtoDAD the IBM file. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4.3 Support for enterprise service development WebSphere Studio Enterprise Developer and WebSphere Studio Application Developer provide comprehensive support for service development. In this section we present the model behind the "Services perspective" of the toolset. •

Table of Contents

• Index Application Developer Integration Edition together with WebSphere WebSphere Studio XML on z/OS and OS/390: Introduction to a the Service-Oriented Architecture Application Server provides you with best solution for managing and integrating your business applications. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM

Figure 4-3. Services development

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture alongEdition with practical, information about of XML. Application Developer Integration includes detailed the complete functionality WebSphere Studio Application Developer, along with a new set of tools and wizards, collectively referred to In to an overview of XML concepts, the first part ofToolkit the book detailed as addition the Enterprise Services Toolkit. The Enterprise Services is aprovides fully service-oriented instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample development environment for business and enterprise application integration. The service bus of programs bundled with it. It describes how to use various tools that are part of the services the integration server (which is really a "logical" bus) acts as the point of integration for a wide development environment, details Services the support for XML inyou Enterprise COBOL, and provides anto variety of services. The Enterprise Toolkit gives the tools and support you need overview of the IBM WebSphere Application Server. This material is of interest mainly to system be able to consume and provide services to the integration server via the service bus. programmers and application programmers. The toolkit itself allows you to consume various service providers, such as SOAP, Java beans, The second part ofEJBs, the book is geared more to the needs (JCA) of application andEIS Stateless Session and J2EE Connector Architecture services developers (for example, architects. It provides a comprehensive introduction to service-oriented architecture and a services, CICS, IMS, HOD, and others). Features like flow composition can be used to(SOA) compose Web services, and describes in detail some service-based topologies for both legacy systems and new service out of other services. Transformations allow you to map the data from one service to new applications. Finally, this book presents some important design concepts to enable the another in a flow composition. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as integration well as XML-based message design,asand theservices, principles of design Services deployed into the server can be provided SOAP and via the by EJB contract and service programming model.design. Other access options will follow in the future (such as Java Messaging Service (JMS)). The Enterprise Services Toolkit is based on open standards such as J2EE, JCA, WSDL, XSD, and XSLT. It also contains advanced technology that IBM is considering contributing to future standards.

4.3.1 Programming model At the heart of the Enterprise Services Toolkit programming model are Enterprise Services, or services for short. Services are used to model different kinds of service providers in a consistent

way.Figure 4-4 shows the currently supported providers. Note that in the enterprise services world a Web service is just one form of service provider.

Figure 4-4. Enterprise service providers



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Service Pages: 264 Theservice is the part of the programming model that ties everything together. The Enterprise Services Toolkit uses the Web Services Description Language (WSDL) as its model for describing any kind of service. Note:Leverage You mayXML think that the W in WSDL meanson the language is for describing Web services and XSL-based applications z/OS and OS/390 only, but this is not true. The inventors equipped the language with a smart extensibility mechanism allowsfor you to describe any kind of service, Web or otherwise. Designthat concepts Web services architectures on z/OS Implement solutions based on practical examples

XML schema

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Service messages are described by the XML Schema language. You use XML Schema to describe service-oriented architecture along with practical, detailed information about XML. the business data that flows in and out of the services. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Flow programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview the IBM form WebSphere Application Server. This is to of interest to system Flows are of a specific of service implementation. Theymaterial allow you composemainly a service out of programmers programmers. other services.and We application also refer to this type of flow as a Microflow or Service Flow. The second partofofservice the book is geared more representing to the needs the of application A flow consists nodes, each node invocation developers of a serviceand operation. architects. provides a comprehensive introduction to service-oriented architecture (SOA) and The serviceItnodes are tied together by control links which indicate the sequence of execution and Web services, and describes in detail service-based topologies for both legacy systems and under which condition execution takessome place. new applications. Finally, this book presents some important design concepts to enable the reader The flow tocomposition build robustisSOA-based described using solutions the rapidly. Flow Definition This includes Markup anLanguage introduction (FDML). to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Transformer Transformers allow you to map between service messages. In fact, transformers allow you to map multiple input messages to a single output message. Use them wherever you have to produce a new service message from service messages produced by other services. Transformers are mainly used in Data Mapping nodes within flows. This includes type conversions, splits, joins, and others.The transformation implementation is described in the form of XSLT.

For more comprehensive information about the services perspective, refer to the Help documents of the respective product.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4.4 WebSphere Studio Asset Analyzer A key aspect of today's Web application development effort revolves around understanding and leveraging of services and services-oriented architecture (SOA). SOA allows teams to reuse proven and reliable services instead of duplicating development effort. A service is defined as • Contents any piece of Table code of that provides a service to another aspect of an application. It can be built in • Index any language and may ultimately run in any environment. With the emerging new technology of XML onComputing," z/OS and OS/390: Introduction to a Service-Oriented Architecture where different services, which "Grid it will soon be possible to build applications form parts ofJose a solution delivery, be executed on disparate By Franck Injey, Luis Fernandez Lastra,can Dipak Hore, David Sanchez Carmona systems participating in a grid computing infrastructure. For more information, see Introduction to Grid Computing with Globus , SG24-6895. Publisher: IBM Pub Date: June 11, 2003 Services may also be harvested from existing application assets within the enterprise. The use of ISBN: 0-7384-2615-6 services provides significant benefits in many respects, including reuse, reliability, maintenance, Pages: and 264 ultimately time to market of business applications. scalability,

The modernization of enterprise applications relies heavily on harvesting enterprise assets that can become services. When a particular capability becomes a service, that capability can be used again and again by many different applications. The goal is to deploy these as Web services in an execution environment. Leverage XML and XSL-based applications on z/OS and OS/390 One of the biggest stumbling blocks in harvesting enterprise assets from which to develop reusable services or components is, how to mine the on nuggets Design concepts for Web services architectures z/OS that are hidden within the myriad application systems developed over the last 20 to 30 years. The original creators of legacy assets may be long gone from thebased organization, andexamples all too often there is little or no documentation for Implement solutions on practical older systems. These are just a few of the challenges you may encounter when attempting to This IBMenterprise harvest Redbook describes assets. WebSphere the use of Studio XML onAsset IBM Analyzer servers running (WSAA)z/OS was or developed OS/390, to and satisfy how it can compelling the be extendedneed to modernize for some kind legacy of technology applications. infrastructure It provides both to assist a high-level in the harvesting discussioneffort. of service-oriented architecture along with practical, detailed information about XML. The goal WSAA is trying to achieve is nothing new. For the last ten to fifteen years, maybe more, In addition leaders technology to an overview like IBMofhave XMLworked concepts, to build the first a special part ofclass the book of technology provides detailed infrastructure instructions called "Enterprise for installing Repository" the XML andToolkit some associated for z/OS and tools OS/390 (source V1.4 code and scanners, running among the sample others). programs bundled with it. It describes how to use various tools that are part of the services WSAA provides the following information: development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Application knowledge: Rapid understanding of application components and construction, a high-level view or blueprint of an The second part of plus the book is geared more to the needs of application. application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Businessand knowledge: Understanding of business and processing drilling and Web services, describes in detail some service-based topologies for flow boththrough legacy systems down into applications. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Change knowledge: Identification of areas of the application that will change based on Patterns for e-business, as well as XML-based message design, and the principles of design by the requirements, right down to the line of code and including where all data items and contract and service design. indirect data items are used. Data knowledge:Databases and files that make up the application, plus data flows that provide a logical connection between programs, between processes, and between applications. e-Business knowledge: Ratings of program modules for their usefulness as connectors, plus prebuilt connectors and generated data definitions that can be imported into WebSphere development tooling like the Enterprise Access Builder or WebSphere Studio Enterprise Developer.

The first step in using WSAA is to scan the artifacts that you want WSAA to know about. These could be z/OS platform artifacts like COBOL and PL/I programs, BMS maps, JCL, IMS PSBs and DBDs, and region configurations for IMS and CICS. The information about these artifacts on z/OS are gathered by running scanners (tools provided by WSAA) on z/OS. WebSphere Studio Application Analyzer also scans for more modern artifacts like J2EE applications, including war and ear files, EJB JAR files, Java source code and Class files, XML, HTML, JSP files and taglib files, C and C++ Source files, and so forth. •

Table of Contents

• Index Artifacts on the z/OS platform can reside in source code management systems like SCLM, while XML on z/OS and OS/390: Introduction to acan Service-Oriented Architecture on the Windows 2000 platform they reside on Rational Clear

Case or on a WebDAV server.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Figure 4-5 shows the six major components of WebSphere Studio Asset Analyzer; a description of the components follows the figure. Publisher: IBM Pub Date: June 11, 2003

Figure 4-5. WebSphere Studio Asset Analyzer

ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well XML-basedinspects message design, andartifacts the principles of design by Inventory collection: Thisas component various z/OS to determine basic contract and service design. information about each, such as their programming language. Then a more in-depth analysis is performed to determine the relationships between all artifacts inspected. Analysis database: A DB2 database is the repository of meta-information about the artifacts that are inventoried. Impact analysis: With the inventory complete (or as complete as possible), impact analysis questions can be asked about the information in the database: What parts within an application, and outside an application, need to be considered when a data element is modified? What happens when a CALL signature is modified? What is affected when a specified block of code is changed?

Connector information: Typically, n-tier applications, where one tier exists on a z/OS platform, need a bridge, or connector, between tiers. Discovering the information necessary for other tools, such as the Enterprise Access Builder (EAB) of VisualAge for Java, to build these connectors can be very difficult and time consuming. The Connector Builder Assistant (CBA) component helps find and assemble the information set required to build connectors. Exploration: After you have taken an inventory, or even partially completed it, you can view the inventory. The inventory consists of a number of different artifacts (described in • Table of Contents inventory collection) that have relationships to each other. These relationships are • Index highlighted for you. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Web browser interface: Almost all of the capabilities of WebSphere Studio Asset Analyzer are available through a Web browser interface. Using the IBM HTTP Server on z/OS and Publisher: IBM Net.Data® for DB2 access, this interface provides the window into WebSphere Studio Asset Pub Analyzer Date: Junecapabilities. 11, 2003 ISBN: 0-7384-2615-6

For anPages: online demonstration of WebSphere Studio Asset Analyzer, visit: 264 http://www.ibm.com/software/ad/studioedm/demo

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4.5 XML repository While WSAA provides the functionality to understand and harvest enterprise assets, we need another infrastructure to publish and manage the assets created from it and those that have been newly created. A new class of infrastructures known as XML repositories is emerging. • Contents Because theyTable are of design-time repositories, they provide a function different from that of UDDI • Index repositories which provide execution-time Web services support. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

An XML Injey, repository manages development and deployment By Franck Jose Luis Fernandez the Lastra, Dipak Hore, David Sanchez Carmona of XML assets (for example, XML schemas, DTDs, instance documents, style sheets, and WSDL documents), usually utilizing a Web-based interface. The repository enables an organization to take control of their XML assets Publisher: IBM for reuse throughout the enterprise. The interface should also provide, through the Internet, Pub Date: June 11, 2003 facilities for collaboration with suppliers, customers, trading partners, and industry groups. ISBN: 0-7384-2615-6 Pages: 264

4.5.1 Repository features Repository for XML assets: An XML repository enables an organization to reduce development costs and take control of the exchange of messages by managing those XML assets at the document level and the component level (for example, elements, attributes, types, and model Leverage XML and XSL-based applications on z/OS and OS/390 groups) from a centralized repository. The documents and components can be categorized, staged, browsed, and for theWeb inter-relationships searched create a comprehensive view of an Design concepts services architectures ontoz/OS enterprise's XML assets. Figure 4-6 provides an overview of an enterprise XML repository's functional domain. Implement solutions based on practical examples This IBM Redbook describes the Enterprise use of XML on XML IBM servers running z/OS or OS/390, and how it Figure 4-6. Repository functions can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples XML vocabularies:e-business relationships are being built through the establishment of This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it common vocabularies by companies and industry groups. An XML repository should enable the can be extended to modernize legacy applications. It provides both a high-level discussion of extensible power of XML by enabling the analysis of schemas and DTDs (the grammars) at the service-oriented architecture along with practical, detailed information about XML. component-level, creating a data dictionary (vocabulary elements/tag definitions) of an enterprise's XML assets. The inter-relationships of these components can be browsed, searched, In addition to an overview of XML concepts, the first part of the book provides detailed re-used, and re-constructed to create an infinite number of new, semantically different schemas. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Collaboration- Companies are developing XML schemas and DTDs jointly across different development environment, details the support for XML in Enterprise COBOL, and provides an operational areas that are of mutual interest. An XML repository facilitates this inter-operation overview of the IBM WebSphere Application Server. This material is of interest mainly to system and cooperation through Web-based access to an organization's XML assets. It should provide a programmers and application programmers. WebDAV protocol-based interface to achieve this collaboration. The second part of the book is geared more to the needs of application developers and Access, set by permission, creates a virtual workplace and allows people around the world to architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and collaborate on the development of schemas and DTDs, which leads to e-business standards. Web services, and describes in detail some service-based topologies for both legacy systems and new applications.-Finally, thisthe book presents some important design concepts to enable the Administration Managing XML assets of disparate departments, divisions, and trading reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM partners will require powerful administration facilities. An XML repository empowers Patterns for e-business, as well as XML-based design, and the in principles of design by organizations to create user-defined metadatamessage and stages (see Staging Repository functions) contract and service design. to which XML assets must adhere. This leads to a structured approach for organizing, searching, publishing, and migrating XML assets through the various stages of their life cycle (development, production, depreciation). It must give full control via a Web interface to set permissions, e-mail notification, security, and other essential administration functionality.

4.5.2 Repository functions Some of the functions the repository should provide are the following:

Client interface - Provide all WebDAV-compliant devices, for example, a browser, an application development environment like WebSphere Studio Enterprise Developer, stand-alone XML editors like TurboXML, XMLSpy, and so forth. Indexing - Performed at two levels, the asset level (schemas, DTDs, and others) and the component level (element, attribute, types, and so forth). Searching - Using the robust metadata captured, information can be queried with a high degree • of Contents of granularityTable at the document level or at the component level. •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Namespace management - Registry of corporate and industry

standard Namespaces. URL

mapping andJose resolution of XML vocabularies. By Franck Injey, Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Staging - The administrator can define a series of stages that an XML asset will move through Publisher: IBM during its life cycle (for example, testing – production – depreciation). Each transition from one Pub Date: June 11, 2003 stage to another may have associated rules of acceptance. ISBN: 0-7384-2615-6

"Diffing" Pages:- 264 The ability to track changes between revisions, in the form of highlighting and underscoring to document changes between versions of a file. This gives authorized users the streamlined ability to audit (approve/reject) changes made to an asset to ensure a smooth transition through the life cycle stages. Reporting - A comprehensive documentation view of an asset. This enables XML assets or combinations assets be turnedapplications into documents for powerful reporting and communication LeverageofXML andto XSL-based on z/OS and OS/390 throughout an organization, with trading partners, or with industry groups. Design concepts for Web services architectures on z/OS Component-level composability - The XML artifact development environment should be integrated with the repository. Inon other words, component tools environments like WebSphere Implement solutions based practical examples Studio Enterprise Developer, XML editors, and so forth should be able to have an interface with the ThisRepository IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Asset relationship trackingalong - Thewith repository should trackinformation the relationship documents service-oriented architecture practical, detailed aboutbetween XML. and their components and allow these relationships to be easily viewed. In addition to an overview of XML concepts, the first part of the book provides detailed Data dictionary/Type - (content dataV1.4 types) – Enterprises instructions for installingmanagement the XML Toolkit for z/OS models, and OS/390 and running the should samplehave the ability to manage, index, and reuse vocabulary components (Types) at the corporate or programs bundled with it. It describes how to use various tools that are part of the services industry level. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Source control and version programmers. management system - The repository should provide full source programmers and application management control of XML assets with check-in/check-out and versioning throughout the life cycle of the part asset. The second of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Categories - This perspective provides an organization with ability tosystems logicallyand Web services, and hierarchal describes in detail some service-based topologies for the both legacy view and understand the structure and status of its XML assets. Management facilities new applications. Finally, this book presents some important design concepts to enableare the available deactivate, re-name, and add categories as necessary. reader to to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Automated notification - People can subscribe to relevant XML files and be automatically contract and service design. notified via e-mail or on their repository home page as XML files transition through userconfigured life cycles. If you are going to use XML, you must have a repository to even have a hope of managing your DTDs/Schemas and XML messages.The problems you face without a repository include: not knowing where an element was used, inability to document the physical implementation of an element or attribute, inability to sort out how DTDs were related to each other and to XML documents, XML documents constructed without mandatory elements or attributes, invalid values in attributes, and the inability to version DTDs. All these issues can be resolved by an XML repository.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 5. XML and Enterprise COBOL In this chapter we provide an introduction to the XML capabilities of IBM Enterprise COBOL for z/OS and OS/390 V3R1. •

Table of Contents

We describe how to promote data interchange in XML format between traditional legacy COBOL • Index programs with minimal effort. We discuss the interaction between COBOL and Java, the XML XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture parser integrated in COBOL, and how to use WebSphere Studio Enterprise Developer to let By FranckCOBOL Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona legacy programs accept and respond in XML format. Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

5.1 Overview IBM Enterprise COBOL for z/OS and OS/390 V3R1 lets you integrate your traditional COBOL programs into the e-business world by enabling you to invoke an XML parser from the program and to operate with Java components across distributed applications. •

Table of Contents

• The ability toIndex have an XML parser that is accessible to your programs and that can be invoked XML z/OS and OS/390: Introduction to a for Service-Oriented withon one COBOL sentence, is the key all businessArchitecture processes. This XML parser lets you promote the exchange and use of data in standardized formats, including XML and Unicode, and By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona enables you to reuse existing applications in WebSphere and traditional z/OS environments. Publisher: IBM In this chapter we describe how the COBOL XML parser operates, and based on this XML parser, Date: how June 11, we Pub discuss to 2003 work with the new tool WebSphere Studio Enterprise Developer to generate ISBN: 0-7384-2615-6 the necessary contents to adapt our traditional COBOL programs to the XML world. Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

5.2 COBOL and Java interoperation Enterprise COBOL provides object-oriented syntax to facilitate the interoperation of COBOL with other languages, such as Java and C++. For example, you can instantiate Java classes from COBOL programs, invoke methods on Java objects, and define Java classes that can be • Table of Contents instantiated in Java or COBOL. •

Index

XML on z/OS and Introduction a Service-Oriented Architecture Example 5-1 is OS/390: an Object OrientedtoCOBOL Program in which we are defining a class called DavidDogs. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Example 5-1. Sample COBOL program Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

(1)

Pages: 264

cbl dll,thread,pgmname(longmixed)

(2)

Identification division.

(3)

Class-id. DavidDogs inherits Base.

XML and XSL-based applications on z/OS and OS/390 (4) Leverage Environment Division. (5)

Design concepts for Web services architectures on z/OS Configuration section.

(6)

Implement solutions based on practical examples Repository.

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it (7) Class toBase "java.lang.Object" can be extended modernizeis legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. (8) Class DavidDogs is "DavidDogs". In addition to an overview of XML concepts, the first part of the book provides detailed (9) Identification instructions for installingdivision. the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services (10) Object.environment, details the support for XML in Enterprise COBOL, and provides an development overview of the IBM WebSphere Application Server. This material is of interest mainly to system (11) Data division. programmers and application programmers. (12) Working-storage section. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and (13) 01 DogName pic X(6). Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the (14) Division. reader Procedure to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by (15) Division. contract Identification and service design. (16)

Method-id. "init".

(17)

Data division.

(18)

Linkage section.

(19)

01 inDogName pic X(6).

(20)

Procedure Division using by value inDogName.

(21)

Move inDogName to DogName.

(22)

End method "init".

(23)

Identification Division.

(24)

Method-id. "getDog".



Table of Contents

(25) •

DataIndex division.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

(26) Linkage section. By Franck Injey, Jose Luis Fernandez Lastra, Dipak (27)

Hore, David Sanchez Carmona

01 DogResponse pic X(10).

Publisher: IBM Pub Date: June 2003 pic X(6) (28) 02 11, Name ISBN: 0-7384-2615-6

(28) (29) (30)

Pages: 264 02

Filler pic X.

02 Response pic X(9). Procedure Division returning DogResponse.

(31) Leverage MoveXML DogName to Name.applications on z/OS and OS/390 and XSL-based (32) Design Move "GuauforGuau" to Response. concepts Web services architectures on z/OS (33) Implement End method solutions "getDog". based on practical examples This (34)IBM EndRedbook Object.describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented (35) End classarchitecture DavidDogs.along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes tokey useaspects variousof tools partin ofExample the services In the following discussion we mention how some the that codeare shown 5-1, and development environment, details the support for XML in Enterprise COBOL, and provides explain why we have structured it in this particular way. The numbers in parentheses referan to the overview of the WebSphere Application Server. This material is of interest mainly to system line numbers in IBM the code. programmers and application programmers. The second theinbook geared contains more to instructions the needs ofto application developers and (1) Thepart firstofline our is program the compiler. With this release, architects. It provides a comprehensive introduction tostatements service-oriented architecture and compilation of COBOL programs containing CICS no longer requires (SOA) a separate Web services, and describes in detailtranslator some service-based for both legacy systems and translation step. An integrated approach istopologies an alternative to using the separate new applications. Finally, this book presents some important enableboth the translator. With the integrated translator approach, the design COBOL concepts compiler to handles reader to build robust rapidly. This introduction to the IBM native COBOL andSOA-based imbedded solutions CICS statements in theincludes source an program. The recommendation Patterns e-business, well as options XML-based message is tofor include COBOLas compiler in our COBOLdesign, source and file. the principles of design by contract and service design. We use option dll every time we generate an object module that is enabled for Dynamic Link Library support (DLL). Our program has an OO syntax, so we need this option activated because the output of a COBOL class definition is a dll residing in UNIX System Services. Optionthread indicates that our program is enabled to run in a Language Environment with multiple POSIX threads running. Optionpgmname(longmixed) indicates that our program name has to be processed as it is, without truncation or changing it to uppercase letters. (This option is important if you are

working with Java classes, as well, because Java classes are in lowercase most of the times.) (2) In an OO COBOL program we need an Identification division to provide the name of the class we are defining. In this case we are defining a class with the name DavidDogs, so we code an Identification division followed by a Class-id clause (3) where we specify the class name (DavidDogs) and that this class inherits from the Base class. The Base class is an Object Java class (java.lang.Object), so we are mixing Java and COBOL classes in our • Table of Contents inheritance hierarchy. Anyway, all classes we define must inherit directly or indirectly from • Index this class (java.lang.Object), and the name we have used (Base) is the recommended name XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture for the Object class. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

(4) In the Environment Division we map our internal classes (defined in the current COBOLIBM program) with external classes known in our runtime environment. In this case, we Publisher: declare a Configuration section, and inside this section a Repository section (6), Pub Date: June 11, 2003 where we declare that the Base class is java.lang.Object (7) (the top class in the Java ISBN: 0-7384-2615-6 hierarchy), and DavidDogs (8) is externally known as it is, DavidDogs. Pages: 264

(9) An Identification division section is declared again, but this time it is followed by anObject section (10), so here we describe the instance data that the class needs. After Object we declare a Data division (11), and after that a Working-storage section (12), in which we specify fields shared between all methods described in this class. These fields are private to the class, so if you want to make them accessible by other classes, you have to create a set or get method to do it. our and caseOS/390 we have defined a field (13) in Leverage XML and XSL-based applications onIn z/OS which we are going to store the name of our dog. Design concepts for Web services architectures on z/OS In (14) we declare a Procedure division where we enumerate the methods in use by our Implement solutions based on practical examples class. The first method is init (16); in this case it awaits an input parameter inDogName (19), declared in the Linkage section. Our init method only stores (21) this input This IBM Redbook the use ofpreviously XML on IBM servers(13), running or shared OS/390, and how parameter in describes the field DogName declared so itz/OS can be among all it can be extended to modernize legacy applications. It provides both a high-level discussion of methods in this class. service-oriented architecture along with practical, detailed information about XML. In (24) we define a getDog method that gives the response of our dog (the name of our In addition an overview XML concepts, the first declared part of the book provides detailed dog is to taken from the of DogName field previously in the Working-Storage section, the instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample value of which was stored by the ain method). programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for Enterprise COBOL, and provides an In (34) we end the Object description, and inXML (35)inwe end the Class declaration. overview of the IBM WebSphere Application Server. This material is of interest mainly to system For the compilation of this COBOL class, we use a utility called cob2, which resides in UNIX programmers and application programmers. System Services, commonly in /usr/lpp/cobol/lib. The resulting dll will reside in the UNIX System The second Services as part well.of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Webwith Try services, following and commands: describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by cob2 -c and -qdll,thread DavidDogs.cbl contract service design. cob2 -bdll -o libDavidDogs.so DavidDogs.o /usr/lpp/java/IBM/J1.3/bin/classic/libjvm.x /usr/lpp/cobol/lib/igzcjava.x

javac DavidDogs.java (This file is generated in the first step, and it defines a Java class that

involves the generated COBOL object.) As you can see, the program is very similar to the concept of Java classes. Once you have compiled this class, it can be invoked in the same way as a Java class. Object instances of COBOL classes can be created from Java or COBOL, and the methods of the classes can be invoked from Java classes or COBOL classes. On the other hand, you can invoke a traditional COBOL program from a COBOL class using the • Table of Contents knownCALL instruction. This lets you include traditional COBOL programs in the OO • programmingIndex world. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Object-oriented programs JavaSanchez programs are always run in a UNIX System By Franck Injey, Jose COBOL Luis Fernandez Lastra, and Dipak z/OS Hore, David Carmona Services environment. Publisher: IBM

Another way to access Java classes from COBOL classes is the JNI (Java Native Interface). In Date: June 11, 2003 thisPub case you have to copy a copybook called JNI.cpy in the Linkage section of your COBOL ISBN: 0-7384-2615-6 program. You can find this copybook in Enterprise COBOL for z/OS and OS/390 Programming 264 Guide,Pages: SC27-1412. This copybook maps COBOL data definitions to JNI data types, and it has the JNINativeInterface structure, which has pointers to the different callable services of JNI. From this structure you obtain the pointers, and then with CALL operations you can invoke the services. For more details on how to code you JNI interface in your COBOL program, refer to Chapter 29 in the Programming Guide. Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

5.3 XML support in Enterprise COBOL for z/OS Enterprise COBOL for z/OS and OS/390 V3R1 gives you some basic XML capability in your COBOL programs. You have an integrated XML parser in COBOL, so with a simple instruction you can invoke it and map XML data structures into COBOL structures. Example 5-2 is a basic • Table we of Contents sample, in which have coded an XML parser that makes a trace of the incoming XML • Index document. This XML document is stored in an MVS dataset, but commonly XML data come from XML on z/OS and OS/390: Introduction a Service-Oriented Architecture a CICS communication area, or antoIMS message queue. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Example 5-2. Processing an XML document in a COBOL program Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Process flag(i,i) Pages: 264 Identification division. Program-id. xml1. Environment division. Leverage XML and XSL-based applications on z/OS and OS/390 Input-output section. Design concepts for Web services architectures on z/OS File-control. Implement solutions based on practical examples * This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Select xml-file service-oriented architecture along with practical, detailed information about XML. to xmlinput In additionAssign to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample File status programs bundled with it.is It xmlfile-status. describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an * overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Data division. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and File section. Web services, and describes in detail some service-based topologies for both legacy systems and new Fdapplications. xml-file Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by label records are standard contract and service design. recording mode is f record contains 80 characters block contains 0 records data record is xml-file-input. 01 xml-file-input pic x(80).

Working-storage section. ************************************************************* * We define a table to load into storage the full XML document. ************************************************************* • •

Table of Contents

01 current-element pic x(30). Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

01 table-1.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

02 record-1 occurs 50 times pic x(80) value spaces. Publisher: IBM

01 Date: switches. Pub June 11, 2003 ISBN: 0-7384-2615-6

05 xmlfile-status pic xx value '00'.

Pages: 264

88 inputxml-success value '00'. 01 eof pic x value ' '. 01 xml-document-length pic 999 value zeros. Leverage XML and XSL-based applications on z/OS and OS/390 01 ind pic 999 value zeros. Design concepts for Web services architectures on z/OS Procedure division. Implement solutions based on practical examples mainline section. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of ************************************************************* service-oriented architecture along with practical, detailed information about XML. * fileread reads full XML document into storage * In Procedure addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample * is processed programs bundledbefore with it. it It describes how to use various tools that are *part of the services development environment, details the support for XML in Enterprise COBOL, and provides an ************************************************************* overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. perform fileread. The second part of the book is geared more to the needs of application developers and XML PARSE table-1 PROCESSING introduction PROCEDURE to xml-handler architects. It provides a comprehensive service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and ON EXCEPTION new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM 'XMLasdocument error ' message XML-CODEdesign, and the principles of design by Patterns fordisplay e-business, well as XML-based contract and service design. NOT ON EXCEPTION display 'XML document successfully parsed' END-XML goback. fileread.

open input xml-file. if not inputxml-success display 'error opening xml input file' exit. • •

Table of Contents

perform readline until eof = '1'. Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

exit.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

readline. Publisher: IBM

ind2003 = Pubcompute Date: June 11,

ind + 1.

ISBN: 0-7384-2615-6

move spaces to record-1(ind).

Pages: 264

read xml-file into record-1(ind) at end move '1' to eof. exit. xml-handler section. Leverage XML and XSL-based applications on z/OS and OS/390 evaluate XML-EVENT Design concepts for Web services architectures on z/OS ************************************************************ Implement solutions based on practical examples * Insert your code in the only running have * or OS/390, and how it This IBM Redbook describes theevent use ofyou XML need. on IBMWe servers z/OS can be extended to modernize legacy applications. It provides both a high-level discussion of * entered architecture a display to check parsing of information * service-oriented along withthe practical, detailed about XML. * document. * In addition to an the overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample ************************************************************ programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an when overview of the 'VERSION-INFORMATION' IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. display 'version information tag:' The second part of the book is geared more to the needs of application developers and 'ENCODING-DECLARATION' architects.when It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and display 'encoding declaration tag:' concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM when 'STANDALONE-DECLARATION' Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. display 'standalone declaration tag:' *==>Order XML events most frequent first when 'START-OF-ELEMENT' display 'Start element tag:' move XML-TEXT to current-element

when 'ATTRIBUTE-NAME' display 'Attribute name tag:' when 'ATTRIBUTE-CHARACTERS' display 'Attribute characters tag:' • •

Table of Contents

when 'ATTRIBUTE-CHARACTER' Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

display 'Attribute character tag:'

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

when 'CONTENT-CHARACTERS' Publisher: IBM

display Pub Date: June 11, 2003'Content

characters:'

ISBN: 0-7384-2615-6

when 'END-OF-ELEMENT'

Pages: 264

display 'End elementtag:' move spaces to current-element when 'START-OF-DOCUMENT' Leverage XML and XSL-based applications on z/OS and OS/390 display 'Start of document' Design concepts for Web services architectures on z/OS when 'END-OF-DOCUMENT' Implement solutions based on practical examples display 'Attribute character:' or OS/390, and how it This IBM Redbook describes the usevalue of XML on IBM servers running z/OS can be extended to modernize legacy applications. It provides both a high-level discussion of when 'START-OF-CDATA-SECTION' service-oriented architecture along with practical, detailed information about XML. display 'Start of CData:' In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample 'END-OF-CDATA-SECTION' programswhen bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an 'End of CData:' material is of interest mainly to system overview of display the IBM WebSphere Application Server. This programmers and application programmers. when 'CONTENT-CHARACTER' The second part of the book is geared more to the needs of application developers and character:' architects. Itdisplay provides'Content a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and when 'PROCESSING-INSTRUCTION-TARGET' new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM 'PIastarget:' design, and the principles of design by Patterns for display e-business, well as XML-based message contract and service design. when 'PROCESSING-INSTRUCTION-DATA' display 'PI data:' when 'COMMENT' display 'Comment:' when 'EXCEPTION'

compute xml-document-length = function length(XML-TEXT) display 'Exception ' XML-CODE 'at offset' xml-document-length '.' when other • •

Table of Contents

display 'Unexpected XML event:' XML-EVENT '.' Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

End-evaluate.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

exit. Publisher: IBM

End program xml1. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

This program is very simple, and its only purpose is to provide a trace to see the event sequence, but of course is very easy to add move instructions in the when declarations, and to move the contents of XML-TEXT to Working storage fields and manipulate them as desired. To execute the program, we could use the JCL in Example 5-3, where XML1 is the result of the Leverage XMLprogram and XSL-based applications on z/OS and OS/390 compilation of the listed previously. Design concepts for Web services architectures on z/OS

Example 5-3. Execution JCL

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it //DAVID1 JOB (POK,999),DAVID,MSGLEVEL=(1,1),MSGCLASS=X, can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. // CLASS=A,NOTIFY=&SYSUID In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample //* programs bundled with it. It describes how to use various tools that are part of the services developmentEXEC environment, //PASO01 PGM=XML1details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers application programmers. //STEPLIB DDand DSN=DAVID.LOAD,DISP=SHR The second part the book is geared more to the needs of application developers and //SYSPRINT DD of SYSOUT=* architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services,DD and describes in detail some service-based topologies for both legacy systems and //XMLINPUT DSN=DAVID.XML(XMLDOC1),DISP=SHR new applications. Finally, this book presents some important design concepts to enable the reader to build //SYSIN DD robust DUMMY SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. To execute the program, we use a sample XML document called XMLDOC1, stored in a dataset called DAVID.XML. The contents of the XML document are shown in Example 5-4.

Example 5-4. XMLDOC1



Maripuri • •

Table of Contents

Golfa Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Lara Publisher: IBM

Pub Date:type="Qart-Hadast" June 11, 2003 ISBN: 0-7384-2615-6

Chispa Pages: 264 Mini Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS What want Implementyou solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. The results to of an theoverview executionofare shown in Example 5-5. In addition XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Example 5-5. Output from the sample COBOL program development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Start of document The second part of the book is geared more to the needs of application developers and architects. It provides a tag: comprehensive introduction to service-oriented architecture (SOA) and version information Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally,tag: this book presents some important design concepts to enable the encoding declaration reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by standalone declaration tag: contract and service design. Comment: Start element tag: Content characters:< Start element tag: Content characters:

End elementtag: Content characters:< Start element tag: Attribute name tag: •

Table of Contents



Index

Attribute characters tag: XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Attribute name tag:

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Attribute characters tag: Publisher: IBM

EndPub elementtag: Date: June 11, 2003 ISBN: 0-7384-2615-6

Content characters:< Pages: 264

Start element tag: Content characters: End elementtag: Leverage XML and XSL-based applications on z/OS and OS/390 Content characters:< Design concepts for Web services architectures on z/OS Start element tag: Implement solutions based on practical examples Attribute name tag: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Attribute characters tag: service-oriented architecture along with practical, detailed information about XML. Attribute name tag: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Attribute characters programs bundled with it.tag: It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an End elementtag: overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Content characters:< > The second part of the book is geared more to the needs of application developers and Start element tag: architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Content characters: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM End elementtag: Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Content characters:< Start element tag: Attribute name tag: Attribute characters tag: Attribute name tag:

Attribute characters tag: End elementtag: Content characters:


Start element tag: •

Table of Contents



Index

Content characters: XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

End elementtag:

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Content characters:< Publisher: IBM

Start element tag: Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Attribute name tag: Pages: 264

Attribute characters tag: Attribute name tag: Attribute characters tag: Leverage XML and XSL-based applications on z/OS and OS/390 End elementtag: Design concepts for Web services architectures on z/OS Content characters:< Implement solutions based on practical examples

>

Start element tag: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Content characters: service-oriented architecture along with practical, detailed information about XML. End elementtag: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Content programscharacters:< bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Start element tag: overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Attribute name tag: The second part of the book is geared more to the needs of application developers and Attribute tag: introduction to service-oriented architecture (SOA) and architects. Itcharacters provides a comprehensive Web services, and describes in detail some service-based topologies for both legacy systems and Attribute name tag: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Attribute tag: Patterns for characters e-business, as well as XML-based message design, and the principles of design by contract and service design. End elementtag: Content characters:


PI target: PI data: Content characters:


Start element tag: Content characters: End elementtag: Content characters:< •

Table of Contents



Index

>

End elementtag: XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Attribute value character:

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XML document successfully parsed Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Remember that we have coded this program to read from an external MVS dataset, but a Pages: 264 common situation could be to read XML documents from CICS COMMAREA. In "XML converters for traditional COBOL programs" on page 121, we explain how to integrate XML in our COBOL program working in a CICS environment. With the instruction XML PARSE you specify the procedure where you handle the different events that occur while parsing the XML document. In our case we specify xml-handler as the handler Leverage applications on z/OS andanOS/390 procedure, so aXML few and linesXSL-based later we code this procedure with instruction EVALUATE, which lets us check the event type that is happening. In this EVALUATE instruction, we use XML-EVENT Design concepts forthe Web services architectures z/OS special register to check type of event. There are on some special registers to receive and pass information to the parser, and XML-EVENT is one of them. Some of the events controlled by this Implement solutions based on practical examples special register are: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacyonce, applications. It provides bothXML a high-level discussion of START-OF-DOCUMENT: Occurred at the beginning of the document. service-oriented architecture along with practical, detailed information about XML. VERSION-INFORMATION: If you have the optional version declaration on your XML In addition to anIn overview of the XMLversion concepts, the first of the bookregister, providesXML-TEXT. detailed document. this case, is stored in part another special instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes howspecified to use various tools that are part of the services ENCODING-DECLARATION: If you have the encoding attribute in your XML development environment, details contains the support XML in Enterprise COBOL, and provides an document. Again, XML-TEXT the for value. overview of the IBM WebSphere Application Server. This material is of interest mainly to system STANDALONE-DECLARATION: If you specify the standalone=yes|no attribute, in which case programmers and application programmers. this value is stored in XML-TEXT. The second part of the book is geared more to the needs of application developers and DOCUMENT-TYPE-DECLARATION: If you include a to DTD declaration in architecture the XML document. architects. It provides a comprehensive introduction service-oriented (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and COMMENT: If you include the form concepts to enable the new applications. Finally, thissome book element presentsin some important design reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM ATTRIBUTE-NAME: perasattribute name in the element specification. XML-TEXT contains Patterns for e-business, Once as well XML-based message design, and the principles of design by the name of the attribute. contract and service design. ATTRIBUTE-CHARACTERS: Each fragment of the attribute value is going to be processed by this event, and its text is going to be stored in XML-TEXT. ATTRIBUTE-CHARACTER: For the predefined entity name. END-OF-ELEMENT: For the end of each processed element. PROCESSING-INSTRUCTION-TARGET: For each PI after character ?. PROCESSING-INSTRUCTION-DATA: After the first word of a PI the rest is considered data.

CONTENT-CHARACTERS: Character data between start and end tags of an element. CONTENT-CHARACTER: For entity references in character data. END-OF-ELEMENT: Final tag in an element. START-OF-CDATA-SECTION: Start of a CDATA declaration. • •

Table of Contents

END-OF-CDATA-SECTION: End of a CDATA declaration. Index

XML on z/OS and OS/390: Introduction to the a Service-Oriented Architecture END-OF-DOCUMENT: End tag in XML document. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

As you can see, the XML parser in COBOL is an event-based parser, so the way to parse your documents is going to be very dependent on the way you manage the events. Publisher: IBM Pub Date: June 11, 2003

The original XML document usually comes from CICS, MQSeries, or similar, but if you want to ISBN: 0-7384-2615-6 process a document from a file, you have to load it in a data structure defined in the Working Pages: 264 Storage section, prior to the event handling. One important point is that XML COBOL parser is not a conforming XML processor according to the standards. While it parses your XML document, it makes some well formedness controls, but in general, it is not a validating parser. It is not DTD compliant. For an explanation of the validations covered by COBOL XML parser, refer to Enterprise COBOL for z/OS and OS/390 Programming V3R1, SC27-1412. LeverageGuide XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

5.4 WebSphere Studio Enterprise Developer & COBOL On this section we give a brief overview of the new facilities introduced by WebSphere Studio Enterprise Developer, a new development tool that helps in the integration of COBOL programs in the Web Services environment. •

Table of Contents

• We are goingIndex to focus our discussion on XML facts (the final point of this section), but we are XML z/OSto and OS/390:some Introduction to a Service-Oriented alsoon going present other important aspects Architecture of the new tool. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

If you want further explanation about WebSphere Studio Enterprise Developer and how to work with Struts or EGL programs, refer to the redbook Legacy Modernization with WebSphere Studio Publisher: IBM Enterprise Developer, SG24-6586. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 264 5.4.1Pages: New options in WebSphere Studio Enterprise Developer

Struts applications XML and XSL-based z/OS and OS/390 StrutsLeverage is an open source frameworkapplications for building on Web applications. It is part of the Jakarta project, sponsored by the Apache Software Foundation. Design concepts for Web services architectures on z/OS Struts helps developers build Web applications by supporting the generation of many Implement solutions based practical examples components included in the MVC on (Model, View, Controller) model. These generated components can be used later in an application, avoiding the need to implement them. The MVC model uses This IBMand Redbook describes use of XML IBM servers running z/OS or OS/390, how servlets JSPs as tools to the implement this on scenario. The framework provides classesand that canit can be extended to modernize legacy applications. It provides both a high-level discussion of be extended by developers to implement their final application. service-oriented architecture along with practical, detailed information about XML. Figure 5-1 shows a possible real-world scenario utilizing Struts. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Figure 5-1. A possible scenario utilizing programs bundled with it. It describes how to use various tools that are Struts part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The numbered steps in the process are as follows:

1.

1. A client from the browser sends a request to the server (it may be the HTTP handler in WebSphere Application Server). This request is received by a servlet that is running in a Web Container. 2. The servlet is an extension of a class provided by the Struts framework, called org.apache.struts.action.ActionServlet. This servlet routes the HTTP request to other Action objects Table deciding what business logic is going to be performed. These Action objects are • of Contents extensions • Indexof another class provided by Struts called org.apache.struts.action.Action; they are theand interface our legacy application. The servlet uses command beans to process XML on z/OS OS/390: with Introduction to a Service-Oriented Architecture the request. These command beans can connect with legacy programs running, for By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona example, in CICS Transaction Gateway. This servlet has an XML properties file where you can customize to specify messages, login procedures, and so forth. Publisher: IBM Date: June 11, 2003beans can access backend environments, for example CICS, interchanging 3.PubThese command data it through the COMMAREA. (Later we will describe how a traditional COBOL ISBN:with 0-7384-2615-6 program Pages: 264 can be updated to read XML files instead of CICS binary data format.)

4. The results of commands are data beans (JavaBeans); for example, the result of a CICS transaction is a COMMAREA represented in a Java record. If you have prepared a COBOL program running on CICS to respond with XML, data read from the COMMAREA can be an XML response. XML and XSL-based applications on z/OS and OS/390 5. Leverage The servlet allocates view beans that are used to process and format the data stored in the data beans into formats suitable for HTML output. (This is optional, but sometimes required Design concepts for Web services architectures on z/OS data beans may be predefined). The Struts view is made up of various components; the main one being the Java Server Page (JSP). The JSP is not a Struts component (you have Implement solutions based on practical examples to make it), but Struts provides you with some helpful elements: form beans, an extension of a Redbook Struts class called org.apache.struts.action.ActionForm, responsible for retaining andit This IBM describes the use of XML on IBM servers running z/OS or OS/390, and how validating entered bylegacy the client; and a JSP library, which includes discussion HTML tags,of can be extendeddata to modernize applications. It tag provides both a high-level beans tags,architecture logic tags, and template tags to design our JSP. service-oriented along with practical, detailed information about XML. The servlet the generatethe thefirst HTML output. In6.addition to an invokes overview of JSP XMLtoconcepts, part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample 7. The JSP uses the view beans to retrieve formatted results. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an 8. The view beans use the data beans to process and format the results. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. 9. The JSP generates the HTML result page. The part of the book Struts is geared more to the needs of application developers and Fromsecond an MVC point of view, provides: architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

9.

Model:

This is the most important part of the application because it represents the business logic. The model captures the state of the application. Here Struts does not provide anything because it is your own application. Usually this model is represented with Enterprise Java Beans, but it could be a legacy program.

View:

The view formats the data from the data bean and converts them into a valid HTML format to respond to the client. It does not include knowledge of the model • Table of Contents or controller. Here Struts provides an org.apache.struts.action.Action class that • Index developers use to create form beans, which are used to pass data between the XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture controller and view. In addition, Struts provides four tag libraries (HTML tag By Franck Injey, Jose Luis Fernandez Dipak Hore, David Carmona library, beans Lastra, tag library, logic tagSanchez library, and template tag library) that the developer can use in his JSPs to develop the interactive part of the application. Publisher: IBM

Controller: The controller manages the execution flow of the application, passing appropriate Pub Date: June 11, 2003 information between the model and the view. Struts provides an ISBN: 0-7384-2615-6 org.apache.struts.action.Action class that developers use to create the classes Pages: 264that control the flow of the application. Also, Struts provides an org.apache.struts.action.ActionServlet class to implement a controller servlet. Struts provides utility classes to support XML parsing, automatic population of JavaBeans properties based on the Java reflection APIs, and internationalization of prompts and messages. WebSphere Studio Developer has a wizard that generates Leverage XMLEnterprise and XSL-based applications on z/OS and OS/390 all Struts components, so it is easy to use these components in your applications. To learn more about this wizard and Struts, Design refer concepts to Legacyfor Modernization Web serviceswith architectures WebSphere onStudio z/OS Enterprise Developer, SG24-6586. Implement solutions based on practical examples

EGL Programs This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of EGL (Enterprise Generation a high-level programming facility that can be used to service-oriented architectureLanguage) along withispractical, detailed information about XML. create programs in a generic language, and then generate Java code or COBOL code. To access the generated code, the generation process can also part generate Java wrappers can be In addition to an overview of XML concepts, the first of the book providesthat detailed included in Java programsthe that have to access EGLand generated as Struts action instructions for installing XML Toolkit for z/OS OS/390code, V1.4 such and running the sample classes. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an When the of EGL generates COBOL code, it can also generate Java wrapper that overview thegenerator IBM WebSphere Application Server. This material is ofainterest mainlyclass to system uses a J2EE Connector resource adapter to access the COBOL code through a CICS transaction programmers and application programmers. gateway. The second part of the book is geared more to the needs of application developers and The generated COBOL a code can be deployed easily totothe z/OS host witharchitecture a wizard provided by architects. It provides comprehensive introduction service-oriented (SOA) and WebSphere Studio Enterprise Developer. The wizard helps to handle the file transfer of the Web services, and describes in detail some service-based topologies for both legacy systems and COBOL program, the DB2 this bind, the presents compilation, and the linkedit. new applications. Finally, book some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM With the for EGLe-business, support, you and test the EGL program; from this program you by can Patterns as develop well as XML-based message design,then, and the principles of design generate the Java or COBOL source code; and then you can prepare all steps involved in the contract and service design. generation of the executable from the tool. You use Struts to work with EGL because Struts creates many of the components (action servlet, JSPs, and so forth) that you need in your EGL program.

5.4.2 XML converters for traditional COBOL programs With WebSphere Studio Enterprise Developer, you can easily convert traditional CICS-COBOL applications to the XML messaging format and introduce them in the Web services world. To

allow XML documents to flow through to those business programs, you have to develop additional extensions to the original COBOL program. These extensions are used to convert XML messages into traditional data format for your program, and traditional responses from your program into XML messages. These extensions use the new XML capability described in "XML support in Enterprise COBOL for z/OS" on page 111. WebSphere Studio Enterprise Developer helps you in the development of these extensions, saving you the laborious and error-prone task of coding the processing procedure for the XML • Table of Contents PARSE verb. To build them you only have to follow a simple series of steps. First of all, you • Index import the COBOL source program file into the WebSphere Studio Enterprise Developer, and XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture then the tool generates a set of COBOL programs called "XML converters" (Inbound and By Franck Injey,based Jose Luis Lastra, binary Dipak Hore, Davidtraditional) Sanchez Carmona Outbound), onFernandez the original (CICS interface. The tool also generates a template COBOL program called "Converter driver" that illustrates how to invoke the converters. ThisPublisher: converter IBM driver manages the invocation flow among new converters and your original COBOL program. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

For example, if you have the COBOL source for a traditional CICS program that currrently is Pages: 264 running on your installation and that it is part of an entire application, and this COBOL program is the front-end for the incoming/outgoing requests to the application, this is the program you have to convert. You can do an FTP of your source COBOL file to your PC (for example, with the Transfer option in a PCOM session), and once you have it there, you can import this text file to the WebSphere Studio Enterprise Developer. To better illustrate this, let's consider the COBOL source file shown in Example 5-6 (obtained from the samples that come with WebSphere Studio Leverage XML and XSL-based applications on z/OS and OS/390 Enterprise Developer). Design concepts for Web services architectures on z/OS

Example 5-6. Sample COBOL program

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it IDENTIFICATION 23000000 can be extended toDIVISION. modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. PROGRAM-ID. DFH0ACTD. 23700000 In addition to an overview of XML concepts, the first part of the book provides detailed instructions forDIVISION. installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample ENVIRONMENT 24400000 programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an DATA DIVISION. 25100000 overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application WORKING-STORAGE SECTION. programmers. 25800000 The second part of the book is geared more to the needs of application developers and 26500000 architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web EXEC services, describes in detail some service-based topologies for both 27200000 legacy systems and SQLand INCLUDE SQLCA END-EXEC. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM 27900000 Patterns for e-business, as well as XML-based message design, and the principles of design by contract 01 TMP and service design. PIC X(40) VALUE SPACES. 28600000 01

01

SQL-MESSAGE

VALUE SPACES.

29300000

05

MSG

PIC X(10).

30000000

05

RC

PIC X(10).

30700000

SQLERROR. 05

MSG2

31400000 PIC X(10) VALUE 'SQLERRM:

'.

32100000

01

05

ERRM

PIC X(5).

32800000

05

ERMC

PIC X(70) VALUE SPACES.

33500000

SQLSTAT. 05

• •

MSG3

34200000 PIC X(10) VALUE 'SQLSTATE: '.

34900000

Table of Contents

05

Index SQLSTATT

PIC X(5).

35600000

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

01 SQLERRORP. By Franck Injey, Jose Luis Fernandez Lastra, Dipak 05

MSG4

Publisher: IBM

Pub Date: June 11, 2003

05

SQLERP

Hore, David Sanchez Carmona

36300000

PIC X(10) VALUE 'SQLERRP: '.

37000000

PIC X(8).

37700000

ISBN: 0-7384-2615-6 Pages: 264

01

ABEND-MESSAGE. 05

01

38400000

MSG5

39100000 PIC X(12) VALUE 'ABEND CODE: '.

39800000

05 Leverage ABEND-CODE XML andPIC XSL-based X(4). applications on z/OS and OS/390

40500000

Design concepts for Web services architectures on z/OS

41200000

Implement solutions based on practical examples HV-DATA.

41900000

This IBM Redbook describesPIC the use of XML IBM servers running z/OS or OS/390, and how it 05 HV-CUSTNO S9(9) COMPonVALUE +0. 42600000 can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along withCOMP practical, detailed XML. 05 HV-ACCTNO PIC S9(9) VALUE +0. information about 43300000 In addition to an overview of XML concepts, the first part of the book provides detailed 05 HV-BALANCE PIC S9(6)V9(2) COMP-3 VALUE +0. 44000000 instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services 44700000 development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system LINKAGE SECTION. 45400000 programmers and application programmers. 01 DFHCOMMAREA. 46100000 The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the 05to CUSTNO PIC S99999. 46800000 reader build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by 05 and ACCTNO PIC S99999. 47500000 contract service design. 05

BALANCE

PIC S9999V99.

48200000 48900000

PROCEDURE DIVISION.

49600000

START-PARA.

50300000 51000000

• •

MOVE 999999999 TO ACCTNO

51700000

MOVE 'SQLCODE: ' TO MSG.

52400000

MOVE 'DFH0ACTD PROGRAM STARTED. ' TO TMP.

53100000

EXEC CICS WRITEQ TD QUEUE('CSMT')

53800000

Table of Contents

FROM(TMP) Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

LENGTH(40)

54500000 55200000

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

END-EXEC.

55900000

Publisher: IBM Pub Date: June 11, 2003

56600000

ISBN: 0-7384-2615-6

MOVE TO HV-CUSTNO. Pages:CUSTNO 264

57300000

MOVE 'SEARCHING WITH CUST NO:' TO TMP.

58000000

EXEC CICS WRITEQ TD QUEUE('CSMT')

58700000

FROM(TMP) Leverage XML and XSL-based applications on z/OS and OS/390

59400000

LENGTH(40) Design concepts for Web services architectures on z/OS

60100000

END-EXEC. Implement solutions based on practical examples

60800000

EXECRedbook CICS WRITEQ TD the QUEUE('CSMT') 61500000 This IBM describes use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of FROM(CUSTNO) service-oriented architecture along with practical, detailed information about 62200000 XML. LENGTH(5) In addition to an overview of XML concepts, the first part of the book provides62900000 detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample END-EXEC. programs bundled with it. It describes how to use various tools that are part 63600000 of the services development environment, details the support for XML in Enterprise COBOL, and provides an EXECofCICS HANDLE ABEND Application Server. This material is of interest 64300000 overview the IBM WebSphere mainly to system programmers and application programmers. LABEL(ABEND-PARA) 65000000 The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and END-EXEC. 65700000 Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts66400000 to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns e-business, as well as XML-based message design, and the principles of design by EXECforSQL SELECT ACCT_NUMBER, BALANCE 67100000 contract and service design. INTO :HV-ACCTNO, :HV-BALANCE 67800000 FROM ACCOUNT

68500000

WHERE BALANCE IN

69200000

(SELECT MAX(BALANCE) FROM ACCOUNT

69900000

WHERE CUST_ID = :HV-CUSTNO) END-EXEC.

70600000

71300000 MOVE SQLCODE TO RC.

72000000

EXEC CICS WRITEQ TD QUEUE('CSMT')

72700000

FROM(SQL-MESSAGE) • •

Table of Contents

LENGTH(20) Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

END-EXEC.

73400000 74100000 74800000

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

75500000 Publisher: IBM

MOVE Pub Date:SQLERRML June 11, 2003TO

ERRM.

76200000

MOVE SQLERRMC TO ERMC.

76900000

EXEC CICS WRITEQ TD QUEUE ('CSMT') FROM (SQLERROR)

77600000

ISBN: 0-7384-2615-6 Pages: 264

LENGTH(85) END-EXEC.

78300000

MOVE SQLERRP TO SQLERP. Leverage XML and XSL-based applications on z/OS and OS/390

79000000

EXEC CICS WRITEQ TD QUEUE ('CSMT') FROM (SQLERRORP) Design concepts for Web services architectures on z/OS

79700000

LENGTH(18) END-EXEC. Implement solutions based on practical examples

80400000

MOVERedbook SQLSTATE TO SQLSTATT. 81100000 This IBM describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of EXEC CICS architecture WRITEQ TD QUEUE ('CSMT') FROM (SQLSTAT) service-oriented along with practical, detailed information about 81800000 XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample LENGTH(15) END-EXEC. programs bundled with it. It describes how to use various tools that are part 82500000 of the services development environment, details the support for XML in Enterprise COBOL, and provides an 83200000 overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. IF SQLCODE EQUAL ZERO 83900000 The second part of the book is geared more to the needs of application developers and HV-ACCTNO TO ACCTNO introduction to service-oriented architecture 84600000 architects.MOVE It provides a comprehensive (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and MOVE HV-BALANCE BALANCE new applications. Finally, thisTO book presents some important design concepts85300000 to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM END-IF. 86000000 Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. GO TO RETURN-PARA. 86700000 ABEND-PARA. EXEC CICS HANDLE ABEND

87400000 88100000

CANCEL

88800000

END-EXEC.

89500000

EXEC CICS ASSIGN

90200000

ABCODE(ABEND-CODE)

90900000

END-EXEC.

91600000

EXEC CICS WRITEQ TD QUEUE ('CSMT') FROM (ABEND-MESSAGE) • •

Table of Contents

LENGTH(16) END-EXEC. Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

RETURN-PARA.

92300000 93000000 93700000

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

MOVE 'DFH0ACTD PROGRAM STOPPED.' TO TMP.

94400000

Publisher: IBM

EXEC WRITEQ Pub Date:CICS June 11, 2003

TD QUEUE('CSMT')

95100000

ISBN: 0-7384-2615-6

FROM(TMP)

95800000

LENGTH(40)

96500000

END-EXEC.

97200000

Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390

97900000

EXEC CICS RETURN Design concepts for Web services architectures on z/OS

98600000

END-EXEC. Implement solutions based on practical examples

99300000

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of This program is part of a CICS application to manage customers and accounting information, service-oriented architecture along with practical, detailed information about XML. and it is in charge of the accounting details for the customers. The application has two main modules working as the front end for incoming/outgoing butprovides for this discussion In addition to an overview of XML concepts, the first part requests, of the book detailed we are going to concentrate only on one module. It uses DB2 to store data, and the access the instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running theto sample application is now via a 3270 terminal, using CICS. We want to convert this program to be able programs bundled with it. It describes how to use various tools that are part of the services to accept and respond with XML messages. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Use the following to accomplish this conversion: programmers andsteps application programmers. The second part of the book is geared more to the needs of application developers and architects. provides a comprehensive introduction service-oriented architecture (SOA) and 1. Do anItFTP or TRANSFER from the 3270 session to (TSO) to the PC of the source COBOL Web services, and describes in detail some service-based topologies for both legacy systems and program. If the file you have downloaded is called DFH0ACTD, rename this file to new applications. Finally, this book presents some important design concepts to enable the DFH0ACTD.cbl, so you now have a file on the PC called E:\ejemplos\DFH0ACTD.cbl. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns forWebSphere e-business,Studio as well as XML-based message design, and the principles of design by Start Enterprise Developer. contract and service design. 2. From the main screen in WebSphere Studio Enterprise Developer, open the Resource perspective by selecting Window Open Perspective Resource. Create a new Project for COBOL Resources by selecting File New Project (Figure 5-2).

Figure 5-2. Create a new project



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

3. On the next screen, select Simple

Project, and click Next (Figure 5-3).

Figure 5-3. Continue creating a new project Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

4. Type the name of the project you want to create (we used XML Account Test), and click Finish. After a moment, you get an screen like the one shown in Figure 5-4.

4.

Figure 5-4. New created project



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS on practical 5. Implement Select your solutions project bybased right-clicking it. examples This IBM Redbook describes use of XMLImport. on IBM servers z/OSselect or OS/390, and how it On the resulting pop-upthe menu, select On the running next screen File System and can be extended to modernize legacy applications. It provides both a high-level discussion of clickNext. service-oriented architecture along with practical, detailed information about XML. On the next screen specify the Directory where you downloaded the file (in our case it was In addition to an overview of XML concepts, the first part of the book provides detailed E:\ejemplos). instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. is It shown describes how to5-5. useThe various are part ofspecified the services The resulting screen in Figure files tools in thethat directory you are development environment, details the support for XML in Enterprise COBOL, and provides listed in the right-hand pane. From this list, select the COBOL source program file youanwant overview of the IBMInWebSphere Application This material is of interest mainly to system to work with. our example, this was Server. DFH0ACTD.cbl. programmers and application programmers.

Figure 5-5.more Importing a COBOL program The second part of the book is geared to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs with It describes how to use tools that are part theapplication services 6. If youbundled want to, youit.can select more than one various source COBOL program (ifof your development environment, details the support for XML in Enterprise COBOL, and provides an has many programs). overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers andwe application programmers. In our case, have selected more than one COBOL program: DFHOACTD.cbl for accounting details, and DFH0CSTD.cbl for customer details. This second program was The second part ofwith the a book is gearedas more downloaded file-transfer well.to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, describes in simply detail some service-based topologies both legacy systems and To select and more than one, click on all the files you want tofor work with. Once you have new applications. Finally, book presents importantscreen designisconcepts enable the selected the files youthis want, click Finish.some The resulting shown into Figure 5-6. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Figure 5-6. Selecting COBOL programs contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts Web services architectures on z/OSthe "+" symbol to the left of the You may need to for expand the project listing by clicking project name in order to open it and see the contents (your COBOL files). Implement solutions based on practical examples 7. Now, it is time to generate the XML converters for your COBOL program. Select the COBOL This IBM Redbook XML servers running z/OS or OS/390, andresulting how it file you want describes to convertthe (in use our of case it on wasIBM DFH0ACT.cbl) and right-click it. On the can be extended to modernize legacy applications. It provides both a high-level discussion pop-up menu, select Enable XML Generate XML converter. The Generate XML of service-oriented architecture along with practical, detailed information about XML. converter Wizard screen, shown in Figure 5-7, is returned. In addition to an overview of XML concepts, the first part of the book provides detailed Figure 5-7. Generate XML Converter instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 andWizard running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed The fields this screen haveToolkit the following instructions for on installing the XML for z/OSmeanings: and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services -Source File: The namethe of support your COBOL source file. The path for this is relative development environment, details for XML in Enterprise COBOL, andfile provides an to the project in which you imported it. In our case, we imported the COBOL file into our overview of the IBM WebSphere Application Server. This material is of interest mainly to system Project name XML Account Test (not into a subdirectory of the project), so the path is programmers and application programmers. /XML Account Test. The second part of the book is geared more to the needs of application developers and -Converter The folder where youto are going to store the automatically architects. It provides a folder: comprehensive introduction service-oriented architecture (SOA) and generated COBOL converter. In our case it is our Project name again, so we will have Web services, and describes in detail some service-based topologies for both legacy systems and everything in the same directory. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM name: The name of the converter program generated byby the Patterns for-Converter e-business, file as well as XML-based message design,COBOL and the principles of design WebSphere Studio Enterprise Developer. The default value is the same name as our contract and service design. original COBOL file, but starting with C. We changed this value to ACTDCNV.cbl, but this is optional. This converter is going to convert incoming and outgoing message to the appropriate format. In the same file (ACTDCNV.cbl), you are going to have two programs: ACTDCNVI for incoming XML messages, and ACTDCNVO for outgoing XML messages. Notice that the names for these programs are generated by default with the name of the converter file name plus I for incoming, and O for outgoing. -XSD file folder: The WebSphere Studio Enterprise Developer is going to generate a schema according to the data definitions we have in our original COBOL program. This is useful to control the format of the XML messages going to and coming from

our COBOL program. Here you specify the folder (again it is relative to the name of the project) where you want the schema file stored. -XSD file name: The name for our resulting schema file. -Converter driver folder: The converter is a COBOL program that shows the invocation sequence for the inbound converter (ACTDCNVI), your existing COBOL program and the outbound converter (ACTDCNVO). Here you specify the folder where Table of Contents this driver is going to be generated (relative to the project).

• •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

-Converter driver file name: The name you are giving to this COBOL driver. Once that it manages possible exceptions, controls the first invocation to ACTDCNVI to receive the incoming XML Publisher: message, IBM then the invocation to your original COBOL program (legacy application), received data in the XML message through the COMMAREA, and after the Pub Date: giving June 11, it 2003 of your legacy program, it invokes to ACTDCNVO to convert the results of ISBN: execution 0-7384-2615-6 your COBOL program in a XML message. In our case, we called this converter driver Pages: 264 ACTDDRV.

By Franck Injey, Joseprogram Luis Fernandez Lastra, Dipak Hore, David Sanchez this file is generated, you are goingCarmona to see

When you have filled in all the fields, click Next. 8. On the next screen the only thing you have to fill is the Program name, that is the Leverage XML that and appears XSL-based applications on z/OS DIVISION. and OS/390For example, if you enter PROGRAM-ID in the IDENTIFICATION ACTDCNV as the program name, the wizard will generate ACTDCNVI for the inbound Design concepts forname, Web services architectures on z/OS converter, and ACTDCNVD for the converter program ACTDCNVO for the outbound converter driver. Implement solutions based on practical examples 9. Figure 5-8 shows the resulting screen with all of the files listed. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Figure 5-8. information about XML. service-oriented architecture along with practical, detailed In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

10.

10. You have to edit the converter driver file (ACTDDRV) and look for a comment in the middle stating: Execute Legacy Application. This is where you code the invocation to your original COBOL program. The general structure of the driver is shown in Example 5-7.

Example 5-7. Locate "Execute Legacy Application" •

Table of Contents



Index

to incoming XML converter program) XML on z/OS(Invocation and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

..................

Publisher: IBM

..................

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 * + --------------------------

+

Pages: 264

* | Execute Legacy Application | * + -------------------------- + * . EXEC CICS LINK Leverage XML and XSL-based applications on z/OS and OS/390 * . PROGRAM('LEGACY') Design concepts for Web services architectures on z/OS * . COMMAREA(DFHCOMMAREA) Implement solutions based on practical examples * . ... This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended modernize...OR legacy applications. It provides both a high-level discussion of * .toEND-EXEC service-oriented architecture along with practical, detailed information about XML. * . In addition to an overview of XML concepts, the first part of the book provides detailed instructions for* installing the XML Toolkit z/OS and OS/390 V1.4 and running the sample . call 'LEGACY' usingfor DFHCOMMAREA programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an .................. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. .................. The second(Invocation part of the book geared more the needsprogram) of application developers and to is incoming XML to converter architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for point, e-business, as well XML-based 11. At this you have the as following files:message design, and the principles of design by contract and service design. - DFH0ACTD.cbl: Original COBOL program. - ACTDCNV.cbl: File that contains two programs (and other routines), ACTDCNVI to process incoming XML messages, and ACTDCNVO for outgoing XML messages. - ACTDDRV.cbl: The COBOL program to control the invocation flow sequence among input, original COBOL program, and output. - DFH0ACTD.xsd: A schema of the XML document that can be used in the servlet receiving incoming XML document.

The first invocation has to be to the driver (ACTDDRV.cbl) that is in charge to receive the XML message, to invoke to the incoming converter (ACTDCNVI), then to invoke the legacy program, and finally to invoke the output converter (ACTDCNVO). Of course, you have to work (by hand) with this driver. The first thing you have to decide is how to invoke the driver and from where. You will probably want to do this from a servlet or Java component. At this point, it is very useful to use components generated by Struts and EGL. You can generate • of Contents an EGL Java Table Wrapper to access an EGL CICS COBOL program, so an Action Struts class can • Index access this EGL CICS COBOL program, passing it the initial XML message. This EGL CICS COBOL XML on z/OS and OS/390: to athe Service-Oriented Architecture program can invoke, orIntroduction have inside, driver we generated. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The schema document (DFH0ACTD.xsd) can be used in the Struts Action Servlet to validate the incoming XML document. Publisher: IBM

Date: June 11,that 2003we have just generated is now enabled to process XML input. The flow can ThePub new process ISBN: 0-7384-2615-6 be summarized as follows: Pages: 264

An Action Servlet generated with Struts receives an incoming request from the client (XML document). Action Servlet validates the XML document with DFH0ACTD.xsd schema. Leverage XML invokes and XSL-based applications on z/OS and OS/390 Action Servlet a Command Bean (Java wrapper generated with WebSphere Studio Enterprise Developer), passing it the XML document. Design concepts for Web services architectures on z/OS Action bean (Command Bean) invokes COBOL driver (ACTDDRV) through J2EE Connector, Implement solutions based on practical examples passing it XML data in the COMMAREA. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it The COBOL driver invokes to the input converter (ACTDCNVI) that converts XML into binary can be extended to modernize legacy applications. It provides both a high-level discussion of data. service-oriented architecture along with practical, detailed information about XML. Then, the COBOL driver invokes to the Legacy COBOL program, passing it binary data In addition to an overview of XML concepts, the first part of the book provides detailed through the COMMAREA. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how toconverter use various tools that are part converts of the services The COBOL driver invokes to the output (ACTDCNVO), which the result development environment, details the support for XML in Enterprise COBOL, and provides an to an XML output. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Another Action Bean receives the response from the COMMAREA in XML format. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 6. WebSphere Application Server on z/OS and OS/390 • Table Contents the WebSphere Application Server 4.01 for z/OS and OS/390 and In this chapter weofdescribe • Index discuss its relationship with J2EE applications and XML. We also give a brief overview of Web XML on z/OS OS/390: Introduction to a Service-Oriented Architecture services forand DB2 UDB and some considerations regarding the J2EE application runtime environment. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

6.1 IBM WebSphere Application Server InChapter 7 we discuss in great detail the relationship between XML and Web services applications. By way of introduction, though, we first want to reflect on some issues regarding the Web-serving environment to enable Web applications for use inside WebSphere Application • Table Contents Server, as well asofconsiderations related to both the development and run-time environments. •

Index

XML on z/OS and OS/390: Introduction toz/OS a Service-Oriented WebSphere Applications Server for and OS/390Architecture provides a run-time environment for Java 2 Enterprise Edition (J2EE) applications. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

WebSphere for z/OS supports both Enterprise JavaBeans and Web components. These two types Publisher: IBM of J2EE application components can use: Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

The application programming interfaces (APIs) and services that the Java 2 Standard Pages: 264 Edition (J2SE) Software Development Kit (SDK) V1.3 provides Enterprise services such as Java Database Connectivity (JDBC), Java Naming and Directory Interface (JNDI), and the Java Transaction Service (JTS) and API (JTA) The J2EE specifications dictate which APIs and services each type of application component may Leverage XML and XSL-based applications on Enterprise z/OS and OS/390 use, and the environment in which they must run. beans run in the EJB container, and Web applications run in a Web container. These two containers in the WebSphere for z/OS J2EE Design concepts Web services architectures z/OS server conform to the for J2EE specifications for run-timeonenvironments. Figure 6-1 illustrates how the pieces are related. (Other configurations are possible, and are discussed in later sections.) Implement solutions based on practical examples

Figure 6-1. WebSphere Server in z/OS OS/390 This IBM Redbook describes the use ofApplication XML on IBM servers running z/OS orand OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

In this configuration, the address spaces (AS) related to a J2EE instance are the control region and one or more server regions. The number of server regions depends on the service level defined to WLM so that WLM can start server regions automatically to achieve the service goal.

6.2 The WebSphere for z/OS environment Figure 6-1 shows the pieces that comprise the WebSphere for z/OS run-time environment for Web applications, including the different address spaces that allow different configurations. There are two possible scenarios depending on how the HTTP listener is configured. The result is • Table of Contents that clients can access Web applications in the following ways: •

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

1. Using an HTTP Transport Handler

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Each J2EE server can be configured to directly receive HTTP requests for servlets, rather on an HTTP Server to route the requests to the Web container.

Publisher: IBM than relying

Pub Date: June 11, 2003

2. Using HTTP Server ISBN: an 0-7384-2615-6 Pages: 264

HTTP requests are routed to Web applications running in a Web container or residing in V3.5 runtime within the HTTP Server address space. WebSphere for z/OS uses specific directories in the hierarchical file system (HFS) for configuration data. These files, shown in Figure 6-2, are the following: Leverage XML and XSL-based applications on z/OS and OS/390

Figure 6-2. J2EE components

Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The current.env file contains the environment variables defining the HTTP Transport Handler server environment variables and environment files. The webcontainer.conf file contains definitions that enable the J2EE server's Web container to logically separate one or more Web applications from others installed in the same container, using constructs called virtual hosts and context roots. The jvm.properties file, which is associated with a specific J2EE server instance, contains a

pointer to the webcontainer.conf file.

6.2.1 Enterprise applications (J2EE applications) An enterprise application is a grouping of one or more Web, EJB, or application client modules. Besides being an efficient grouping mechanism, enterprise applications make it much easier to • Table of Contents deploy and maintain code at the level of a complete application instead of as individual pieces. • Index Enterprise applications can also override settings within the contained modules' deployment XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture descriptors (XML documents) to combine or deploy them in a more useful way. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

WebSphere for z/OS provides a J2EE server instance for J2EE application components: Enterprise beans and Web applications. J2EE servers contain at least one EJB container and one Publisher: IBM Web container. The EJB container manages Enterprise beans, while the Web container manages Pub Date: June 11, 2003 Web applications. ISBN: 0-7384-2615-6 Pages: 264

Web applications A Web module contains HTML, images, JSPs, Java classes and servlets, and all other resources required to create a Web application. Like the other modules, Web modules contain a deployment descriptor. In Web modules, the deployment descriptor, web.xml, has servlet Leverage XML and XSL-based applications on z/OS and OS/390 initialization and mapping information, as well as other settings for running the Web module within an application server. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

EJBs This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can extended to modernize legacy It deployment provides both a high-level discussion of EJB be modules contain EJB beans, their applications. server-specific code, a deployment descriptor service-oriented architecture along with practical, detailed information about XML. (an XML file), and optionally, helper classes. They contain the business logic of your application, and are typically called by Web application clients, or other EJB modules. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the Toolkit z/OS and OS/390 and running the This sample An enterprise application mayXML contain jar for files to be used by theV1.4 contained modules. allows programs bundled with it. It describes how to use various tools that are part of the services sharing of code at the application level, and is one place to put utility jar files that are used by development details the these support XML in Enterprise and instead providesofan multiple Web environment, or EJB modules. Placing jarfor files in the enterpriseCOBOL, application on a overview of the IBM WebSphere Application Server. This material is of interest mainly global classpath means they do not require special publishing and setup when moving to to system a new programmers and application programmers. server. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and .xml files related to the Web application Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the A Web application needs to be packaged in a Web Archive (WAR) an file,introduction and then this WARIBM file is reader to build robust SOA-based solutions rapidly. This includes to the packaged in e-business, an Enterprise file, perhaps withand thethe Enterprise beans (and their Patterns for asArchive well as (EAR) XML-based messagealong design, principles of design by jar files) and that service your Web application uses. To carry out both tasks there are several tools, which contract design. were discussed in Chapter 4, "Services development environment" on page 81. Both war and ear files contain XML files that describe each component in the application. These XML files enable the WebSphere for z/OS J2EE server to provide the correct execution environment for the application components. The content of the XML files is something that you supply when you package the application, but the files themselves are generated for you. The files related with the application are also shown in Figure 6-2. The web.xml file is the "deployment descriptor" for the Web application. Normally this file is created by the tool you use to create the WAR. Since the WebSphere Application Server needs to

understand this information, it is provided with an XML parser. The parser used in WebSphere 4.0.1 corresponds to the Apache Software Foundation's Xerces Java Parser 1.0.3. One of the CLASSPATH variables we discuss in 6.2.2, "JAR files and classes" on page 141 is the path to xerces.jar, which contains this Apache implementation of SAX APIs. This is not the latest level of xerces and you may consider it to be too low for your applications to use. Applications are not obliged to use this parser. The xerces provided with WebSphere Application Server is intended for its internal use; the recommendation is that any application • Table of Contents that depends on XML should package its own parser as part of the application, or use the • Index APP_EXT_DIR environment variable pointing to shared jar files among Web applications. In 6.4, XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture "Development-time and run-time considerations" on page 145 we discuss this issue in more By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona detail. Since there IBM may be multiple levels of xerces along a "general" classpath, we have developed a Publisher: simple servlet you can include in your applications to determine which level of xerces an Pub Date: June 11, 2003 application is using. ISBN: 0-7384-2615-6

Pages: 264 This servlet may be useful to determine the actual version of XML4J in use by your application running under WebSphere Application Server. Our servlet, shown in Example 6-1, is very simple. It invokes dynamically a class called org.apache.xerces.impl.Version. This class is included in xerceslmpl.jar, the jar file containing classes for xerces parser in the XML Toolkit V1R4. This Version class writes a message in the log with the version number.

Leverage XMLVersion and XSL-based applications on z/OS and OS/390 Example 6-1. servlet Design concepts for Web services architectures on z/OS Implement solutions based on practical examples package david; This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. import java.lang.*; In addition to an overview of XML concepts, the first part of the book provides detailed import java.io.*; instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services import java.util.*; development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system import javax.servlet.*; programmers and application programmers. The second part of the book is geared more to the needs of application developers and import org.apache.xerces.*; architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and import org.apache.xerces.impl.Version; new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract class and service design. extends GenericServlet { public VersionInfo public void init() throws ServletException { ServletContext context = getServletContext(); log("CLASSPATH IN USE: " + context.getAttribute("com.ibm.websphere.servlet.application.classpath")); }

public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); •

Table of Contents



Index PrintWriter out = res.getWriter();

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

ServletContext context = getServletContext();

Publisher: IBM

Pub Date: June 11, 2003

out.println("

Server Name: " + req.getServerName() +"

");

ISBN: 0-7384-2615-6 Pages: 264 out.println("

Port

in Use: " + req.getServerPort() + "

");

out.println("

Server Version: " + context.getServerInfo() + "

"); out.println("

Current Classpath:

" + context.getAttribute("com.ibm.websphere.servlet.application.classpath") + Leverage XML and XSL-based applications on z/OS and OS/390 ""); Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBMtry Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it { can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed Class c = Class.forName("org.apache.xerces.impl.Version"); instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to useovarious tools that are part of the services org.apache.xerces.impl.Version = (org.apache.xerces.impl.Version) development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system c.newInstance(); programmers and application programmers. System.out.println("***** The application is using the following The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and version of the XML parser: *****"); Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the String [] arrayForMain = new String[1]; reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by o.main(arrayForMain); contract and service design. } catch(ClassNotFoundException e) { out.println("ERROR1: " + e.getMessage()); // Add code here to check for the org.apache.xerces.framework.Version class. // Since you were unable to find impl.Version, you are actually

accessing // an older version of the parser } catch (IllegalAccessException e) { out.println("ERROR2: " + e.getMessage()); •

Table of Contents

} catch (InstantiationException e) {



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

out.println("ERROR3: " + e.getMessage());

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

} Publisher: IBM

} Date: June 11, 2003 Pub ISBN: 0-7384-2615-6 Pages: 264

private String getServerInfoName(String serverInfo) { int slash = serverInfo.indexOf('/'); if (slash == -1) return serverInfo; Leverage XML and XSL-based applications on z/OS and OS/390 else return serverInfo.substring(0, slash); Design concepts for Web services architectures on z/OS }

Implement solutions based on practical examples

} This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. You can include servletof inXML yourconcepts, application. timeof you it, the servlet responds In addition to anthis overview the Each first part theinvoke book provides detailed with the environment information. The response is written to the WebSphere Application Server instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample log, for example: programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. XML4J 4.0.2 The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. this book presents some important design concepts to enable the 6.2.2 JAR filesFinally, and classes reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by There are several places where you can put the classes needed for the application to run. The contract and service design. aim is that as the application is running, all of the invoked classes can be found and loaded. A Web module has two special folders: WEB-INF/classes and WEB-INF/lib. The classes folder may contain "loose" Java classes (classes that are not inside a jar file), and can be used for servlet support or utility classes within the scope of the Web application. The lib folder may contain jar files that are also used by the Web application. An enterprise application may contain jar files to be used by the contained modules. This allows sharing of code at the application level, and is one place to put utility jar files that are used by multiple Web or EJB modules.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

6.3 Application deployment In this section we describe the process of deploying a Web service application in WebSphere Application Server V4.01. The flow is illustrated in Figure 6-3. •

Table of Contents



Index

Figure 6-3. Deployment flow

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed Step 1 is a development TheToolkit goal is for to develop anOS/390 application an ear file instructions for installing task. the XML z/OS and V1.4and andgenerate running the sample using any of the development tools. All files belonging to a single application can be bundled programs bundled with it. It describes how to use various tools that are part of the services into a single archive file and deployed a runtime server the COBOL, archive file a specific development environment, detailsto the support for XMLby in placing Enterprise andinto provides an directory on the target server. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Import one or more ear files that contain applications you want to work on, or create a new application one or Enterprise Javaneeds Bean of .jar or .war files into the new The second and partimport of the book is more geared more to the application developers and application. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and Step 2 is the application which is illustrated in Figure 6-4. WebSphere for z/OS new applications. Finally,deployment, this book presents some important design concepts to enable the comes with Windows-based tools for application deployment: DDT/390fy, AAT and SMEUI. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Figure 6-4. Deployment contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

You import an ear file from your development workstation using the Systems Management User Interface (SMEUI) and, optionally, the Application Assembly Tool (AAT). Leverage XML and XSL-based applications on z/OS and OS/390 With WebSphere 4.0.1 service level W401400, ear files generated using WebSphere Studio Design concepts for Web services architectures on z/OS Application Developer can be deployed using the SMEUI short path. SMEUI then automatically invokes DDT/390fy and you are not required examples to use the AAT. However, you still need to use the Implement solutions based on practical AAT when using some WebSphere application extensions. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it The SMEUI is a graphical administrative application. addition to WebSphere can be extended to modernize legacy applications. ItIn provides both a high-levelsystems discussion of management functions, it is used to deploy Web and EJB modules from an earXML. file into the service-oriented architecture along with practical, detailed information about WebSphere 4.01 environment on z/OS or OS/390. You must use the SMEUI installation files that come with your of WebSphere for z/OS. In addition to anversion overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Note and application programmers. programmers The SMEUI comes WebSphere forthe z/OS. Theoftool is located in the WebSphere The second part tool of the bookwith is geared more to needs application developers and directory: /usr/lpp/WebSphere/bin/bboinst.exe architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and We used SMEUI version 4.0.020. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. the SMEUI does the following: For an e-business application, Sets up the security environment to host the enterprise bean according to its deployment descriptor. Registers the enterprise bean, its environment properties, resource references, and so forth in the JNDI name space. At the end of a successful deployment process, SMEUI automatically copies the application files to the z/OS UNIX file system using FTP.

One important thing to point out is the context root. Context roots are used to associate received URLs with an application in the host. WebSphere knows a URL is intended for a webapp based on a match with the context root. Context roots are defined during development with WebSphere Studio Application Developer, or during application assembly using AAT. The application is bound to a virtual host by making a match between the context root value and the value found in the webcontainer.conf file associated with the WebSphere server on z/OS. •

Table of Contents



Index

Figure 6-5. Context root

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

For further information, see "Websphere V4.0 and V4.0.1 for z/OS – Configuring Web Applications." This document can be obtained from the following URL: Leverage XML and XSL-based applications on z/OS and OS/390 http://www.ibm.com/support/techdocs Design concepts for Web services architectures on z/OS With the ear file generated, you need to start the SMEUI and install the J2EE application on the Implement solutions based on practical examples z/OS server, assuming a Web container has already been configured. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Start the SMEUI and create a new conversation. Select the J2EE server where you want to add can be extended to modernize legacy applications. It provides both a high-level discussion of the new application. Figure 6-6 shows a conversation. service-oriented architecture along with practical, detailed information about XML.

Figurethe 6-6. In addition to an overview of XML concepts, firstSMEUI part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Then,Design select the assembled earservices file for installation into server and follow the SMEUI concepts for Web architectures onthe z/OS instructions to: Implement solutions based on practical examples VALIDATE This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of COMMIT service-oriented architecture along with practical, detailed information about XML. ACTIVATE conversation. In addition to anthe overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample SMEUI transfers the file onto the WebSphere z/OS server using FTP. After activating this programs bundled with it. It describes how to use various tools that are part of the services conversation you are ready to try the URL of the J2EE application. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system For further information about SMEUI and J2EE refer to the following Web site: programmers and application programmers. http://www.ibm.com/servers/eserver/zseries/zos/bkserv/zswpdf/was401.html The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

6.4 Development-time and run-time considerations At compile time, a Java compiler needs to know about every class or jar file that your code refers to, so that it can safely compile and type-check against these classes. The Java compiler collects all the information about the needed classes. •

Table of Contents

• At run time, Index WebSphere Applications server for z/OS uses a classloader mechanism to find and XML z/OS and OS/390: Introduction a Service-Oriented loadon classes. Your application maytocompile correctly,Architecture but still have ClassNotFoundExceptions at run time. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

You can successfully use WebSphere for z/OS classloader defaults for most applications. If you Publisher: IBM encounter classloader errors, however, you might need to alter classloader operation or Pub Date: application June 11, 2003 components. To do so, you need to understand how the classloaders repackage ISBN: 0-7384-2615-6 interact, and how their operation can be altered. Pages: 264

Refer to WebSphere Application Server V4.0.1 for z/OS and OS/390 Assembling Java 2 Platform, Enterprise Edition (J2EE) Applications, SA22-7836 for a complete description of WebSphere z/OS classloaders operation. In this redbook, we limit our discussion to elements relevant to application packaging of XML parsers. Leverage XML and XSL-based applications on z/OS and OS/390

6.4.1 Overview of WebSphere classloader operations Design concepts for Web services architectures on z/OS

Aclassloader is a class that performs the function of loading a named class or interface. When an Implement solutions based on practical examples application client requests an Enterprise bean, for example, the WebSphere for z/OS run-time creates classloader to find the and use loadofthe classes from the appropriate jaror module. This IBMa Redbook describes XML on IBM servers running z/OS OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Each of the WebSphere for z/OS classloaders share the following common features, but each has service-oriented architecture along with practical, detailed information about XML. different values that define the classloader and its behavior: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Context classpath programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML and type provides Each classloader has an associated classpath that in is Enterprise defined for COBOL, the specific of an overview of the IBM WebSphere Application Server. This material is of interest mainly system classloader, and for the module (jar or war) associated with that classloader. Theto classpath programmers and application programmers. defines the part of the HFS file system that the classloader searches to locate a requested class. The second part of the book is geared more to the needs of application developers and architects. It provides Delegation mode a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, book presents some importantand design conceptsmode. to enable Each classloader hasthis an associated parent classloader a delegation The the reader to build robust Thiswill includes an introduction to the IBM delegation mode SOA-based determines solutions when the rapidly. classloader delegate a load request to its Patterns for e-business, as well asdelegate XML-based message and the of design by parent; the classloader may to its parent design, either before or principles after searching its own contract and service design. classpath.

Visibility mode WebSphere for z/OS supports the following classloader modes, also known as visibility modes: Application mode, which is the default classloader mode Compatibility mode

Server mode Module mode J2EE Application mode Although IBM recommends using the default classloader mode (application mode), you may alter the mode if the needs of your application warrant a change in classloader behavior. Base your • Table of Contents choice of classloader mode on the information presented in the following table. • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Table 6-1. WebSphere for z/OS classloader guidelines

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Use Pages: 264 classloader

When your application

Application (default)

Is composed of a number of modules packaged in only one ear file per application, and those modules within an application need to work together. In other words, each application is complete and independent of other applications. Use SMEUI to set this classloader through environment variable com.ibm.ws390.server.classloadermode=2 Leverage XML and XSL-based applications on z/OS and OS/390

Server Is composed of a number of modules packaged in more than one ear file, and Design concepts for Web services architectures on z/OS those modules need to work together. Use SMEUI to set this classsloader through environment variable com.ibm.ws390.server.classloadermode=3 Implement solutions based on practical examples Compatibility Needs to be moved from WebSphere for z/OS Standard Edition V3.5 to This IBM Redbook describes for thez/OS use of XML on IBM servers running z/OS or OS/390, and how it WebSphere V4.0.1 can be extended to modernize legacy applications. It provides both a high-level discussion of service-orientedUse architecture with practical, through detailed environment information about XML. SMEUI toalong set this classloader variable com.ibm.ws390.server.classloadermode=1 In addition to an overview of XML concepts, the first part of the book provides detailed instructions Module for installing Is composed the XML of multiple Toolkitmodules, for z/OS and eachOS/390 of whichV1.4 mayand have running a distinct the sample version of programs bundled some with shared it. It describes code segment, how toand usethus various musttools be kept thatisolated. are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Use SMEUI to setApplication this classloader through environment variablemainly to system overview of the IBM WebSphere Server. This material is of interest com.ibm.ws390.server.classloadermode=0 programmers and application programmers. J2EE classloader is compliant with thedevelopers J2EE 1.3 specification. The second part Requires of the book is gearedbehavior more to that the needs of application and Application This mode is set through the JVM property architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and com.ibm.ws.classloader.J2EEApplicationMode=true|false Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the Notes® classrobust packaging for specific classloader reader toonbuild SOA-based solutions rapidly.modes: This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. For all classloader modes, parent classloaders cannot see the classes handled by child classloaders. If your application modules use a MANIFEST classpath, that classpath overrides the following default classloader operation: - Module mode: All module classloaders in an application are visible to each other, and all utility jar files in the application are visible to all module classloaders in the application.

- Compatibility mode: Utility jar files are visible to all module classloaders in all active applications. Package EJB JAR and WAR modules that make up an application in the same ear module. For module mode: If a WAR module needs to access an EJB JAR module, use a MANIFEST classpath entry in the WAR module to document the dependency. • •

Table of Contents Common classes used by EJB JAR and WAR modules should be put in a JAR that is added to Index the ear file, and referenced in the MANIFEST classpaths of the modules.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Alternatively, can specify shared on the APP_EXT_DIR By Franck Injey, Jose Luisyou Fernandez Lastra, Dipak Hore,classes David Sanchez Carmona

environment variable for the J2EE server. This is the technique we used for all the WebSphere tests documented in this redbook.

Publisher: IBM

Pub Date: library June 11, jar 2003files Class

to be used only by WAR modules should be added to the WEB-INF/lib ISBN: 0-7384-2615-6 directory of the WAR module. Pages: 264

The variable com.ibm.ws390.server.classloadermode is set for the server through the SMEUI by specifying its value on the properties form for a J2EE server. It is also possible to override the value for a given server instance by setting com.ibm.ws390.server.classloadermode in its JVM properties file. Each of the classloaders identified is defined as a child of the classloader above it. This conforms Leverage XML and XSL-based applications on z/OS and OS/390 to a chain that in general is similar to the one shown in Figure 6-7, though details may differ depending the visibility mode. Designonconcepts for Web services architectures on z/OS Implement solutions based on practical examples Figure 6-7. Classloader: Application

mode

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

WebSphere for z/OS creates one application classloader for each application installed in the J2EE

server. The classpath for a given classloader includes the module paths for all war or jar files within the application. The Application extensions classloader is the parent of all application classloaders. The classpath for the Application extensions classloader consists of the path specified on the APP_EXT_DIR environment variable for the J2EE server. This variable is intended for classes that can be shared by all applications installed in the J2EE server. This makes it the preferred choice to place XML parser classes when multiple applications require access to the parser classes. As stated, this is • Table of Contents the solution we used for all our tests running in WebSphere. •

Index

XML on z/OS a Service-Oriented Architecture Search can and onlyOS/390: go up Introduction the tree; it to cannot go down. When a classloader

is requested to find a class, By Franck it Injey, doesJose notLuis search Fernandez down. Lastra, If the Dipak class Hore,is David notSanchez found Carmona going up the tree a ClassNotFoundException occurs. Publisher: IBM

With delegation defaults in effect, the search for a particular class begins with the application Pub Date: June 11, 2003 classloader associated with the application containing that class. If the class is not found in that ISBN: 0-7384-2615-6 application's modules, the application classloader passes the search request to its parent. The 264 progresses up the tree until the class is found or a ClassNotFoundException searchPages: request occurs. The delegation mode for the application classloaders may be altered, as explained in the next section, "Delegation mode." WhenLeverage starting the the BBOJ0018l message the selected visibility mode appears XMLserver, and XSL-based applications on indicating z/OS and OS/390 in the Server Region Address Space log, as shown in Figure 6-8. This example indicates application for our server. Designmode concepts for BBOASR2 Web services architectures on z/OS Implement solutions based on practical examples Figure 6-8. Visibility mode

message

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed To change from one visibility mode to another you need to change the instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample com.ibm.ws390.server.classloadermode variable to the desired value using SMEUI, then stop programs bundled with it. It describes how to use various tools that are part of the services and restart the J2EE server. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers.

Delegation mode

The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Each classloader has an associated parent ClassLoader. The delegation mode specifies whether WebClassLoader services, and describes service-based topologies both legacy systems the will delegateina detail searchsome request to its parent before orfor after searching its own and new applications. Finally, this book presents some important design concepts to enable the ClassPath. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by When is true, the classloader first delegates the request to its parent contract anddelegation service design. classloader. If none of the parent classloaders can find the class, the original classloader attempts to load the class. When delegation is false, the classloader first attempts to load the class itself before going to its parent. Default delegation values are assigned depending on the visibility mode you are using. You can change the defaults by setting the following variables in jvm.properties. Server mode, when com.ibm.ws390.server.classloadermode=3

All module classloaders of all applications in the same server instance are in the same group and all applications have visibility from each other. Default delegation values are:

com.ibm.ws.classloader.warDelegationMode = false

• •

com.ibm.ws.classloader.ejbDelegationMode = true Table of Contents Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Application mode, whenLastra, com.ibm.ws390.server.classloadermode=2 By Franck Injey, Jose Luis Fernandez Dipak Hore, David Sanchez Carmona Applications have no visibility from each other and they do not share jar files. Each application is isolated. Default delegation values are:

Publisher: IBM

Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 Pages: 264 com.ibm.ws.classloader.warDelegationMode = false

com.ibm.ws.classloader.ejbDelegationMode = false

Module mode, when com.ibm.ws390.server.classloadermode=0 Leverage XML and XSL-based applications on z/OS and OS/390 Each module in the or different applications independent and module classloaders Design concepts for same Web services architectures on is z/OS have no visibility from each other even in the same application. Default delegation values Implement solutions based on practical examples are: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides com.ibm.ws.classloader.warDelegationMode = falseboth a high-level discussion of service-oriented architecture along with practical, detailed information about XML. com.ibm.ws.classloader.ejbDelegationMode = true In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Compatibility mode, when com.ibm.ws390.server.classloadermode=1 overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application All EJBJarClassloaders of programmers. all applications in the same server instance are in the same group, so applications have EJB jar files visibility to each other. But WAR modules are The second part of so theall book geared more to the needs of application and independent, the is WARClassLoaders have no visibility to eachdevelopers other. Default architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and delegation values are: Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This com.ibm.ws.classloader.warDelegationMode = includes false an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. com.ibm.ws.classloader.ejbDelegationMode = true

6.4.2 Classpath ClassLoaders are in charge of loading required classes from the specific classpath to which they have been assigned. ClassLoaders go to a classpath to look for that required class.

As part of the installation and customization of WebSphere Application Server you define a classpath environment variable CLASSPATH using the SMEUI. This variable contains the definition of the paths to the server jar files where the System ClassLoader is going to look for general classes. A typical example is shown in Figure 6-9. •

Figure Table of Contents



Index

6-9. CLASSPATH in current.env

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Once the Control Region is started, these files are the server classpath for the system classloader. Leverage XML and XSL-based applications on z/OS and OS/390 Modifications to this variable made architectures through a conversation Design concepts for Webare services on z/OS with SMEUI. Figure 6-10 displays a conversation with SMEUI to browse the CLASSPATH variable for the system classloader. Implement solutions based on practical examples

Figure 6-10. Visualize CLASSPATH using SMEUI

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

6.5 Application considerations We have discussed several aspects of J2EE application deployment, and the use of WebSphere classloaders. These functions lead to more choices on how you assemble your applications. • Table of Contents One of the things that confuses new developers is the manner in which each of the classloaders • is handled inIndex WebSphere Application Server Version 4.01. They are implemented in a hierarchy XML z/OS and OS/390:order Introduction to a Service-Oriented Architecture that on defines a search as follows: By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Except for the delegation mode nuance, the application classloaders (WARClassLoaders and are searched first

Publisher: IBM EJBClassLoaders) Pub Date: June 11, 2003

APP_EXT_DIR ISBN: 0-7384-2615-6 Pages: 264

WebSphere Classloader System Classloader The key thing to remember when assembling your application is that requests only go up the search tree. That means that a request to load a class located in the application classloaders that Leverage and XSL-based applications oninz/OS and OS/390 originates fromXML the System classloader will result a ClassNotFoundException error. Conversely, a request to load a class located in the system classloader that originates from the Design concepts for Web services architectures APP_EXT_DIR classloader will be successfully passed on onz/OS up the chain. Implement based on practical The end result is solutions that if a developer packagesexamples a jar file in a WebSphere system classpath, it cannot depend on classes within modules down the tree because the classloader can't see them . This IBM Redbook describes thea use of XML on IBM servers running z/OS or OS/390, and how it During our tests, we triggered number of ClassNotFoundException errors. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture with practical, aboutand XML. To further complicate things, along WebSphere supportsdetailed differentinformation visibility modes, different delegation mode choices may modify the search sequence, as explained in the previous sections. In addition anmultiple overview of XMLcombinations, concepts, the the firstdifficulty part of the book provides Since there to are possible is to decide whichdetailed one is the best to instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample assemble your applications. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Assembling J2EE applications programmers and application programmers. The second part of thecontains book is XML geared moreas to part the needs of application Although WebSphere parsers of its code, they are developers for internal and use of the architects. Itserver provides a comprehensive introduction service-oriented architecture WebSphere itself. It is recommended that youto provide your own version of the(SOA) parserand Web services, and describes in detail some service-based forapplications. both legacy systems and classes, xerceslmpl.jar and xmlParserAPIs.jar, when usingtopologies XML in your The same new applications. applies Finally,to this book presents design concepts to enable the recommendation applications usingsome SOAPimportant and requiring soap.jar. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns e-business, as well as XML-based message design, and theshould principles of design If you arefor deploying an XML-based or a Web services application, you package the by contract and service design. required jar files either in WEB-INF/lib together with the rest of the jar files, or in a location recognized by the WebSphere classloaders. During our tests, we used Application visibility mode with the use of the Application Extensions directory (APP_EXT_DIR) and found that it provides a very convenient and efficient way to package the applications. See "The Web Services WORF sample" on page 202. The APP_EXT_DIR alternative allows consistency across applications since they all refer to the same set of jar files, something which also simplifies maintenance. However, placing the jar files in the APP_EXT_DIR classpath creates dependencies across

applications. It also requires an additional setup step to create the application extensions directory when you move applications from one run-time environment to another. If easy portability across multiple run-time servers is the main concern, you may choose to package all the war and jar files the application needs into one single ear file. The parser and SOAP jar files being included reside in the WEB-INF/lib directory. While this is one way to make the application self-contained and more easily portable, there will be an added cost for maintenance because of the jar files duplicated across multiple applications. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

SDK 1.4 By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XML and Java are rapidly evolving technologies. As XML is gathering more and more importance, Publisher: IBM development and deployment patterns also change. Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 IBM has announced a new version of the IBM SDK for z/OS, Java 2 Technology Edition V1.4. Pages: 264 level you can take advantage of enhancements, such as a new Just-in-Time (JIT) With this SDK compiler, the inclusion of XML parser, security APIs, and persistent reusable technology.

The Java API for XML (JAXP) processing has been added to the Java 2 Platform. It provides basic support for processing XML documents through a standardized set of Java Platform APIs. The Java API for XML processing includes the basic facilities for working with XML documents through the following set of Java Platform APIs: Leveragestandardized XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Document Object Model (DOM) Level 2 Implement solutions based on practical examples Simple API For XML Parsing (SAX) 2.0 This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it XSLT 1.0 can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Pluggability Layer In addition to an overview of XML concepts, the first part of the book provides detailed The prerequisite to use JDK 1.4 is z/OS V1.4 or later. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with1.4 it. It how to use various tools with that aare partimplementation. of the services In It is possible with JDK to describes override the XML parser provided given development environment, details the support for XML in Enterprise COBOL, and an order to take advantage of new revisions to endorsed standards and override the provides JAXP overview of the IBM WebSphere Application Server. This material is of interest mainly to system implementation in J2SE SDK 1.4 and above, the Endorsed Standards Override Mechanism allows programmers and application developers to provide versionsprogrammers. of an endorsed standard newer than those included in the Java 2 Platform as released by Sun Microsystems. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction service-oriented architecture (SOA) and More detailed information on the Endorsed StandardstoOverride Mechanism is provided at the Web services, and describes in detail some service-based topologies for both legacy systems and following URL: new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM http://java.sun.com/j2se/1.4.1/docs/guide/standards/ Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Figure 6-11. Endorsed Standards Override Mechanism



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Classes implementing newer versions of endorsed standards should be placed in jar files. The Design concepts for Web services architectures on z/OS system property java.endorsed.dirs specifies one or more directories that the Java runtime environment will search for such jar files. Implement solutions based on practical examples If more than one directory path is specified by java.endorsed.dirs, they must be separated by This IBM Redbook describes use is ofset XML IBM servers running z/OS OS/390, and how it File.pathSeparatorChar. If nothe value foron java.endorsed.dirs, then SunorMicrosystem's can be extended to modernize legacy applications. It provides both a high-level discussion of implementation of the Java 2 Platform looks for jar files in a default standard location: service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample \lib\endorsed [Microsoft Windows] programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an /lib/endorsed [Solaris or Linux] overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The part of refers the book is geared more to the of application Heresecond to the directory where theneeds runtime software is developers installed. and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and WebJava services, andenvironment describes in will detail some service-based for both systems and The runtime use classes in such jar topologies files to override thelegacy corresponding new applications. this2 book presents some important classes provided inFinally, the Java Platform as shipped by Sun. design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns e-business, wellinas XML-based message design, andProcessing the principles of design by For morefor information onas JAXP JDK 1.4 see the Java API for XML Frequently Asked contract and service Questions Web page design. at: http://java.sun.com/xml/jaxp/faq.html#JDK14

Part 2: Service-oriented architecture • •

In this part we provide a comprehensive introduction to services-oriented architecture (SOA) and Web Services. We discuss the services development environment, service-based solutionTable topologies, JCA, and some design guidelines. of Contents Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Chapter 7. Service-oriented architecture and Web services • of Contents This chapter Table introduces service-oriented architecture (SOA) and how it can be used to develop • Index new generation e-business applications by exploiting existing legacy applications on z/OS and XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture OS/390. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

It also presents details about how Web services-based solutions can be implemented on z/OS and OS/390 to satisfy the same requirements. Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

7.1 Introduction Service-oriented architecture (SOA) is a concept specifying that an application can be made up from a set of independent but cooperating subsystems or services. Such a framework isolates each service and exposes only the necessary declared interfaces to other services. •

Table of Contents

• This not onlyIndex allows architects to organize and reduce dependencies in their products, but also XML on z/OS OS/390: Introduction to a Service-Oriented Architecture provides forand a tailored mix of services in the deployed environment. This approach can be used to support existing requirements, enterprise application integration, for example, as well as By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona provide a foundation for extending the platform to meet specific business demands, such as rapid solution delivery for e-business. Publisher: IBM

Date: June 11, 2003 aspects of an application so that, as technology changes, services ThePub SOA model isolates ISBN: 0-7384-2615-6 (components) can be updated independently, limiting the impact of changes and updates to a manageable Pages: 264 scope. Managing change is an important benefit of leveraging component architectures and models. If not managed well, change can result in the degradation of a modern Web application into unwanted complexity. A comprehensive design pattern can bring much needed structure to Web application development.

By re-engineering applications on an EIS server (for example CICS or IMS-based EIS) into services, we can utilize Host applications as re-usable services to a wide range of Leverage XML and the XSL-based applications on z/OS and OS/390 applications for e-business. Using standard architectures like J2EE, specifically the J2EE Connector Architecture (JCA) of the architecture, Design concepts for Webcomponent services architectures on z/OS organizations can develop a capability to provide solutions by harvesting components from existing information assets (inhouseImplement applications, third-party andexamples so forth). solutions basedpackages, on practical Also, withRedbook the help describes of a new generation of development toolrunning sets, like WebSphere Studio This IBM the use of XML on IBM servers z/OS or OS/390, and how it Enterprise Developer (WSED), WebSphere infrastructure on z/OS, XML Toolkit for z/OS, can be extended to modernize legacy applications. It provides bothand a high-level discussion ofwe are now in a position to modernize assets to SOA-compliant service-oriented architecture along organizations' with practical, legacy detailed information about XML.components. One of the major benefits of being able to deliver this new architecture on the z/OS platform is In addition reducing theto"total an overview cost of ownership" of XML concepts, (TCO) the of running first part e-business of the book applications. provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

7.2 SOA definition Any service-oriented architecture contains three roles: a service requestor, a service provider, and a service registry (see Figure 7-1). •

Table of Contents



Index

Figure 7-1. Web services

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Aservice provider is responsible for building a useful service, creating a service description overview of the IBM WebSphere Application Server. This material is of interest mainly to system for it, publishing that service description to one or more service registries, and receiving programmers and application programmers. service invocation messages from one or more service requestors. The second part of the book is geared more to the needs of application developers and Aservice requestor is responsible for finding a service description published to one or more architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and service registries, and for using service descriptions to bind to or invoke services hosted by Web services, and describes in detail some service-based topologies for both legacy systems and service providers. Any consumer of a service can be considered a service requestor. new applications. Finally, this book presents some important design concepts to enable the reader toservice build robust SOA-based solutions rapidly. This includes an introduction to the The registry is responsible for advertising service descriptions published to itIBM by Patterns for e-business, as well as XML-based message design, and the principles of service providers, and for allowing service requestors to search the collection ofdesign serviceby contract and service design. within the service registry. Once the service registry makes a match descriptions contained between the service requestor and the service provider, the service registry is no longer needed for the interaction. Any program or network node can play each of these roles. In certain scenarios a single program might fulfill multiple roles; for example, a program could be a service provider providing a service to downstream consumers, as well as a service requestor, itself consuming services provided by others. SOA also includes three operations: publish, find, and bind. These operations define the contracts between the SOA roles.

Thepublish operation is an act of service registration or service advertisement. It acts as the contract between the service registry and the service provider. With the find operation the service requestor states one or more search criteria, such as type of service, quality of service, and so forth. The result of the find operation is a list of service descriptions that match the find criteria. •

Table of Contents

ThebindIndex operation embodies the client-server relationship between the service requestor and the service provider. The bind operation can be dynamic (or late), such as on-the-fly XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture generation of a client-side proxy based on the service description used to invoke the By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona service; or it can be very static (or early), such as a developer hand coding the way a client application invokes a service (that is, during application construction time). •

Publisher: IBM

For Pub a more in-depth discussion of SOA and other related topics, refer to Building Web Services Date: June 11, 2003 with Java by Steve Graham, et. al. (ISBN 0-672-32181-5). ISBN: 0-7384-2615-6 Pages: 264

7.2.1 Role of XML in SOA The key to the entire service-oriented architecture approach is the service description itself. Many aspects of a service need to be communicated, and data-centric XML has been suggested as theLeverage basis forXML service anddescriptions. XSL-based applications XML schema onisz/OS the base and OS/390 data type mechanism in the service description; however, those organizations which are still using DTD can mitigate the type Design concepts for Web servicestype architectures requirements by defining an abstract library for on thez/OS DTD. Implement solutions based on practical examples

7.2.2 SOA development This IBM Redbook describes the strategy use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Web Services, defined at length later in the chapter, are being developed as the means to implement an SOA approach. However, not all organizations are ready to embrace it right away. In addition to an overview ofboth XML technical concepts,and the developmental. first part of the For book providesSOAP detailed There are several problems, example, protocol is instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample still not efficient enough, WSDL and UDDI are still evolving, and so forth. programs bundled with it. It describes how to use various tools that are part of the services development supportto for XML an in Enterprise and provides In this sectionenvironment, we present adetails tacticalthe approach adopt XML-basedCOBOL, SOA that will enable an an overview of the IBM WebSphere Application Server. This material is of interest mainly to system organization to make a start right away instead of waiting for a full-function Web services programmers and programmers. infrastructure to beapplication in place. The model is based on practical experience implementing an XMLbased service model for z/OS and OS/390 environments. This approach fully complements the The second part of the bookmodel. is geared more to the needs of application developers and Web services development architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Webmain services, andfor describes in detail some is service-based topologies both legacy systems and The reason presenting this model that re-engineering the for existing organizational new applications. Finally, this bookto presents concepts toItenable thea assets (transactions, for example) developsome Web important services is design not a trivial task. requires reader to build robustof SOA-based rapidly. This includes introduction the IBM considerable amount effort, plussolutions knowledge and experience, to an design a propertoreusable Patterns Some for e-business, as well XML-based message design, and the principles of design by Service. people think it is as a simple one-to-one translation of an existing program module contract and service design. interface to XML tags. It is not. The services that we are going to harvest from legacy programs need to be made highly reusable, not just developed for solving single point-to-point solutions. The essence of the service needs to be captured in a data-centric XML interface. The interface description needs to be properly typed, especially, the "Business Data" content of a message. By following a data-centric XML approach we can externalize the domain validation rules within a procedural code module, for example, a COBOL program. This will considerably reduce the load of exception messages over the Web. Finally, the point we want to emphasize is that if you want to start on the path of legacy application modernization, then adopting a service-oriented architecture is not only the right way

to start, it will secure your investment in terms of adoption of Web Services technology in a big way. In 7.2.4, "Service development approach" on page 167, we show you how this can be done.

7.2.3 Web Services Inter-operability Stack • Table Contents In this section weof present the tactical or short-term solution by comparing and contrasting it • Index with the Web Services Inter-operability Stack model. Hopefully, this will show how the tactical XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture approach complements the Web services model. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The three stacks of Web services are: Publisher: IBM Pub Date:stack June 11, 2003 Wire ISBN: 0-7384-2615-6

Description stack Pages: 264 Discovery stack

The wire stack Leverage XML and XSL-based applications on z/OS and OS/390

Figure 7-2. Web Services inter-operability

Design concepts for Web services architectures on z/OS Implement solutions based on practical examples

This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Webwire services, describes detail some that service-based for both legacy systems The stackand represents theintechnologies determinetopologies how a message is sent from the and new applications. Finally, this book presents important design the concepts to enable the service requestor to the service provider. Forsome the tactical approach, protocol stack remains reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM the same: HHTP/HTTPS, SMTP, FTP, MQSeries, and so forth. Patterns for e-business, as well as XML-based message design, and the principles of design by contract andEncoding service design. At the Data level, there are several possibilities. Organizations which have not yet adopted XML Schema can use DTD with a "home grown" type library to implement data-centric XML-oriented messages. The next two layers, SOAP encoding and SOAP Header, can be bypassed by adopting XML over RPC, and developing a message header convention to which the involved parties agree.

The Description stack Figure 7-3. Description stack



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

The main purpose of service description is to communicate those aspects of a service that might Leverage XML and XSL-based applications on z/OS and OS/390 be important to the service requestor. XML is the basis for service description. Web Services Description Language (WSDL) is the interface definition language for Web services. It describes Design concepts for Web services architectures on z/OS the set of operations supported by a Web service, various binding contracts, and so forth. The topmost layer in solutions the description is the Service Orchestration layer. This is implemented Implement based stack on practical examples using Business Process Execution Language For Web Services (BPEL4WS) or BPEL for short. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it For tactical solution we present a rigorous data-centric XMLboth interface of the service (that can the be extended to modernize legacy applications. It provides a high-level discussion ofis, a pair of Request and Responsealong messages), similar to the requirement ofabout the PortType service-oriented architecture with practical, detailed information XML. element in a WSDL document. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services The discovery stack development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system Figure 7-4. Discovery stack programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

The discovery stack organizes technologies associated with Web services discovery. The first level of the stack represents a simple inspection level. Inspection is a technique for discovering the service description given that the details about the service are already known. Because service discovery is a very broad concept, it is unlikely that one solution addresses all of its requirements. The Universal Description, Discovery, and Integration (UDDI) specification addresses a subset of the overall requirements by using a centralized service discovery model.

The Web Services Inspection Language (WS-Inspection) is another service discovery mechanism that addresses a different subset using a distributed usage model. The WS-Inspection specification is designed around an XML-based model for building an aggregation of references to existing Web service descriptions. The discovery level represents the capability of discovering Web services and service providers using a capability-based lookup. •

Table of Contents In the tactical approach both of these layers can be substituted for by a centralized service • Index catalog facility, or better yet, by an XML Repository product. By using an XML Repository, we are XML on z/OS andearly OS/390: Introduction to a Service-Oriented Architecture alluding to an binding scenario, meaning at design time. Developers do a service capability-based By Franck Injey, Jose Luis search Fernandez to locate Lastra,an Dipak appropriate Hore, David Sanchez serviceCarmona in the XML Repository. For example, within an organization, it will identify which teams and systems are responsible for the service. An Publisher: XML interface definition of all the elements constituting the service interface will then be IBM retrieved from the Repository. Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 In conclusion, we would like to reiterate, you can start building applications based on SOA Pages: 264 architecture even without a full Web services infrastructure complement. In the following section we present a logical view of an XML-based services model drawn from a real-life implementation. Subsequently, in the Services Development Environment chapter, we show how tools like WSED can be utilized to automate generation of many components of Services. And in the Solution Topology chapter, we show how different runtime models can implement applications based on SOA approach. Leverage XML and XSL-based applications on z/OS and OS/390

concepts for Web services architectures on z/OS 7.2.4Design Service development approach Implement solutions based on practical examples In this section we present an approach for converting an existing host transaction into an SOAThis IBM Redbook the use XML on IBM or OS/390, and how it compliant service. describes The service will beofdelivered as aservers pair of running Request z/OS and Response XML-encoded can be extended to modernize legacy applications. It provides both a high-level discussion of messages. service-oriented architecture along with practical, detailed information about XML. The steps in the process are as follows: In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services 1. If the transaction is a conversational one,for convert it into an atomic transaction, meaning development environment, details the support XML in Enterprise COBOL, and provides an request and response mode. The amount of effort required will vary depending on well overview of the IBM WebSphere Application Server. This material is of interest mainly tohow system the code is written, the amount of documentation (if any) available, and the knowledge of programmers and application programmers. the programmer about the system. However, there is some good news on the horizon: the WebSphere Asset a legacy asset harvesting will simplify The second part of the Analyzer, book is geared more to the needs ofinfrastructure, application developers andthe task enormously. Refer to 4.4, "WebSphere Studio Asset Analyzer" on page 99 for more architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and information. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the 2. Into designing the new service,solutions keep therapidly. following design principles in mind: to the IBM reader build robust SOA-based This includes an introduction Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. - Design by contract - Loosely coupled and highly cohesive modules - Encapsulation 3. Once the service interface (for example, a transaction) is established, design the XML rendering of this interface. Many programmers are tempted to use XML to encode data blindly in a one-for-one translation, meaning one element in a COBOL data structure translates to one XML tag. This is a gross under utilization of XML's capability. At this stage you have to remember the capability of XML to capture metadata. We elaborate on this

4.

issue in 10.2, "XML-based message design" on page 223. 4. Design a pair of DTDs corresponding to a request/response interface to a transaction. We followed a three-tier architecture for defining the DTD. Even though we used DTD, the architecture holds true for Schema as well. The three-tier architecture is discussed in Chapter 10, "Some key design guidelines" on page 219. • 5. Once the Table of Contents service interfaces have been designed, you can use the Services Perspective • Index component of either WSED or WSAD/IE to develop the Service implementation. Refer to XML on z/OS and OS/390: to a Service-Oriented Architecture 4.3, "Support for Introduction enterprise service development" on page

97 to get an overview of this

tool set.Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona By Franck Injey, 6. At runtime, the conversion of the native data stream generated by a transaction Publisher: IBM (representing a service) can be done several ways. The available options are presented in Pub Date: June 11, 2003 Chapter 8, "Some service-based solution topologies" on page 189. Also in that chapter we ISBN: 0-7384-2615-6 present various possibilities for delivering the XML stream to different client systems. All Pages: options 264 these are z/OS and OS/390 platform based. For a discussion of the architecture, refer to 10.2.1, "Architecture for XML messages" on page 223.

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

7.3 Web Services overview As stated before, Web Services are the means to implement an SOA approach. Web Services are self-contained, self-describing, modular applications that provide certain operations and services through the Web. These applications are independent of specific operating systems, • of Contents programmingTable languages, or platforms. A typical situation is a customer making a transaction • Index from a Web browser, accessing a Web Service, and generating a CICS transaction or a DB2 XML on z/OS OS/390: Introduction to a Service-Oriented Architecture entry. Web and Services guarantee a transparent layer so that the customer makes their transaction in Franck the same of whether it isDavid in DB2 or another By Injey,way—regardless Jose Luis Fernandez Lastra, Dipak Hore, Sanchez Carmona database management system. In this scenario, XML is the messaging way to connect this Web Service with the customers or withPublisher: another Web Service (application). This is because XML guarantees the transparency IBM needed by XML Web Services since XML is independent of the platform, operating system, or Pub Date: June 11, 2003 programming language (it is only text). ISBN: 0-7384-2615-6

Pages:Service 264 Each Web offers a set of services or operations to customers (or other Web Services), and it needs a service description which contains the necessary details to access it, like message formats, transport protocols, and location. These service descriptions are expressed in a standard language called WSDL (Web Services Description Language).

The idea of the Web Services is that they are published on the network, and then any customer or application Service) can find them and invoke Leverage(Web XML and XSL-based applications on z/OStheir andoperations. OS/390 Design concepts for Web services architectures on z/OS

7.3.1Implement Web Services components solutions based on practical examples Web Services are deployed the Web by service and their functions are described in This IBM Redbook describeson the use of XML on IBMproviders, servers running z/OS or OS/390, and how it a service description implemented in aapplications. WSDL document or a set of WSDL documents. But tooflet can be extended to modernize legacy It provides both a high-level discussion customers find Web Services,along they need a third participant, the service about registry. This is a registry service-oriented architecture with practical, detailed information XML. of Web Services, functions provided by the Web Services, and protocols used by them. In addition to an overview of XML concepts, the first part of the book provides detailed An illustration the components make Web Services presented in Figure The instructions forofinstalling the XML that Toolkit for up z/OS and OS/390isV1.4 and running the7-5. sample functions the components programsof bundled with it. It are: describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphereFigure Application Server. material is of interest mainly to system 7-5. WebThis services programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Service provider:for Creates the Webarchitectures Service and its Design concepts Web services on service z/OS definition, and publishes the service in the service registry based on the standard UDDI (Universal Description, Implementand Discovery solutions Integration) based specification. on practical examples This UDDI offers a set of APIs to ask the service registry for the needed Web Services. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be Service extended requestor: to modernize Finds the legacy Webapplications. Service (once It it provides has been both published) a high-level via the discussion UDDI of service-oriented interface supported architecture by the along service with registry. practical,Once detailed it has information found the service, about XML. it can bind and invoke the service with the URL provided by the service registry. In addition to an overview of XML concepts, the first part of the book provides detailed instructions Servicefor registry: installing Provides the XML a WSDL Toolkitservice for z/OS description and OS/390 andV1.4 a URL and pointing running tothe thesample service programs requested bundled by with the service it. It describes requestor. how These to use functions variousare tools supported that are by part a standard of the services set of APIs development (UDDI). environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system So, what is a Web Service? It is an interface that describes a collection of network-accessible programmers and application programmers. operations, described using WSDL, published to UDDI and found in UDDI using WSIL; at The secondtime execution partthe of the service book provider is geared and more requestor to the are needs bound of application by SOAP. Finally, developers a set and of Web architects. Services can It be provides orchestrated a comprehensive to execute introduction a Business Process to service-oriented in a certain order architecture by a BPEL (SOA) and Web services, (Business Process and Execution describes Language) in detail some document. service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by 7.3.2 Web Services operations contract and service design. As shown in Figure 7-5, there are three basic operations: Find: Search for the service and retrieve the service description locally or from a remote service provider. The service description will be used to bind with the service provider. Publish/Unpublish: The service provider registers its service via UDDI in a service registry providing the service description (publish), or it can unpublish an old Web Service, so it becomes unavailable.

Bind: The service requestor contracts with service provider to get the available services and to invoke them. Bind operation is the negotiation between these two parties before the requestor can access services on the provider.

7.3.3 Web Services implementation •

Table of Contents



Index

Web Services Description Language (WSDL) XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Neither the requestor nor the provider is required to know the other platform, programming language, or distributed object model (if any). All these points are covered by the service Publisher: IBM description. WSDL is a basis for this service description, and now is supported by the W3C Pub Date: June 2003 consortium as a11, standard. ISBN: 0-7384-2615-6

The latest Pages:draft 264 of the W3C specification can be found at: http://www.w3.org/TR/2002/WD-wsdl12-bindings-20020709/ WSDL documents are XML documents (WSDL it is an XML-based interface) that describe Web Services in terms of a set of endpoints (input and output) and possible messages on each point. These messages can be RPC invocations or embedded documents. The description is very Leverage andtoXSL-based applications z/OS and abstract, and isXML bound the particular network on protocol and OS/390 message format used on this environment, defining what is called an end point. Many times, WSDL descriptions depend on Design concepts for Web services architectures on z/OS the APIs used in a particular development environment. Implement solutions based on practical examples WSDL defines: This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to interfaces, modernize including: legacy applications. It provides both a high-level discussion of Web Services service-oriented architecture along with practical, detailed information about XML. In addition -toOperation an overview of (one-way, XML concepts, the first part ofnotification) the book provides detailed types request-response, instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled withdefining it. It describes how to use various tools that are part of the services - Messages a Web Service development environment, details the support for XML in Enterprise COBOL, and provides an Data types (XML Schema) overview of-the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Web Service access protocol (SOAP over HTTP, and so forth) The second part of the book is geared more to the needs of application developers and Web Services contact end points (Web Service URL, for example) architecture (SOA) and architects. It provides a comprehensive introduction to service-oriented Web services, and describes in detail some service-based topologies for both legacy systems and Compliant server applications must presents support these and theconcepts customers new applications. Finally, this book some interfaces, important design to know enablehow the to access these services thanks to the service description (WSDL documents). reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by There are several visual tools that are very helpful in the generation of all these components. In contract and service design. the WebSphere Studio Application Developer Integration Edition you will discover a number of graphical tools to guide you through the preparation of all the components and WSDL documents needed in the implementation of Web Services. And in WebSphere Application Server 4.01 for z/OS there is support for SOAP, with special SOAP extender classes optimized for this environment. The following example, extracted from the samples provided by WSAD IE, could be part of a set of WSDL documents describing Web Services provided by a Java Bean.

Example 7-1. Service WSDL document

Pages: 264 Leverage XML and XSL-based applications on z/OS and OS/390 on z/OS can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs development environment, details the support for XML in Enterprise COBOL, and provides an overview of the The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Pages: 264

In this sample we are using a previously developed Java Bean called UserManagerJava. This Java Bean manages an internal list of users, providing two methods: addUser(user_name) to add a new user to the list, and doesUserExist(user_name) to check if the user passed as parameter Leverage XML and in XSL-based was previously entered the list. applications on z/OS and OS/390 concepts each for Web services architectures on z/OS In anDesign XML document, element (tag) can be qualified by an element called name space, that is a way to distinguish this element on this document from another element with the same name Implement solutionsXML based on practical but defined in a different grammar. You examples can find it, for example, in the tag . In this tag, java is the prefix for the element, and operation is the proper This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it element. The prefix java is associated with the namespace can be extended to modernize legacy applications. It provides both a high-level discussion of http://schemas.xmlsoap.org/wsdl/java (using the instruction ), so this service-oriented architecture along with practical, detailed information about XML. is the namespace for operation. In addition to an overview of XML concepts, the first part of the book provides detailed Many times you import one XML document into another, and if both documents have an element instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample with the same name (for example, both documents have an element called operation), we programs bundled with it. It describes how to use various tools that are part of the services would have trouble distinguishing the operation element of one document from the operation development environment, details the support for XML in Enterprise COBOL, and provides an element of the other document because after the import, we only have one document with the overview of the IBM WebSphere Application Server. This material is of interest mainly to system join of the two original documents. To avoid this problem, each element can be qualified by a programmers and application programmers. URI (this URI may or may not exist; in fact, many times we use standard URIs such as http://www.w3.org/2001/XMLSchema that have been created only for the purpose of indicating The second part of the book is geared more to the needs of application developers and that this is It anprovides XML Schema). This URI can be associated to the element by a prefix, so whatand you architects. a comprehensive introduction to service-oriented architecture (SOA) use to qualify an element is a short prefix (for instance, prefix java), but really what qualifies Web services, and describes in detail some service-based topologies for both legacy systems and this is theFinally, URI associated that prefix. new element applications. this booktopresents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Namespaces are defined by the user, but it is very common to find the conventions described in Patterns for e-business, as well as XML-based message design, and the principles of design by Table 7-1. contract and service design.

Table 7-1. Frequently used namespace conventions

Namespace WSDL

•W3C XML •Schema

Description

Common prefix

Elements of a WSDL None document. It is used as a default namespace for a WSDL file. Table of Contents XML data and Standard Index element types for which

xsd

URI http://schemas.xmlsoap.org/wsdl/

http://www.w3.org/2001/XMLSchema

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Definition we have to define

types. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona WSDL SOAP Publisher: IBM Link

Elements to define a SOAP link.

Pub Date: June 11, 2003

WSDLISBN: HTTP Elements to define a 0-7384-2615-6 Link HTTP link.

soap

http://schemas.xmlsoap.org/wsdl/soap/

http

http://schemas.xmlsoap.org/wsdl/http/

Pages: 264

WSDL MIME Link

Elements to define a mime MIME message link with multiple parts.

http://schemas.xmlsoap.org/wsdl/mime

User-defined Types defined by the xsdl Defined by the user types user. Leverage XML and XSL-based applications on z/OS and OS/390 WSDL entities Messages, operations, tns Defined by the user Design concepts Weblinks, services port for types, and architectures on z/OS WSDL services created Implement solutions based on practical examples by the user. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Before continue with the explanation of our example, we are going to review discussion some of the can be we extended to modernize legacy applications. It provides both a high-level of most-used WSDLarchitecture syntax. Be aware that practical, there maydetailed be someinformation variations from following service-oriented along with aboutthe XML. descriptions because of the development platform in use. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Root on a how WSDL programs bundled with it.element It describes to document. use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an To insert commentaries. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application To import programmers. other file into current, with new entities defined in the other file. Type definitions. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Set of parts sent/received by an end point in a Web Service. We define the Web services, and describes in detail some service-based topologies for both legacy systems and message in an abstract way, and then we can split it into parts (fields). new applications. Finally, this book presents some important design concepts to enable the reader SOA-based solutions This includes an introduction to the IBM to build robust Each piece in which we rapidly. divide the message. Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service Service design. interface. It can have elements inside to define operations allowed on this interface. It can have / elements to define the input/output messages on this operations. It can have a element to identify a message structure previously defined.

Description of the service offered by a port. It can have elements inside to define an operation on that port, and / elements to describe messages accepted by these operations.



SOAP link configuration. Inside it could have elements to replace SOAP defaults, or to specify a object.



To describe how to write message inside a SOAP envelope.



Set of ports that cooperate to give a Web Service.



Address where a service is accessible.



Physical address where you have to send SOAP messages.

At the beginning document in Example 7-1 on page 171, we have a definitions name • Table of of the Contents that is used to qualify this service definition and is the root element of the document. It is for • Index informational only, and its is up to you. In our case, we used UserManagerJava. XML on z/OS andpurposes OS/390: Introduction to aname Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Then we have a targetNamespace that points to the name space where all other definition components in this definition group will be defined. In our case, we created a Java package Publisher: IBM called sample.flow where we have two Java Beans: UserManager and GroupManager. These Java Pub are Date:going June 11, Beans to2003 be the applications to provide the services. In the example, what we see are UserManager ISBN: 0-7384-2615-6 WSDL documents. WSDL documents for both Java Beans reside in the same URI (namespace). Pages: 264 After that is xmlns="http://schemas.xmlsoap.org/wsdl/" which is the default namespace for all elements in the XML document that are not qualified (elements with no prefix). This name could vary depending on the tool in use to generate the WSDL definition, or the WSDL version specification, but anyway it is a fixed namespace. For the latest draft of the WSDL specification, see: Leverage XML and XSL-based applications on z/OS and OS/390 http://www.w3.org/TR/wsdl12/#aii-targetNamespace Design concepts for Web services architectures on z/OS Following this definition, you have three lines (xmlns:format, xmlns:java, and xmlns:tns) Implement solutions based on practical examples that specify namespaces for elements that start with the prefixes format:, java: and tns:, and as you have describes the possibility of associating an XML Schema to the WSDL document (prefix This see, IBM you Redbook the use of XML on IBM servers running z/OS or OS/390, and how it xsd). This would be used to control data format being used on this service. The prefix format is can be extended to modernize legacy applications. It provides both a high-level discussion of used for elements describing along data types used in messages, prefix java is usedXML. for elements service-oriented architecture with practical, detailed information about describing binding parameters (operations, parameters for the operations, and so forth), and prefix tns isto used for targetof namespace (Javathe Beans ourofexample). In addition an overview XML concepts, first in part the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample After all prefix definitions, you can see an import tag. This import tag includes other WSDL programs bundled with it. It describes how to use various tools that are part of the services documents. lets us dividedetails the WSDL document pieces, so the resulting documents developmentItenvironment, the support forinto XMLlogical in Enterprise COBOL, and provides an are not so complex. In our example, we have separated the main WSDL document in parts: overview of the IBM WebSphere Application Server. This material is of interest mainlytwo to system programmers and application programmers. Service WSDL definition file: This is the document shown in Example 7-1 on page 171. It The second part of the book is geared more to the needs of application developers and describes the end service, in our example it describes the Java Bean with its operations. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, describes in detail service-based topologies for both legacy and Interface and WSDL definition file: Insome our example it could be the document shown systems on Example new applications. Finally, this book presents some important design concepts to enable the 7-2 on page 176. This document describes the message format sent/received. reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns e-business, as well XML-based message design, and theRemember principles of design bythe Going onfor with our example, the as next element is the binding element. that one of contract design. few rulesand XMLservice documents have is that any opened element has to be closed, so the binding element is closed near the end of the WSDL document. A binding defines message format and protocol details for operations and messages defined by a particular communication. There may be any number of bindings for a given type of communication. This element has a name, UserManagerJavaBinding in our example, that must be unique among all bindings defined in the WSDL document, and a type (in this case tns:UserManager) that relates to the portType defined in the service WSDL document shown in Example 7-1. With we are considering Java (class invocation) as the communication protocol, which means that a Java Bean is the service provider, and it is invoked via the Java platform. This is a particular implementation of WSAD IE, and it may vary depending on the

development tool being used. Under the tag we see a tag, and inside it (between tags and ) we have a mapping between Java types and type names used in the description of the messages in the WSDL document. With

• Table offormatType="java.lang.String" Contents • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

what we are creating is a new type name called xsd:string that relates to Java type String, so we canPublisher: say later in the WSDL document that a message is of xsd:string type. IBM Pub Date: June 11, 2003 With the operation tag we define two operations that this Java Bean, or service provider, is ISBN: 0-7384-2615-6 going to support: addUser and doesUserExist. These two names must be unique in the WSDL Pages: Inside 264 document. the operation tag indicated between and ) you can find the Java Bean method invoked when using this operation, with attribute methodName, and parameters used with that method (with attribute parameterOrder that specifies the order of the parameters as well). With the returnPart attribute we specify the method result. All these parameters are embedded in messages, and the format of these messages is described on the interface WSDL definition file shown in Example 7-2. At this point, on the operation tag, we only specify theXML names input/output messagesonaccepted, later we will describe them. Leverage andof XSL-based applications z/OS andand OS/390

Finally, we have a service section, with architectures a service tag, Design concepts for Web services onthat z/OSdescribes the provided service. First of all, you give this service a unique name (name attribute) among all service sections defined on the Implement service definition, solutionsand based then onyou practical specifyexamples a port inside that service section. A port describes an individual starting/end point, giving the address to use to access this port. If you look at our This IBM Redbook the use on IBM servers z/OS or OS/390, and how it example, we have describes two attributes andofa XML sub-element on the running port tag: can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. binding="tns:UserManagerJavaBinding" refers to the binding previously declared; it is In addition qualified to an with overview a namespace. of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample name="UserManagerJavaPort" ishow a unique name among ports to the thisservices specific one. programs bundled with it. It describes to use various toolsall that aregiven part of development environment, details the support for XML in Enterprise COBOL, and provides an java:address the address associatedServer. to thisThis port.material In our case, becausemainly Java isto the overview of the IBM is WebSphere Application is of interest system protocol being used, it is the name of a Java class, flow.sample.UserManager. programmers and application programmers. The point weofhave to describe is the message do this indevelopers the interface WSDL The last second part the book is geared more to the format. needs ofWe application and definition document, shown in Example 7-2. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. this book presents some important design concepts to enable the Example 7-2. Finally, Interface WSDL document reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

• •

Table of Contents

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture



By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM



ISBN: 0-7384-2615-6

Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample parameterOrder="name"> programs.

Enterprise Java Includes Enterprise JavaBeans as well as open API specifications for: database connectivity, naming and directory services, CORBA/IIOP interoperability, pure Java distributed computing, messaging services, managing system and network resources, and transaction services.

Enterprise JavaBeans A cross-platform component architecture for the development and deployment of multitier, distributed, scalable, object-oriented Java applications. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Enterprise JavaBeans (EJB) By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

The Enterprise JavaBeans specification defines a way of building transactionally aware business objects in Java.

Publisher: IBM

Pub Date: June 11, 2003 ISBN: 0-7384-2615-6

Enterprise Pages: 264 Systems Architecture/390® (ESA/390) An IBM architecture for mainframe computers and peripherals. Processors that follow this architecture include the S/390 Server family of processors.

Leverage XML and XSL-based applications on z/OS and OS/390 entity Design concepts for Web services architectures on z/OS In XML, an entity declaration provides the ability to have constants or replacement strings, which are expanded by a pre-processor. An entity declaration maps some token to a Implement solutions based on practical examples replacement string. Later the token can be prefixed with the '&' character and the replacement string is put itsof place. This IBM Redbook describes thein use XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. environment handle In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample In DB2 ODBC, theit. data object that contains regarding of the programs bundled with It describes how to use global variousinformation tools that are part of the the state services application. An environment handle must be allocated before a connection handle can development environment, details the support for XML in Enterprise COBOL, and provides anbe allocated. OnlyWebSphere one environment handle can beThis allocated perisapplication. overview of the IBM Application Server. material of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and ESA/390 architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and SeeEnterprise Systems Architecture/390 new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. exception An exception is an object that has caused some sort of new condition, such as an error. In Java,throwing an exception means passing that object to an interested party; a signal indicates what kind of condition has taken place. Catching an exception means receiving the sent object. Handling this exception usually means taking care of the problem after receiving the object, although it might mean doing nothing (which would be bad programming practice).

executable content Code that runs from within an HTML file (such as an applet).

extends • •

Tableor of Contents A subclass interface extends a class or interface if it add fields or methods, or overrides Index its methods.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

external function Publisher: IBM

PubADate: June 11, 2003 function for which

the body is written in a programming language that takes scalar ISBN: 0-7384-2615-6 argument values and produces a scalar result for each invocation. Contrast with sourced Pages: function 264 and built-in function.

Extranet In some cases intranets have connections to other independent intranets. An example Leverage XML and XSL-based applications on z/OS and OS/390 would be one company connecting its intranet to the intranet of one of its suppliers. Such a connection of intranets is calledarchitectures an extranet. on Depending on the implementation, they Design concepts for Web services z/OS may or may not be fully or partially visible to the outside. Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it factory can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. A bean that dynamically creates instances of beans. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services FastCGI development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system FastCGI is a way of combining the advantages of CGI programming with some of the programmers and application programmers. performance benefits you get by using the GWAPI. FastCGI, written by Open Market, Inc., is an extension normal Web server server-specific The second part of thetobook is geared more processing. to the needsItofrequires application developersAPI andsupport, which is available for AIX®, Sun Solaris, HP-UX, and OS/390. With FastCGI you can start architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and applications in independent address spaces and pass requests for these applications from Web services, and describes in detail some service-based topologies for both legacy systems and the Web server. Thethis communication is some through either the TCP/IP socketstointerface or UNIX new applications. Finally, book presents important design concepts enable the path in the Hierarchical System (HFS). readerDomain to buildsocket robustbind SOA-based solutions rapidly.File This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. fibre channel standard An ANSI standard for a computer peripheral interface. The I/O interface defines a protocol for communication over a serial interface that configures attached units to a communication fabric. The protocol has four layers. The lower of the four layers defines the physical media and interface, the upper of the four layers defines one or more logical protocols (for example, FCP for SCSI command protocols and FC-SB-2 for FICON™ for ESA/390). Refer to ANSI X3.230.1999x.

FICON (1) An ESA/390 computer peripheral interface. The I/O interface uses ESA/390 logical protocols over a FICON serial interface that configures attached units to a FICON communication fabric. (2) An FC4 proposed standard that defines an effective mechanism for the export of the SBCON command protocol via fibre channels. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture field By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

A data object in a class; for example, a variable.

Publisher: IBM Pub Date: June 11, 2003

File Transfer Protocol ISBN: 0-7384-2615-6 Pages: 264

(FTP) In the Internet suite of protocols, an application layer protocol that uses TCP and Telnet services to transfer bulk-data files between machines or hosts.

first tier Leverage XML and XSL-based applications on z/OS and OS/390 The client; the hardware and software with which the end user interacts. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples foreign key This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can beAextended to specified modernize applications. It provides both a high-level of key that is in legacy the definition of a referential constraint. Because discussion of the foreign service-oriented architecture along with practical, detailed information about XML. key, the table is a dependent table. The key must have the same number of columns, with the same descriptions, as the primary key of the parent table. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development form data environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. A generated class representing the HTML form elements in a visual servlet. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and FTP new applications. Finally,Protocol] this book presents some important design concepts to enable the See[File Transfer reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM function Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. A specific purpose of an entity or its characteristic action, such as a column function or scalar function. (See column function and scalar function.). Furthermore, functions can be user-defined, built-in, or generated by DB2. See also [user-defined function] See also [external function] See also [sourced function] garbage collection Java's ability to clean up inaccessible unused memory areas ("garbage") on the fly. Garbage collection slows performance, but keeps the machine from running out of

memory.

GWAPI Because CGI has some architectural limitations, most Web servers provide an equivalent mechanism that is optimized for their native environment. Domino™ Go Web Server, IBM's • Table of Contents strategic Web server, offers the Domino Go Web Server Application Programming Interface • Index (GWAPI), optimized for a given environment, such as OS/390. The GWAPI enables you to XML oncreate z/OS and OS/390:content Introduction to a to Service-Oriented dynamic similar the CGI, butArchitecture in a more specialized way than the By Franck generalized Injey, Jose Luis CGI. Fernandez The GWAPI Lastra, Dipak process Hore, is David similar Sanchez to Carmona OS/390 exit processing. There is an exit point for various server functions that can be exploited. Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 half duplex Pages: 264

In data communication, pertaining to transmission in only one direction at a time. Contrast withduplex.

handle Leverage XML and XSL-based applications on z/OS and OS/390 In DB2concepts CLI, a variable refersarchitectures to a data structure and associated resources. Design for Webthat services on z/OS See also [connection handle] See also [environment handle] Implement solutions based on practical examples hardIBM This disk Redbook drive describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of (1) A storage media within a storage server detailed used to maintain information that the storage service-oriented architecture along with practical, information about XML. server requires. (2) A mass storage medium for computers that is typically available as a In addition fixed disk to anor overview a removable of XML cartridge. concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an hierarchy overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The order of inheritance in object-oriented languages. Each class in the hierarchy inherits attributes behavior its superclass, forapplication the top-level Object class. The second part and of the book isfrom geared more to the except needs of developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the HTTPS reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by HTTPS a de facto standard developed by Netscape for making HTTP flows secure. contract and is service design. Technically, it is the use of HTTP over SSL.

Hypertext Markup Language (HTML) A file format, based on SGML, for hypertext documents on the Internet. Allows for the embedding of images, sounds, video streams, form fields and simple text formatting. References to other objects are embedded using URLs, enabling readers to jump directly to the referenced document.

Hypertext Transfer Protocol (HTTP) The Internet protocol, based on TCP/IP, used to fetch hypertext objects from remote hosts.

• IDE •

Table of Contents Index See[Integrated Development Environment]

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Identifier By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

A unique name or address that identifies things such as programs, devices or systems.

Publisher: IBM Pub Date: June 11, 2003 0-7384-2615-6 initial ISBN: program load Pages: 264

(IPL) (1) The initialization procedure that causes an operating system to commence operation. (2) The process by which a configuration image is loaded into storage at the beginning of a work day or after a system malfunction. (3) The process of loading system programs and preparing a system to run jobs. Leverage XML and XSL-based applications on z/OS and OS/390 Integrated Environment Design Development concepts for Web services architectures on z/OS (IDE) In VisualAge Java, set of windows Implement solutionsfor based onthe practical examplesthat provide the user with access to development tools. The primary windows are the Workbench, Log, Console, Debugger, and Repository This IBM RedbookExplorer. describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Internet In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample The bundled vast collection that use TCP/IP andpart evolved from the programs with it.ofItinterconnected describes how networks to use various tools that are of the services ARPANET of the late 1960s and early 1970s. The number of independent networks development environment, details the support for XML in Enterprise COBOL, and provides an connected intoWebSphere this vast global net is growing overview of the IBM Application Server. daily. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and Internet architects.Protocol It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and (IP) In the Internet suite of protocols, a connectionless protocol that routes data through a new applications. Finally, this book presents some important design concepts to enable the network or interconnected networks. IP acts as an intermediary between the higher reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM protocol layers and the physical network. However, this protocol does not provide error Patterns for e-business, as well as XML-based message design, and the principles of design by recovery and flow control, and does not guarantee the reliability of the physical network. contract and service design.

interpreter A tool that translates and executes code line-by-line.

Intranet

A private network inside a company or organization that uses the same kinds of software that you would find on the Internet, but that are only for internal use. As the Internet has become more popular, many of the tools used on the Internet are being used in private networks; for example, many companies have Web servers that are available only to employees.



Table of Contents

IP •

Index

See[Internet Protocol]

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

IPL

By Franck Injey, Jose Luis Fernandezload] Lastra, Dipak Hore, David Sanchez Carmona See [initial program

JAR file format Publisher: IBM

JAR (Java Archive) is a platform-independent file format that aggregates many files into one. Multiple Java applets and their requisite components (.class files, images, sounds and ISBN: 0-7384-2615-6 other resource files) can be bundled in a JAR file and subsequently downloaded to a Pages: 264 browser in a single HTTP transaction.

Pub Date: June 11, 2003

Java An object-oriented programming languageon forz/OS portable, interpretive code that supports Leverage XML and XSL-based applications and OS/390 interaction among remote objects. Java was developed and specified by Sun Microsystems, Design Incorporated. concepts The forJava Webenvironment services architectures consists ofon the z/OS JavaOS, the Virtual Machines for various platforms, the object-oriented Java programming language, and several class Implement libraries. solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Java applet In addition to Java an overview XML concepts, firsta part the book detailed and A small programofdesigned to run the within Webof browser. Itprovides is downloadable instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample executable by a browser or network computer. programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers Java beans and application programmers. The second Java'spart component of the book architecture, is geared developed more to the byneeds Sun, IBM, of application and others. developers The components, and architects. calledItJava provides beans, a comprehensive can be parts of introduction Java programs, to service-oriented or they can exist architecture as self-contained (SOA) and Web services, applications. and describes Java beans in can detail besome assembled service-based to createtopologies complex applications, for both legacy andsystems they can and new applications. run within other Finally, component this bookarchitectures presents some (such important as ActiveX design andconcepts OpenDoc). to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. Java Development Kit (JDK) The set of Java technologies made available to licensed developers by Sun Microsystems. Each release of the JDK contains the following: the Java Compiler, Java Virtual Machine, Java Class Libraries, Java Applet Viewer, Java Debugger, and other tools.

Java Naming and Directory Interface (JNDI) A set of APIs that assist with the interfacing to multiple naming and directory

services. (Definition copyright 1996-1999 Sun Microsystems, Inc. All Rights Reserved. Used by permission.)

Java Native Interface • •

(JNI) A native programming interface that allows Java code running inside a Java Virtual Table of Contents Machine (VM) to interoperate with applications and libraries written in other programming Index such as C and C++. languages,

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Java Platform Publisher: IBM Pub Date: June 11, 2003

The Java Virtual Machine and the Java Core classes make up the Java Platform. The Java ISBN: 0-7384-2615-6 Platform provides a uniform programming interface to a 100% Pure Java program Pages: 264 regardless of the underlying operating system. (Definition copyright 1996-1999 Sun Microsystems, Inc. All Rights Reserved. Used by permission.)

Java Remote Method Invocation (RMI) Leverage XML and XSL-based applications on z/OS and OS/390 Java Remote Method Invocation is method invocation between peers, or between client and server, when at both ends of the invocation are written in Java. Included Design concepts forapplications Web services architectures on z/OS in JDK 1.1. Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Java can beRuntime extendedEnvironment to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. (JRE) A subset of the Java Development Kit for end users and developers who want to redistribute the JRE. of The JREconcepts, consists of Java Virtual the Java Core Classes, In addition to an overview XML thethe first part of theMachine, book provides detailed and supporting files. (Definition copyright 1996-1999 SunV1.4 Microsystems, Rights instructions for installing the XML Toolkit for z/OS and OS/390 and runningInc. theAll sample Reserved. Used byit.permission.) programs bundled with It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. Java Server Page (JSP) The second part of the book is geared more to the needs of application developers and Java It Server Pages are Web pages introduction that include to dynamic tags whicharchitecture are executed on the architects. provides a comprehensive service-oriented (SOA) and server. JSPs are the presentation layer for Web-based applications built in Java. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by Java Virtual Machine contract and service design. (JVM) A software implementation of a central processing unit (CPU) that runs compiled Java code (applets and applications).

JavaDoc Sun's tool for generating HTML documentation on classes by extracting comments from the Java source code files.

JavaScript A scripting language used within an HTML page. Superficially similar to Java but JavaScript scripts appear as text within the HTML page. Java applets, on the other hand, are programs written in the Java language and are called from within HTML pages or run as standalone applications.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

JDBC (Java Database Connectivity) By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona In the JDK, the specification that defines an API that enables programs to access databases that comply with this standard.

Publisher: IBM

Pub Date: June 11, 2003

ISBN: 0-7384-2615-6 Pages: 264

JIT See[Just-In-Time compiler] JNDI See[Java Naming and Directory Interface] JNI JRE

See[JavaXML Native Leverage and Interface] XSL-based applications on z/OS and OS/390

See[Java Runtime Environment] Design concepts for Web services architectures on z/OS Just-In-Time compiler Implement solutions based on practical examples (JIT) A platform-specific software compiler often contained within JVMs. JITs compile Java This IBM bytecodes Redbook on-the-fly describesinto thenative use of machine XML on IBM instructions, servers running therebyz/OS reducing or OS/390, the need and forhow it can beinterpretation. extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample JVM programs See[Java bundled Virtual with it. Machine] It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an LAN overview Seeof [local the IBM areaWebSphere network] Application Server. This material is of interest mainly to system programmers large object (LOB) and application programmers. See[LOB] The second part of code the book is geared more to the needs of application developers and licensed internal (LIC) architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, Microcode and that describes IBM does in not detail sell some as part service-based of a machine, topologies but instead, for both licenses legacy to systems the and new applications. customer. LIC Finally, is implemented this book presents in a partsome of storage important that is design not addressable concepts to by enable user the readerprograms. to build robust SomeSOA-based IBM products solutions use it to rapidly. implement This includes functionsan asintroduction an alternatetotothe hard-wire IBM Patterns circuitry. for e-business, as well as XML-based message design, and the principles of design by contract and service design.

linker A computer program for creating load modules from one or more object modules or load modules by resolving cross references among the modules and, if necessary, adjusting addresses. In Java, the linker creates an executable from compiled classes.

load module A program unit that is suitable for loading into main storage for execution. The output of a linkage editor.

LOB •

Table of Contents



Index (large object) A sequence of bytes representing bit data, single-byte characters, doubleA LOB can be up to 2 GBInjey, -1 bytes inFernandez length. Lastra, Dipak Hore, David Sanchez Carmona By Franck Jose Luis See also [CLOB] See also [DBCLOB] Publisher: IBM XML onbyte z/OS characters, and OS/390: Introduction to of a Service-Oriented Architecture characters. or a mixture single- and double-byte

Pub Date: June 11, 2003

local area network

ISBN: 0-7384-2615-6

Pages: (LAN)264 A computer

network located in a user's premises within a limited geographic area.

logical partition (LPAR) A XML set of functions that applications create a programming environment that is defined by the Leverage and XSL-based on z/OS and OS/390 ESA/390 architecture. ESA/390 architecture uses this term when more than one LPAR is established on afor processor. An LPAR is conceptually similar to a virtual machine Design concepts Web services architectures on z/OS environment except that the LPAR is a function of the processor. Also, LPAR does not depend on solutions an operating system to create the virtual machine environment. Implement based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of logical switch number (LSN) service-oriented architecture along with practical, detailed information about XML. A two-digit number used by concepts, the I/O Configuration (IOCP) to identify a specific In addition to an overview of XML the first partProgram of the book provides detailed ESCON® Director. the XML Toolkit for z/OS and OS/390 V1.4 and running the sample instructions for installing programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system logically partitioned (LPAR)programmers. mode programmers and application A central mode, available ontothe frame when using the The second partprocessor of the book is geared more theConfiguration needs of application developers andPR/SM™ facility, that allows an operator to allocate processor hardware resources among logical architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and partitions. Contrast with basic mode. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by LPAR contract and service design. See[logical partition] megabyte (MB) (1) For processor storage, real and virtual storage, and channel volume, 220 or 1 048 576 bytes. (2) For disk storage capacity and communications volumes, 1 000 000 bytes.

method A fragment of Java code within a class that can be invoked and passed a set of parameters

to perform a specific task.

middle tier The hardware and software that resides between the client and the enterprise server resources and data. The software includes a Web server that receives requests from the Table of Contents client and invokes Java servlets to process these requests. The client communicates with Index the Web server via industry standard protocols such as HTTP and IIOP.

• •

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

middleware Publisher: IBM Pub Date: June 11, 2003

A layer of software that sits between a database client and a database server, making it ISBN: 0-7384-2615-6 easier for clients to connect to heterogeneous databases.

Pages: 264

multithreading Multiple TCBs executing one copy of code concurrently (sharing a processor) or in parallel (on separate processors). Leverage XML central and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS National Committee for based Information Technology Implement solutions on practical examplesStandards NCITS develops national technical on behalf theit This IBM Redbook describes thestandards, use of XMLand on its IBM servers experts running participate z/OS or OS/390, andofhow States in the international standards activities of ISO/IEC JTC 1, information can beUnited extended to modernize legacy applications. It provides both a high-level discussion of technology.architecture along with practical, detailed information about XML. service-oriented In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample native class programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Machine-dependent C codeApplication that can beServer. invokedThis from Java. For multi-platform work, the overview of the IBM WebSphere material is of interest mainly to system native routines for each platform need to be implemented. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and NCITS Web services, and describes in detail some service-based topologies for both legacy systems and See[National Committee forpresents Information Technology Standards] new applications. Finally, this book some important design concepts to enable the NUL terminator reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by In C, the value that indicates the end of a string. For character strings, the NUL terminator contract and service design. is X'00'.

null A special value that indicates the absence of information.

NUL-terminated host variable

A varying-length host variable in which the end of the data is indicated by the presence of a NUL terminator.

object The principal Table of building Contents block of object-oriented programs. Objects are software programming modules. Each object is a programming unit consisting of related data and • Index methods. XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture •

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM ODBC [Open Connectivity] PubSee Date: June 11,Database 2003 ODBC ISBN: driver 0-7384-2615-6 Pages: 264

A dynamically-linked library (DLL) that implements ODBC function calls and interacts with a data source.

Open Database Connectivity Leverage XML and XSL-based applications on z/OS and OS/390 (ODBC) A Microsoft database application programming interface (API) for C that allows Design for management Web services architectures on z/OS access concepts to database systems by using callable SQL. ODBC does not require the use of an SQL preprocessor. In addition, ODBC provides an architecture that lets users Implement solutions based on drivers practical examples add modules called database that link the application to their choice of database management systems at runtime. This means that applications no longer need to be This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it directly linked to the modules of all the database management systems that are can be extended to modernize legacy applications. It provides both a high-level discussion of supported. service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample open system programs bundled with it. It describes how to use various tools that are part of the services development environment, details thecomply supportwith for XML in Enterprise COBOL, throughout and provides an A system whose characteristics standards made available the overview of the IBM WebSphere Application Server. This material is of interest mainly to system industry and that therefore can be connected to other systems complying with the same programmers and application programmers. standards. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and original equipment manufacturers information (OEMI) new applications. Finally, this book presents some important design concepts to enable the readerAto build robust solutions rapidly. This includesinterface. an introduction to the IBM refer reference to anSOA-based IBM guideline for a computer peripheral More specifically, Patterns for e-business, well as XML-based message and the principles of design by to IBM S/360 and as S/370™ Channel to Control Unitdesign, Original Equipment Manufacturer's contract and serviceThe design. Information. interface uses ESA/390 logical protocols over an I/O interface that configures attached units in a multi-drop bus environment.

package A program element that contains classes and interfaces.

persistence In object models, a condition that allows instances of classes to be stored externally, for example in a relational database.

Persistence Builder •

Table of Contents



Index for Java, a persistence framework for object models, which enables the In VisualAge and also provides linkages toLuis legacy dataLastra, on other By Franck Injey, Jose Fernandez Dipak systems. Hore, David Sanchez Carmona XML onmapping z/OS and OS/390: Introduction to a Service-Oriented Architecture of objects to information stored in relational databases

Publisher: IBM Pub Date: June 11, 2003 plan ISBN: 0-7384-2615-6 plan] See [application Pages: 264 plan name

The name of an application plan.

precompilation Leverage XML and XSL-based applications on z/OS and OS/390 A processing of application programs containing statements that takes place before Design concepts for Web services architectures onSQL z/OS compilation. SQL statements are replaced with statements that are recognized by the host language compiler. from this precompilation includes source code that can be Implement solutions Output based on practical examples submitted to the compiler and the database request module (DBRM) that is input to the bindRedbook process.describes the use of XML on IBM servers running z/OS or OS/390, and how it This IBM can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. prepare In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample The bundled first phase of it. a two-phase commit in which participants are requested programs with It describes how toprocess use various toolsallthat are part of the services to prepare for commit. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. prepared The secondSQL partstatement of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and A namedand object that is in the executable form of an SQL statement has beensystems processed Web services, describes detail some service-based topologies forthat both legacy and by the PREPARE statement. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. primary key A unique, non-null key that is part of the definition of a table. A table cannot be defined as a parent unless it has a unique key or primary key.

process A program executing in its own address space, containing one or more threads.

program temporary fix (PTF) A temporary solution or bypass of a problem diagnosed by IBM in a current unaltered release of a program. •

Table of Contents

• property

Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

AnInjey, initial or characteristic of a David bean, for example, By Franck Josesetting Luis Fernandez Lastra, Dipak Hore, Sanchez Carmona

a name, font, text, or positional

characteristic.

Publisher: IBM Pub Date: June 11, 2003

PTF

ISBN: 0-7384-2615-6

Pages: See[program 264 temporary fix] RDBMS

Relational database management system.

Leverage XML and XSL-based applications on z/OS and OS/390 reentrant Design concepts for Web services architectures on z/OS Executable code that can reside in storage as one shared copy for all threads. Reentrant code is notsolutions self-modifying providesexamples separate storage areas for each thread. ReImplement based and on practical entrancy is a compiler and operating system concept, and re-entrancy alone is not enough to guarantee logically consistent multithreading. This IBM Redbook describes the use of results XML onwhen IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. reference In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample An object's In describes Java, objects passed by reference than by value or by programs bundledaddress. with it. It how are to use various tools thatrather are part of the services pointers. development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. relational The second database part of themanagement book is gearedsystem more to(RDBMS) the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and A relational database manager that operates consistently across supported IBM systems. Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns remote for e-business, as well as XML-based message design, and the principles of design by contract and service design. Refers to any object maintained by a remote DB2 subsystem; that is, by a DB2 subsystem other than the local one. A remote view, for instance, is a view maintained by a remote DB2 subsystem. Contrast with local.

Remote Method Invocation (RMI) RMI is a specific instance of the more general term RPC. RMI allows objects to be distributed over the network; that is, a Java program running on one computer can call

the methods of an object running on another computer. RMI and java.net are the only 100% pure Java APIs for controlling Java objects in remote systems.

Remote Object Instance Manager • •

In Remote Method Invocation, a program that creates and manages instances of server Table of Contents beans through their associated server-side server proxies. Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Remote Procedure Calls Publisher: IBM

(RPC) RPC is a generic term referring to any of a series of protocols used to execute procedure calls or method calls across a network. RPC allows a program running on one ISBN: 0-7384-2615-6 computer to call the services of a program running on another computer.

Pub Date: June 11, 2003

Pages: 264

requester Also application requester (AR). The source of a request to a remote RDBMS, the system that requests Leverage XML the and data. XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS RMI (Remote Invocation) ImplementMethod solutions based on practical examples See[Remote Method Invocation] rollback This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of The process of restoringalong data with changed by SQL statements to the state its last commit service-oriented architecture practical, detailed information aboutatXML. point. All locks are freed. Contrast with commit. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services RPC development environment, details the support for XML in Enterprise COBOL, and provides an Seeof [Remote overview the IBMProcedure WebSphereCalls] Application Server. This material is of interest mainly to system runtime system programmers and application programmers. The software environment wheremore compiled Each Java runtime and system The second part of the book is geared to theprograms needs of run. application developers includes an implementation of the Java Virtual Machine. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM sandbox Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. A restricted environment, provided by the Web browser, in which Java applets run. The sandbox offers them services and prevents them from doing anything naughty, such as doing file I/O or talking to strangers (servers other than the one from which the applet was loaded). The analogy of applets to children led to calling the environment in which they run the "sandbox."

scalar function An SQL operation that produces a single value from another value and is expressed as a

function name followed by a list of arguments enclosed in parentheses. See also [column function] Secure Socket Layer

• •

(SSL) SSL is a security protocol that allows communications between a browser and a server to be encrypted and secure. SSL prevents eavesdropping, tampering, or message forgery on your Internet or intranet network. Table of Contents Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak security

Hore, David Sanchez Carmona

Features in Java that prevent applets downloaded off the Web from deliberately or inadvertently doing damage. One such feature is the digital signature, which ensures that Pub Date: June 11, 2003 an applet came unmodified from a reputable source.

Publisher: IBM

ISBN: 0-7384-2615-6

Pages: 264

serialization Turning an object into a stream, and back again. Leverage XML and XSL-based applications on z/OS and OS/390 server Design concepts for Web services architectures on z/OS The computer that hosts the page examples that contains an applet. The .class files that make Implement solutions based onWeb practical up the applet, and the HTML files that reference the applet reside on the server. When someone on describes the Internet to aon Web thatrunning containsz/OS an applet, the server This IBM Redbook theconnects use of XML IBMpage servers or OS/390, and how it theto.class files over the applications. Internet to the client thatboth made the request. The server can bedelivers extended modernize legacy It provides a high-level discussion of is also knownarchitecture as the originating host.practical, detailed information about XML. service-oriented along with In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample server bean programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an Theof bean distributedApplication using RMI Server. servicesThis andmaterial is deployed a server. overview the that IBM is WebSphere is ofon interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and servlet architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and SeeJava servlet. new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. SGML See[Standardized Generalized Markup Language] Shell The user interface of UNIX system softwares. In z/OS, an xpg4.2-compliant shell is used. Very often OMVS is used as an interface for z/OS shells.

single precision

A floating-point number that contains 32 bits. See also [double precision] Small Computer System Interface (SCSI)

• •

(1) An ANSI standard for a logical interface to computer peripherals and for a computer peripheral interface. The interface uses a SCSI logical protocol over an I/O interface that configures attached targets and initiators in a multi-drop bus topology. (2) A standard Table of Contents hardware interface that enables a variety of peripheral devices to communicate with one Index another.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

SmartGuide Publisher: IBM Pub Date: June 11, 2003

In IBM software products, an active form of help that guides you through common tasks. ISBN: 0-7384-2615-6

Pages: 264

source type An existing type that is used to internally represent a distinct type. Leverage XML and XSL-based applications on z/OS and OS/390 sourced function Design concepts for Web services architectures on z/OS A function that is implemented by another built-in or user-defined function already known Implement solutions based on practical examples to the database manager. This function can be a scalar function or a column (aggregating) function; it returns a single value fromon a IBM set of valuesrunning (for example, MAX or AVG). This IBM Redbook describes the use of XML servers z/OS or OS/390, and how it with external function built-in function. can beContrast extended to modernize legacy and applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed SQL instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services Structured Query Language. A language used by in database engines andand servers for data development environment, details the support for XML Enterprise COBOL, provides an acquisition and definition. overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and SSL architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and See[Secure Layer] Web services, and Socket describes in detail some service-based topologies for both legacy systems and Standardized Generalized Language new applications. Finally, thisMarkup book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM An for ISO/ANSI/ECMA that specifies a way design, to annotate textprinciples documents Patterns e-business, asstandard well as XML-based message and the of with design by information about types of sections of a document. contract and service design.

static bind A process by which SQL statements are bound after they have been precompiled. All static SQL statements are prepared for execution at the same time. Contrast with dynamic bind.

static SQL

SQL statements, embedded within a program, that are prepared during the program preparation process (before the program is executed). After being prepared, the SQL statement does not change (although values of host variables specified by the statement might change).

• Table of Contents stored procedure •

Index

user-written application program, that can be invoked through XML onAz/OS and OS/390: Introduction to a Service-Oriented Architecture

the use of the SQL CALL

statement.

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 Structured Query Language (SQL) ISBN: 0-7384-2615-6

A standardized language for defining and manipulating data in a relational database. Pages: 264

Sysout The regular output for a program on z/OS is SYSOUT. It is the functional equivalent of Leverage andInXSL-based applications on z/OS and OS/390 stdout onXML UNIX. batch, there can be multiple SYSOUTs. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples System This IBM Redbook describes useorofOS/390 XML onoperating IBM servers running or OS/390, and how it A single instance of thethe z/OS system in az/OS sysplex. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview XML Interface concepts, the first part of the book provides detailed System Management EndofUser (SMEUI) instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various toolsadministrative that are part of the for services A Windows-based tool that makes it possible to perform tasks development environment, details the support for XML in Enterprise COBOL, and provides WebSphere Application Server from a Windows workstation. The SMEUI tool is used an to overview of the IBMapplication WebSpheretoApplication Server. This material is of interest mainly to system deploy a new WebSphere on z/OS. programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides task control block a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book someinformation important design to enable the (TCB) A control block used to presents communicate about concepts tasks within an address readerspace to build SOA-based rapidly. space This includes an introduction the IBM (as thatrobust are connected to solutions DB2. An address can support many task to connections Patterns for as e-business, as well asonly XML-based message design, and the principles of design by many one per task), but one address space connection. contract and service design. See also [address space connection] TCB Task Control Block; manages dispatchable tasks. Each UNIX thread is assigned to a TCB.

Telnet Telnet provides a virtual terminal facility that allows users of one computer to act as if they

were using a terminal connected to another computer. The Telnet client program communicates with the Telnet daemon on the target system to provide the connection and session.

temporary table • •

of Contents A tableTable created by the SQL CREATE GLOBAL TEMPORARY TABLE statement that is used to Index hold temporary data. Contrast with result table.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

thin client Publisher: IBM Pub Date: June 11, 2003

Thin client usually refers to a system that runs on a resource-constrained machine or that ISBN: a 0-7384-2615-6 runs small operating system. Thin clients don't require local system administration, and Pages: 264 they execute Java applications delivered over the network.

third tier The thirdXML tier,and or back end, is applications the hardware software that provides database and Leverage XSL-based onand z/OS and OS/390 transactional services. These back-end services are accessed through connectors between the middle-tier server and the third-tier server. Though this conceptual model depicts Design concepts Web for Web services architectures on z/OS the second and third tier as two separate machines, the NCF model supports a logical three-tier implementation the examples software on the middle and third tier is on the Implement solutions based in onwhich practical same box. This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. thread In addition to an overview of XML concepts, the first part of the book provides detailed A separate flow of control within a program. instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system timestamp programmers and application programmers. A seven-part value that of a date and time of expressed in years, months, The second part of the book isconsists geared more to the needs application developers anddays, hours, minutes, seconds, and microseconds. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM trace Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. A facility that provides the ability to monitor and collect monitoring, auditing, performance, accounting, statistics, and serviceability data.

Trading communities Trading communities bring together buyers and sellers in a central online location to trade, using various online mechanisms including auctions and exchanges, in addition to industry content and application services. Trading communities are owned and operated by both large industry players in closed trading networks and by neutral parties in more

fragmented open communities.

transaction

• •

(1) In a CICS program, an event that queries or modifies a database that resides on a CICS server. (2) In the Persistence Builder, a representation of a path of code execution. of Contents (3) TheTable code activity necessary to manipulate a persistent object. For example, a bank Index application might have a transaction that updates a company account.

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

UDF Publisher: IBM See[user-defined function] Pub Date: June 11, 2003 UDT ISBN: 0-7384-2615-6 See [user-defined data type] Pages: 264 Unicode A 16-bit international character set defined by ISO 10646. See also [ASCII] Uniform Resource Locator Leverage XML and XSL-based applications on z/OS and OS/390 (URL) The unique address that tells a browser how to find a specific Web page or file. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples URI/URL This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it Uniform Resource Identifier and Uniform Resource Locator (URL) uniquely define can beAextended to modernize legacy(URI) applications. It provides both a high-level discussion of a location onarchitecture the Web. URLs arewith familiar to anyone whoinformation browses the Web XML. (for example service-oriented along practical, detailed about http://www.ibm.com®), and the term URI is a more general term which also incorporates In addition other to schemes an overview for identifying of XML concepts, resources. the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an URL overview of the IBM WebSphere Application Server. This material is of interest mainly to system See[Uniform Resourceprogrammers. Locator] programmers and application user-defined data type The second part of the book is geared more to the needs of application developers and (UDT) distinct type architects. ItSee provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM user-defined function as well as XML-based message design, and the principles of design by Patterns for e-business, contract and service design. (UDF) A function defined to DB2 using the CREATE FUNCTION statement that can be referenced thereafter in SQL statements. A user-defined function can be either an external function or a sourced function. Contrast with built-in function.

valid An XML document is valid if its content conforms to the rules in its DTD.

variable (1) An identifier that represents a data item whose value can be changed while the program is running. The values of a variable are restricted to a certain data type. (2)A data element that specifies a value that can be changed. A COBOL elementary data item is an example of a variable. Contrast with constant. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture vi By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

A popular UNIX editor. It can only be used from an ASCII Telnet connection.

Publisher: IBM Pub Date: June 11, 2003

virtualISBN: machine 0-7384-2615-6 Pages: 264

A software or hardware implementation of a central processing unit (CPU) that manages the resources of a machine and can run compiled code. See also [Java Virtual Machine]

visual bean Leverage XML Composition and XSL-based applications on z/OS and to OS/390 In the Visual Editor, a bean that is visible the end user in the graphical user interface. Design concepts for Web services architectures on z/OS Implement solutions based on practical examples WAP This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of Wireless Application Protocol. Offers Internet browsing from wireless handsets. service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample Web programs bundled with it. It describes how to use various tools that are part of the services See[World Wide Web] development environment, details the support for XML in Enterprise COBOL, and provides an Web Application overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. A WebSphere Web application is a collection of static pages, JSPs, and Servlets that share a common URL prefix, and together make a complete application. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new Finally, this book presents some important design concepts to enable the Webapplications. browser reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns e-business, as well as XML-based design, the principles of component. design by Thefor Web uses a client/server processing message model. The Web and browser is the client contract and service design. Examples of Web browsers include Mosaic, Netscape Navigator, and Microsoft Internet Explorer. The Web browser is responsible for formatting and displaying information, interacting with the user, and invoking external functions, such as Telnet, or external viewers for data types that it does not directly support. Web browsers are fast becoming the universal client for the GUI workstation environment, in much the same way that the ability to emulate popular terminals such as the DEC VT100 or IBM 3270 allows connectivity and access to character-based applications on a wide variety of computers. Web browsers are available for all popular GUI workstation platforms and are inexpensive (often included with operating systems or related products for no additional charge.)

Web server Web servers are responsible for servicing requests for information from Web browsers. The information can be a file retrieved from the server's local disk or generated by a program called by the server to perform a specific application function. Web servers are sometimes referred to as httpd servers or daemons. A number of Web servers are available for most platforms including most UNIX variants, OS/2® Warp, OS/390, and Windows NT. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

well-formed

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

An XML document is well-formed if there is one root element, and all its child elements are nested within each other. Start tags must have end tags, and each empty tag Pubmust Date: June be designated 11, 2003 as such with a trailing slash. Also, all attributes must be quoted, and all entities must be declared. ISBN: 0-7384-2615-6

Publisher: IBM properly

Pages: 264

white-space In XML, characters that are not visible, but used in formatting documents or programs. These characters include the SPACE, TAB, NEWLINE, and CARRIAGE-RETURN characters. Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS World Wide Web Implement solutions based on practical examples A network of servers that contain programs and files. Many of the files contain hypertext This IBM Redbook theavailable use of XML on IBM servers running z/OS or OS/390, and how it links to otherdescribes documents through the network. can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed WWW instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample See[World Wide Web] programs bundled with it. It describes how to use various tools that are part of the services XML development environment, details the support for XML in Enterprise COBOL, and provides an overview the IBM WebSphere Application Server. This material of interest mainly for to system Theof Extensible Markup Language (XML) is an important newisstandard emerging programmers and application programmers. structured documents on the Web. XML extends HTML beyond a limited tag set and adapts SGML, making it easy for developers to write programs that process this markup and The second part for of the book is geared more to the needs of application developers and providing a rich, more complex encoding of information. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM XSL Stylesheet Patterns for e-business, as well as XML-based message design, and the principles of design by contract service design. Theand eXtensible Stylesheet Language defines stylesheets for XML Documents. It is composed of two parts: the formatting objects, and XSLT (see below). XSL is defined by the WorldWide Web Consortium.

XSLT eXtensible Stylesheet Language Transformations. This defines the part of the XSL specification which allows the stylesheet to reformat and reorganize the XML data. It is most often used to transform XML into XSL.



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Related publications The publications listed in this section are considered particularly suitable for a more detailed discussion of the topics covered in this redbook. •

Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

IBM Redbooks For information on ordering these publications, see "How to get IBM Redbooks" on page 248. Note that some of the documents referenced here may be available in softcopy only. • •

Table of Contents

PatternsIndex on z/OS: Connecting Self Service Applications to the Enterprise , SG24-6827

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture

Legacy Modernization with WebSphere Studio Enterprise Developer, SG24-6586

By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Using XML on z/OS and OS/390 for Application Integration, SG24-6285 Publisher: IBM

"From code deployment: Pub Date: June 11,to 2003

Connecting to CICS from WebSphere v4.0.1 for z/OS,"

REDP0206 ISBN: 0-7384-2615-6 Pages: 264

Enterprise COBOL for z/OS and OS/390 Programming Guide , SC27-1412 WebSphere Application Server V4.0.1 for z/OS and OS/390 Assembling Java 2 Platform, Enterprise Edition (J2EE) Applications, SA22-7836

Leverage XML and XSL-based applications on z/OS and OS/390 Other resources Design concepts for Web services architectures on z/OS These publications are also relevant as further information sources: Implement solutions based on practical examples Patterns for e-business: A Strategy for on Reuse, Jonathan Adams, ISBN 1-931182This IBM Redbook describes the use of XML IBM by servers running z/OSet oral, OS/390, and how it 02-7 can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. Building Web Services with Java by Steve Graham, et al ISBN 0-672-32181-5 In addition to an overview of XML concepts, the first part of the book provides detailed Object-Oriented Software Construction, by Bertrand MeyerV1.4 and running the sample instructions for installing the XML Toolkit for z/OS and OS/390 programs bundled with it. It describes how to use various tools that are part of the services Building environment, bug-free O-O details Software: Introduction by Contract development the An support for XMLto inDesign Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system http://www.eiffel.com/doc/manuals/technology/contract/ programmers and application programmers. The Illusion of Simplicity, by Grady Booch The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Components and Web Services, by Clements Szyperski Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, book design concepts to enable the iContract – The Java this Design bypresents Contractsome Tool, important by Reto Kramer reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Referenced Web sites These Web sites are also relevant as further information sources:

• •

PatternsTable for e-business of Contents Index

http://www.ibm.com/developerworks/patterns/ XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

XML Schema

Publisher: http://www.w3.org/XML/Schema IBM Pub Date: June 11, 2003

Tree Regular Expressions for XML ISBN: 0-7384-2615-6 Pages: 264 http://www.thaiopensource.com/trex/

Schema for Object-oriented XML http://www.w3.org/TR/NOTE-SOX Schema Object-oriented XML Leveragefor XML and XSL-based applications on z/OS and OS/390 http://www.ascc.net/xml/resource/schematron/schematron.html Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

How to get IBM Redbooks You can order hardcopy Redbooks, as well as view, download, or search for Redbooks at the following Web site: • Table of Contents ibm.com/redbooks •

Index

You on can also download additional to materials (code samples or diskette/CD-ROM images) from XML z/OS and OS/390: Introduction a Service-Oriented Architecture that site. By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Publisher: IBM

IBM collections PubRedbooks Date: June 11, 2003 ISBN: 0-7384-2615-6

Redbooks Pages:are 264also available on CD-ROMs. Click the CD-ROMs button on the Redbooks Web site for information about all the CD-ROMs offered, as well as updates and formats.

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

Back cover XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture • Table of Contents •

Index

Leverage XML and XSL-based applications on z/OS and OS/390 XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Design concepts Jose Luis for Fernandez Web services Lastra, Dipakarchitectures Hore, David Sanchez onCarmona z/OS

Implement solutions based on practical examples Publisher: IBM Date: June 11, 2003 ThisPub IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it ISBN: 0-7384-2615-6 can be extended to modernize legacy applications. It provides both a high-level discussion of Pages: 264 service-oriented architecture along with practical, detailed information about XML.

In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of theXML IBMand WebSphere Application Server. This and material is of interest mainly to system Leverage XSL-based applications on z/OS OS/390 programmers and application programmers. Design concepts for Web services architectures on z/OS The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Implement solutions based on practical examples Web services, and describes in detail some service-based topologies for both legacy systems and This IBM new applications. Redbook Finally, describes thisthe book usepresents of XML on some IBMimportant servers running design z/OS concepts or OS/390, to enable and the how it can be to reader extended build robust to modernize SOA-based legacy solutions applications. rapidly.ItThis provides includes both anaintroduction high-level discussion to the IBMof service-oriented Patterns for e-business, architecture as well along as XML-based with practical, message detailed design, information and theabout principles XML.of design by contract and service design. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing INTERNATIONAL TECHNICAL the XMLSUPPORT Toolkit forORGANIZATION z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services BUILDING INFORMATION BASED ON PRACTICAL developmentTECHNICAL environment, details the support for XML in Enterprise EXPERIENCE COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system IBM Redbooksand are application developed by the IBM International Technical Support Organization. Experts programmers programmers. from IBM, Customers and Partners from around the world create timely technical information based on realistic Specific are to developers help you implement IT The second part ofscenarios. the book is gearedrecommendations more to the needs of provided application and solutions more effectively in your environment. architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and For information: new more applications. Finally,ibm.com/redbooks this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM SG24-6826-00 Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design. ISBN 0738426156

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z]



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] AAT 2nd AIXMMOD1 APP_EXT_DIR Application knowledge

• model

Table of Contents

Application and Runtime • Index patterns Application mode XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture application-owning region (AOR) By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona application-to-application interaction ASBuilder 2nd Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] BPXPRMxx bsf.jar Business knowledge



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] C++ 2nd 3rd 4th 5th Change knowledge CICS Transaction Server ClassLoaders classpath CLASSPATH •

Table of Contents

Cobol •

Index

COBOL 3rdand 4th OS/390: 5th XML on2nd z/OS Introduction to a Service-Oriented Architecture code page conversion By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Compability Mode Component development Publisher: IBM Composite patterns Pub Date: June 11, 2003 Connection management contract Connector ISBN: Builder 0-7384-2615-6 Assistant context Pages: root 264 converter Converter converter Counter Counter.java CreateDOMDocument

Leverage XML and XSL-based applications on z/OS and OS/390

Creating components from existing assets current.env Design

concepts for Web services architectures on z/OS

Custom designs

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] DADX Data knowledge Data persistence data-centric XML 2nd DB2

• SQL-based query Table of Contents • XML-based query Index DB2 Extender XML XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Delegation Mode By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Deployment code deployment descriptor Publisher: IBM Description Stack PubbyDate: June 11, 2003 Design Contract Developing ISBN: new0-7384-2615-6 components Diffing Pages: 264 Discovery Stack Document Type Definition 2nd Document validity DocumentTracer DOM 2nd 3rd 4th 5th 6th Domain-specific vocabulary

Leverage XML and XSL-based applications on z/OS and OS/390

DOMASBuilder

DOMCount Design

concepts for Web services architectures on z/OS

DOMErrorHandler DOMImplementationAS Implement solutions

based on practical examples

DOMPrint

This DTD

IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can contents be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented editor architecture along with practical, detailed information about XML. validation

In addition DTD validation to

an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] e-Business knowledge EAR file ear file early binding EBCDIC and ASCII EGL 2nd 3rd •

Table of Contents

Eiffel •

Index

EJB XMLcontainer on z/OS and OS/390: Introduction to a Service-Oriented Architecture EJBs By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona encoding scheme Enterprise Access Builder Publisher: Enterprise DataIBM Model Pub Date: 11,(EJB) 2003development Enterprise JavaJune Beans Enterprise ISBN: Service 0-7384-2615-6 Development EnumVal Pages: 264 eXtensible Stylesheet Language

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Flow flow composition Flow Definition Markup Language



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] gmake 2nd 3rd



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] HTML HTTP Server HTTP Transport Handler



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] IDOMCount IDOMPrint IMS Transaction Manager Information FrameWork for Banking Insurance Application Architecture Integration patterns • Table of Contents International Components for Unicode • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] J2EE perspective server server instance J2EE Connector Architecture 2nd Jakarta •

Table of Contents

Jakarta project Index • JAR files XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Java By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona Java development tools Java Samples JCA Publisher: IBM JDBCPub Date: June 11, 2003 jvm.properties ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] KeepSocketOpen



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Managed Connections markup language memory leaks MemParse Model-View-Controller 2nd Module Mode •

Table of Contents

Multiple parser initialization • Index XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] namespaces 2nd



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P] [R ] [S] [T] [U] [V] [W] [X] [Z] ParserAdapter ParserFactory ParserWrapper Patterns for eBusiness Performance profiling PParse •

Table of Contents

Product mappings • Index Programming XML on z/OSmodel and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] RDB to XML mapping editor Redirect Registration Form screen Relational database environment Repository Features resource adapterTable 2nd of Contents • Resource recovery • Index resource recovery (RRS) XML on z/OS andservices OS/390: Introduction to a Service-Oriented Architecture Role of XML in SOA By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Samples 2nd samples Samples C/C++ SAX 2nd 3rd 4th 5th SAX Samples •

Table of Contents

sax.DocumentTracer • Index SAX2Count XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture SAX2Print By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona SAXCount 2nd SAXCOUNT Publisher: IBM SAXPrint Pub validation Date: June 11, 2003 schema SDK 2ndISBN: 0-7384-2615-6 SecurityPages: Contract 264 SEnumVal Server Mode Server tools service provider registry

Leverage XML and XSL-based applications on z/OS and OS/390

requestor

serviceDesign requestorconcepts

for Web services architectures on z/OS

Service-oriented architecture SGML

Implement solutions based on practical examples

SimpleTransform

This IBM SIXMMOD1

Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. SMUI can be SMEUI

SOA Definition

In addition to strategy an overview SOA development

of XML concepts, the first part of the book provides detailed for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services soap development environment, details the support for XML in Enterprise COBOL, and provides an SOAP 2nd overview socket 2nd of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. socket stream instructions SOAP 2nd 3rd

socket.io.WrappedOutputStream

Thequery second part SQL builder

of the book is geared more to the needs of application developers and introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and StdInParse new applications. Finally, this book presents some important design concepts to enable the STLport reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM STLPORT Patterns for 4th e-business, as well as XML-based message design, and the principles of design by Struts 2nd 3rd contract and service design. application development tools architects. It provides comprehensive Standard Generalized Markup a Language

Struts Applications SYS1.AIXMMOD1 SYS1.HXML140.XML.JCLIN SYS1.SIXMEXP SYS1.SIXMMOD1 System-Level contract

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Toolkit TraceListen Transaction management contract Transformer



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] UDDI



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Vocabulary



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] Web container Web development tools Web Services Components development tool

• Implementation Table of Contents Stack • Interoperability Index Operations XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture Web Services Description Language By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona WEB-INF/classes WEB-INF/lib Publisher: IBM web.xml Pub Date: June 11, 2003 webcontainer.conf WebSphere ISBN: 2nd0-7384-2615-6 3rd 4th WebSphere Application Server 2nd Pages: 264 WebSphere Connectors WebSphere Studio Asset Analyzer well-formedness Wire Stack WORF WORF framework

Leverage XML and XSL-based applications on z/OS and OS/390

WSAD/IE

WSED features Design

concepts for Web services architectures on z/OS

Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z] xalan.jar xerces.jar xerceslmpl.jar XHTML 1.0 Frameset XHTML 1.0 Strict XHTML 1.0 Transitional • Table of Contents XML • Index converters XML on z/OS2nd and OS/390: Introduction to a Service-Oriented Architecture definition By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona editor Repository Publisher: Schema 2ndIBM 3rd Pub Date: June 11, 2003 schema editor XML and ISBN: SQL query 0-7384-2615-6 XML development Pages: 264environment XML parser XML Parser C++ Edition code page conversion Java Edition XML Parser and XSL Processor

Leverage XML and XSL-based applications on z/OS and OS/390

C++ Edition

JavaDesign Edition

concepts for Web services architectures on z/OS

XML to XML mapping editor XML Toolkit 2nd Implement

solutions based on practical examples

C++ Edition

This components IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can installation be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented Java Edition architecture along with practical, detailed information about XML. specifications

InV1R4 addition to an overview of XML concepts, the first part of the book provides detailed requirements instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample XML Vocabularies programs bundled with it. It describes how to use various tools that are part of the services xml-apis.jar development environment, details the support for XML in Enterprise COBOL, and provides an XML4J version overview of the IBM WebSphere Application Server. This material is of interest mainly to system xmlParserAPIs.jar programmers and application programmers. XMLReaderFactory XSL Processor

The second C++ Edition part of the book is geared more to the needs of application developers and architects. Java EditionIt provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and XSL trace editor new 2nd applications. Finally, this book presents some important design concepts to enable the XSLT 3rd reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.

[A] [B] [C ] [D] [E] [F] [G] [H] [I ] [J] [K ] [M] [N] [P ] [R ] [S] [T] [U] [V] [W] [X] [Z ] z/OS application development tools



Table of Contents



Index

XML on z/OS and OS/390: Introduction to a Service-Oriented Architecture By Franck Injey, Jose Luis Fernandez Lastra, Dipak Hore, David Sanchez Carmona

Publisher: IBM Pub Date: June 11, 2003 ISBN: 0-7384-2615-6 Pages: 264

Leverage XML and XSL-based applications on z/OS and OS/390 Design concepts for Web services architectures on z/OS Implement solutions based on practical examples This IBM Redbook describes the use of XML on IBM servers running z/OS or OS/390, and how it can be extended to modernize legacy applications. It provides both a high-level discussion of service-oriented architecture along with practical, detailed information about XML. In addition to an overview of XML concepts, the first part of the book provides detailed instructions for installing the XML Toolkit for z/OS and OS/390 V1.4 and running the sample programs bundled with it. It describes how to use various tools that are part of the services development environment, details the support for XML in Enterprise COBOL, and provides an overview of the IBM WebSphere Application Server. This material is of interest mainly to system programmers and application programmers. The second part of the book is geared more to the needs of application developers and architects. It provides a comprehensive introduction to service-oriented architecture (SOA) and Web services, and describes in detail some service-based topologies for both legacy systems and new applications. Finally, this book presents some important design concepts to enable the reader to build robust SOA-based solutions rapidly. This includes an introduction to the IBM Patterns for e-business, as well as XML-based message design, and the principles of design by contract and service design.