CICS TS for Z/OS: Using Web Services with CICS Chapter 1

Total Page:16

File Type:pdf, Size:1020Kb

CICS TS for Z/OS: Using Web Services with CICS Chapter 1 CICS Transaction Server for z/OS 5.5 Using Web Services with CICS IBM Note Before using this information and the product it supports, read the information in “Notices” on page 635. This edition applies to the IBM® CICS® Transaction Server for z/OS® Version 5 Release 5 (product number 5655-Y04) and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 1974, 2020. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this PDF.....................................................................................................vii Chapter 1. CICS and web services..........................................................................1 CICS and SOAP web services ......................................................................................................................3 Message handlers and pipelines............................................................................................................4 SOAP nodes.......................................................................................................................................... 12 SOAP messages and the application data structure........................................................................... 12 WSDL and the application data structure............................................................................................15 WSDL and message exchange patterns...............................................................................................16 The web service binding file.................................................................................................................17 SOAP architecture and message format..............................................................................................18 Planning to use SOAP web services.....................................................................................................26 CICS and JSON web services.................................................................................................................... 27 Concepts of JSON web services.......................................................................................................... 28 Concepts of RESTful JSON web services.............................................................................................30 Planning to use JSON web services.....................................................................................................31 CICS and z/OS Connect............................................................................................................................. 33 Capabilities of z/OS Connect for CICS................................................................................................. 37 Chapter 2. Configuring web services in CICS........................................................ 39 Configuring your CICS system for web services....................................................................................... 39 CICS resources for web services......................................................................................................... 39 Configuring CICS to use the IBM MQ transport...................................................................................42 Interoperability between the web services assistant and WSRR....................................................... 49 Creating the web services infrastructure.................................................................................................. 50 The web services infrastructure.......................................................................................................... 50 Creating the CICS infrastructure for a SOAP service provider............................................................ 59 Creating the CICS infrastructure for a SOAP service requester..........................................................61 Creating the CICS infrastructure for a JSON service provider............................................................ 62 Creating the CICS infrastructure for a non-Java JSON service provider............................................ 63 Configuring z/OS Connect for CICS......................................................................................................64 Pipeline configuration files...................................................................................................................79 Application handlers.......................................................................................................................... 124 Message handlers.............................................................................................................................. 126 The SOAP message handlers.............................................................................................................133 Containers used in the pipeline......................................................................................................... 137 Runtime processing for web services................................................................................................162 Support for Web Services transactions............................................................................................. 170 Support for MTOM/XOP optimization of binary data.........................................................................177 Support for Web Services Addressing............................................................................................... 185 Support for SAML............................................................................................................................... 203 Chapter 3. Developing web services................................................................... 205 Creating a JSON web service.................................................................................................................. 205 The CICS JSON assistant .................................................................................................................. 205 Creating a JSON service provider application...................................................................................242 JSON web service restrictions...........................................................................................................255 Mapping and transforming application data and XML............................................................................257 The CICS XML assistant .................................................................................................................... 257 Generating mappings from language structures...............................................................................365 iii Generating mappings from an XML schema......................................................................................367 Transforming application data to XML...............................................................................................368 Transforming XML to application data...............................................................................................369 Mapping and transforming application data and JSON..........................................................................370 The CICS JSON assistant .................................................................................................................. 371 Generating mappings from language structure................................................................................ 443 Generating mappings from a JSON schema......................................................................................445 Transforming application data to JSON by linking to DFHJSON.......................................................446 Transforming application data to JSON by using the TRANSFORM DATATOJSON API command...447 Transforming JSON to application data by linking to DFHJSON.......................................................448 Transforming JSON to application data by using the TRANSFORM JSONTODATA API command...448 Creating a JSON web service client application................................................................................449 Creating a SOAP web service.................................................................................................................. 450 The CICS web services assistant ...................................................................................................... 451 Creating a web service provider using the assistant.............................................................................. 538 Creating a service provider application from a web service description..........................................538 Creating a service provider application from a data structure .........................................................540 Creating a channel description document........................................................................................ 543 Customizing generated web service description documents........................................................... 544 Sending a SOAP fault......................................................................................................................... 546 Creating a web service requester using the assistant............................................................................ 547 Creating a web service using tooling.......................................................................................................549
Recommended publications
  • Automatic Test Generation of REST Apis Automatiserad Testgenerering Av REST API
    Linköping University | Department of Computer and Information Science Master’s thesis, 30 ECTS | Datateknik 2020 | LIU-IDA/LITH-EX-A--20/068--SE Automatic Test Generation of REST APIs Automatiserad testgenerering av REST API Axel Karlsson Supervisor : Anders Fröberg Examiner : Erik Berglund External supervisor : Linus Lindholm Linköpings universitet SE–581 83 Linköping +46 13 28 10 00 , www.liu.se Upphovsrätt Detta dokument hålls tillgängligt på Internet - eller dess framtida ersättare - under 25 år från publicer- ingsdatum under förutsättning att inga extraordinära omständigheter uppstår. Tillgång till dokumentet innebär tillstånd för var och en att läsa, ladda ner, skriva ut enstaka ko- pior för enskilt bruk och att använda det oförändrat för ickekommersiell forskning och för undervis- ning. Överföring av upphovsrätten vid en senare tidpunkt kan inte upphäva detta tillstånd. All annan användning av dokumentet kräver upphovsmannens medgivande. För att garantera äktheten, säker- heten och tillgängligheten finns lösningar av teknisk och administrativ art. Upphovsmannens ideella rätt innefattar rätt att bli nämnd som upphovsman i den omfattning som god sed kräver vid användning av dokumentet på ovan beskrivna sätt samt skydd mot att dokumentet ändras eller presenteras i sådan form eller i sådant sammanhang som är kränkande för upphovsman- nens litterära eller konstnärliga anseende eller egenart. För ytterligare information om Linköping University Electronic Press se förlagets hemsida http://www.ep.liu.se/. Copyright The publishers will keep this document online on the Internet - or its possible replacement - for a period of 25 years starting from the date of publication barring exceptional circumstances. The online availability of the document implies permanent permission for anyone to read, to down- load, or to print out single copies for his/hers own use and to use it unchanged for non-commercial research and educational purpose.
    [Show full text]
  • ICSOC Phd Symposium 2008
    Hamid Reza Motahari-Nezhad Farouk Toumani Yannis Velegrakis (Eds.) ICSOC PhD Symposium 2008 Co-located with 6th International Conference on Service Ori- ented Computing (ICSOC) Sydney, Australia, 1 December 2008 Proceedings Sponsor: IBM Research, USA Copyright c 2008 for the individual papers by the papers’ authors. Copying permitted for private and academic purposes. Re-publication of material from this volume requires permission by the copyright owners. Preface Service oriented computing (SOC) has rapidly transformed from a vision, in the beginning of the century, to realisation in paradigms such as Web services, Software-as-a-Service (SaaS) and cloud services. While this has provided the industry and practitioners with the opportunities for a new generation of products and services, it has brought forward a tremendous amount of challenges and open issues for researchers. The International Con- ferences on Service Oriented Computing (ICSOC) is a pioneering event for researchers, practitioners and industry leaders to discuss and share the success and achievements in this area. The ICSOC PhD Symposium, as part of the ICSOC conference, is an international forum for PhD students working in the broad areas of service computing, web services and ser- vice engineering to present and discuss emerging research problems and ideas on how to tackle these issues. The forum is intended to bring together PhD students and give them the opportunity to present and discuss their research in a constructively critical atmosphere. The symposium operates in a workshop format, giving PhD students an opportunity to showcase their research and providing them with feedback from senior international re- searchers and peer PhD students.
    [Show full text]
  • Modeling the Evaluation Criteria for Security Patterns in Web Service Discovery V.Prasath K.C.E.T, Department of IT S.Kumarapuram, Cuddalore India 607109
    ©2010 International Journal of Computer Applications (0975 – 8887) Volume 1 – No. 13 Modeling the Evaluation Criteria for Security Patterns in Web Service Discovery V.Prasath K.C.E.T, Department of IT S.Kumarapuram, Cuddalore India 607109. ABSTRACT of descriptions to various services that provide similar service Current trends in performing business-to-business transactions functionality. Automation of dynamic web service discovery is and enterprise application integration have been extended to the made viable by expression of domain specific knowledge [2] [4]. use of web service. With web services being accepted and Today’s systems, and the enterprises in which they reside, are so deployed in both research and industrial areas, the security related complex that even the most capable risk measurement tools are issues become important. Web services security has attracted the unlikely to yield risk values that are much better than rough attention of researchers in the area of security due to the proven indications of relative risk which, we should quickly add, is often fact that most attacks to businesses and organizations exploit web quite good enough in many situations. The problem is that the service vulnerabilities. The main goal of this research is to value of risk, whatever it turns out to be, is likely to be surrounded achieve security concept of the web service can be summarized to by a fairly large but unknown amount of uncertainty. This can this single value. In this paper, we evaluate common security create a dilemma for the decision-maker who must then decide patterns with respect to the STRIDE model of attacks by whether to invest in further safeguards, which will undoubtedly examining the attacks performed in different web services system.
    [Show full text]
  • REST Web Service Description for Graph-Based Service Discovery
    REST Web Service Description for Graph-Based Service Discovery B Rosa Alarcon, Rodrigo Saffie, Nikolas Bravo( ), and Javiera Cabello Computer Science Department, Pontificia Universidad Catolica de Chile, Santiago, Chile [email protected], {rasaffie,ngbravo,jacabell}@uc.cl Abstract. Unlike WSDL/SOAP based services, REST services lack a widely accepted service description since it increases the coupling between clients and servers, hampering service evolution. In practice, REST services are described through informal, ad-hoc and semi- structured documents, often written in natural language, which wors- ens the level of coupling. Most of the few REST service descriptions currently proposed follow an operation-centric approach with unclear additional benefits for developers and consumers. We propose a service description model focused on hypermedia allowing the generation of a graph that captures state transitions in an activity layer;wealsocapture resource, transition, and response semantics in a semantic layer. Using graph queries we traverse the graph and facilitate service discovery and composition. The service model was implemented as Microdata-based annotations, and a JSON description. A prototype was developed using Neo4J, and a set of real Web APIs was chosen to illustrate our approach. 1 Introduction The Web is an Internet-scale distributed hypermedia that provides a uniform way of accessing information through embedding action controls within the infor- mation retrieved from remote sites (i.e. representations). These features have made possible for the Web to evolve from a content-distribution platform to an application platform, and nowadays, to a distributed services platform, where functionality can be integrated into new services for massive consumption.
    [Show full text]
  • WEB SERVICES: PRINCIPLES and TECHNOLOGY Michael P
    WEB SERVICES: PRINCIPLES WEB SERVICES: PRINCIPLES AND TECHNOLOGY Michael P. Papazoglou “This book is one of the most comprehensive treatments of Web services I have seen. It covers the full gamut of concepts, principles, supporting technology and necessary infrastructure required to build a service-oriented architecture using today’s advanced standards. I highly recommend this book.” Dave Chappell: author, Enterprise Service Bus “This book, authored by one of the most respected experts in the Web services fi eld, is an invaluable reference for both academics and practitioners. Because of its rigor and completeness it is bound to become the defi nitive guide to Web services technologies.” AND Francisco Curbera: manager, Component Systems, IBM T.J. Watson Research Center TECHNOLOGY Web services represent the next generation of web-based technology. They allow new and improved ways for enterprise applications to communicate and integrate with each other and, as such, are having a profound effect on both the worlds of business and of software development. In this new book, Michael Papazoglou offers a comprehensive examination of Web services which gives you all you will need to know to gain a solid foundation in this area. This book will help you to understand: ● The nature of Web services – what they actually are ● The underlying concepts, principles, and methodologies of Web services ● The fundamental technologies that underpin the Web services paradigm ● How Web services are introduced into organizations, and how they are designed, deployed and used Michael P. Papazoglou Papazoglou Michael P. ● The key standards necessary for the development of Web services Web Services: Principles and Technology is suitable for computer science students and also for professionals who need an introduction to this area.
    [Show full text]
  • 16Th ICCRTS “Collective C2 in Multinational Civil-Military Operations”
    16th ICCRTS “Collective C2 in Multinational Civil-Military Operations” Title of Paper Adapting WS-Discovery for use in tactical networks Topic(s) Primary: Topic 9: Networks and Networking Alternatives: Topic 8: Architectures, Technologies, and Tools, Topic 6: Experimentation, Metrics, and Analysis Name of Author(s) Frank T. Johnsen and Trude Hafsøe Norwegian Defence Research Establishment (FFI) P.O. Box 25 2027 Kjeller, Norway Point of Contact Frank T. Johnsen Norwegian Defence Research Establishment (FFI) P.O. Box 25 2027 Kjeller, Norway [email protected] Abstract The NATO Network Enabled Capabilities (NNEC) feasibility study has identified Web services as a key enabling technology for NNEC. The technology is founded on a number of civil standards, ensuring interoperability across different operating systems and programming languages. This also makes the technology a natural choice for interoperability also in multinational civil-military operations, where a large number of heterogeneous systems need to exchange information. Web services provide loose coupling and late binding, which are desirable properties in such a setting. Discovering available services in an operation is essential, and the discovery process must leverage standards to ensure interoperable information exchange. WS-Discovery is a standard for Web services discovery suited for dynamic environments and civil networks, but has high overhead and is not so suitable for tactical networks. Like the other Web services standards, it uses XML for encoding messages. In civil networks bandwidth is abundant, but in tactical networks XML may incur unacceptable overhead. However, the W3C has created a specification for efficient XML interchange (EXI), which reduces XML overhead by defining a binary interchange format.
    [Show full text]
  • Paper Title (Use Style: Paper Title)
    Federated Single Sign On in Disconnected, Intermittent and Limited (DIL) Networks Marianne R. Brannsten Norwegian Defence Research Establishment (FFI) P O Box 25, NO-2027 Kjeller Abstract—In a military setting resource exchange amongst coalition partners is of great importance. Using SAML2.0 in a II. RELATED WORK Single Sign On scheme in a federated setting can be a solution to Earlier work has shown that it is possible to use Web Web authentication of Web resources. The problem of adding services in tactical networks [15]. Standards “out of the box” security in a potentially disconnected, intermittent and limited might not handle the additional challenges DIL environments (DIL) network environment is the security overhead. In this introduce, but by using specialized proxies, the technology paper tests are performed to measure this overhead, and the could work despite the DIL limitations. This lets us attain the results are evaluated. advantages of SOA using Web services on a tactical level. Keywords—Single Sign On(SSO); Enterprise; Federation; WS- Lund et al. [1] have proved this in their “Delay- and distruption Federation;SAML2.0 tolerant SOAP proxy”. Johnsen et al. [2] have shown that service discovery also can be brought into tactical networks using a discovery protocol translations enabled gateway I. INTRODUCTION solution. Both solutions bring Web services to the tactical In both operations and exercises, NATO needs to connect domain, but none of them are evaluated with use of relevant to coalition partners. FMN (Federated Mission Networking)[8] security standards. The work presented in this paper can by this is defined by NATO to enable information and service be viewed as orthogonal and complementary to this earlier exchange amongst coalition participants in such events.
    [Show full text]
  • Service Discovery in Hybrid Environments
    Service Discovery in Hybrid Environments Sabrina Alam Chowdhury Department of Informatics Faculty of mathematics and natural sciences UNIVERSITETET OF OSLO 01/08/2017 1 2 Service Discovery in Hybrid Environments 3 © 2017 Sabrina Alam Chowdhury Service Discovery in Hybrid Environments http://www.duo.uio.no/ Printed: Reprosentralen, University of Oslo 4 Abstract The thesis topic is based on Service discovery of heterogeneous Web services across hybrid environments. Here it also describes a clear definition of SOA and Web service with different standards to implement those services in different environments. Furthermore an analysis and survey of Web services standards also given in this thesis. An overview also discussed here that how different Web service discovery mechanism solution is currently available to discover services in different environments which include from cloud to non-cloud , non- cloud to cloud and other platforms with some research challenges on service discovery for SOAP and RESTful Web services. A prototype has been implemented as a proof of concept for enabling common service discovery for hybrid environments for different Web services. 5 6 Preface The thesis represents the final product of my master degree in Informatics at the University of Oslo. The work described herein is conducted under the supervision of Dr. Frank Trethan Johnsen and Cand. Scient. Trude Hafsøe Bloebaum. The thesis has been a long journey, and I would not have been able to complete it without the precious help and support given by various people. The learning curve of my career becomes so high, and I got to understand lots of interesting things while working on this thesis.
    [Show full text]
  • Web Service Discovery with Implicit Qos Filtering
    Web Service Discovery with Implicit QoS Filtering Natallia Kokash DIT - University of Trento, Via Sommarive, 14, 38050 Trento, Italy email: [email protected] Abstract. Web Service (WS) discovery is a critical problem hinder- ing web service technology proliferation. The current solution, based on catalog-style browsing, provides no control over the quality of registered services. Application of matching techniques for WS retrieval is still un- der investigation. The objective of this work is the design of a framework to improve WS discovery. Our approach is based on application of dis- tributed recommendation system to provide Quality of Service (QoS) information and on testing of retrieval methods on service specifications. 1 Introduction WS paradigm is a promising model of software technology, based on loosely coupled, distributed and independent services operating via the web infrastruc- ture. To overcome platform and language dependence, services are described using Web Service Description Language (WSDL). Standardized XML-based interfaces help performing service reuse. Service descriptions are cataloged in Universal Discovery, Description and Integration (UDDI) registries. Although there exists a stack of standards to regulate the communication of processes and automated tools to convert legacy applications into web services, WS technology is still not widely used. One of the reasons is the lack of means to support WS discovery, i.e., the identification of existing WSs that can be used by new web applications. This problem is rather extensive and admits various interpretations [4]. Under automated discovery, a requester agent performs service search and evaluates the results. Currently UDDI registries are the dominating technolog- ical basis for WS discovery.
    [Show full text]
  • Web Service: Been There, Done That?
    Wright State University CORE Scholar The Ohio Center of Excellence in Knowledge- Kno.e.sis Publications Enabled Computing (Kno.e.sis) 1-2003 Web Service: Been There, Done That? Steffen Staab Will van der Aalst V. Richard Benjamins Amit P. Sheth Wright State University - Main Campus, [email protected] John A. Miller Wright State University - Main Campus See next page for additional authors Follow this and additional works at: https://corescholar.libraries.wright.edu/knoesis Part of the Bioinformatics Commons, Communication Technology and New Media Commons, Databases and Information Systems Commons, OS and Networks Commons, and the Science and Technology Studies Commons Repository Citation Staab, S., van der Aalst, W., Benjamins, V. R., Sheth, A. P., Miller, J. A., Bussler, C., Maedche, A., Fensel, D., & Gannon, D. (2003). Web Service: Been There, Done That?. IEEE Intelligent Systems, 18 (1), 72-85. https://corescholar.libraries.wright.edu/knoesis/189 This Article is brought to you for free and open access by the The Ohio Center of Excellence in Knowledge-Enabled Computing (Kno.e.sis) at CORE Scholar. It has been accepted for inclusion in Kno.e.sis Publications by an authorized administrator of CORE Scholar. For more information, please contact [email protected]. Authors Steffen Staab, Will van der Aalst, V. Richard Benjamins, Amit P. Sheth, John A. Miller, Chistoph Bussler, Alexander Maedche, Dieter Fensel, and Dennis Gannon This article is available at CORE Scholar: https://corescholar.libraries.wright.edu/knoesis/189 Trends & Controversies
    [Show full text]
  • Schema Validation Based on Swagger
    Schema Validation Based On Swagger gyratesIs Jonny or pantheistic schematising when some Danie citronellal spot-welds participantly, profanely? however Unrisen organometallic Walton shaping Verne some deferring toolbox aftersmack quantitative or deconsecrates. Hall reflect south. Disconcerting Vance The cupboard provided should validate against the schema sucessfully descriptionmodel desc. To all said to an api design visually and. Validating JSON Schemas with an RSpec Matcher Thoughtbot. PhoenixSwaggerSchema phoenixswagger v03. If referencing an error icon, swagger in an http call to generate api. A subset of blade flex tooling implements JSON schema validation from. ASPNET Core FluentValidation Swagger Anexinet. Mule 4 JSON Schema Validation DZone Integration. Define a Schema for as External graduate Unit Salesforce. The schema validation in a way, we share our local. Building a Nodejs service using the API-first approach Red. Checks whether in swagger specifications in this post has no value will try and swagger schema. Part 2 A day solve using Ruby JSON Schema Validator and the. Some trouble importing yours and it looks like at may be what few errors according to a validation tool. It leverages JSON Schema as real data model and is built based on 10. Validating JSON against Swagger API schema Stack Overflow. Output of an initial policy. Let us improve technical details for requests and abstraction of having tests and it will also change. Host or base template to swagger ui, only contain examples are applied to be very useful toolkit that implementing an archived thread. The structure defined by save a language can perhaps turn be used to verify implementations validate inputs or generate code.
    [Show full text]
  • Swagger Ui Generate Documentation
    Swagger Ui Generate Documentation anyIntegrative step-up! and Is Silviopinier nineteenthEdmond often or subventionary wigwagged some when cannonry diabolizing lengthwise some Maseru or denying sleys boozily.aback? Bonzer or oilier, Alasdair never soliloquise The spec in every time it We believe serve the future child the necessary business economy will be driven by data. Can add new ideas in small businesses are sent, and make bad small businesses and output is it seems intuitive, and bulleted information? Nevertheless, audio equipment, you over usually just Google the solution. Also exacerbated by swagger ui documentation, assertible is documented in any process? We generate swagger ui generation based on a specific industry knowledge to generating documentation! Enigma Services in a manner for which Enigma Services were not designed or intended or as not described in the Documentation. This is the nature of working with docker images. Marketing teams can also integrate bankruptcy data would lead qualification to segment out bankrupted leads. In liberty a except it is clearly efficient to hassle a ball control code to signal the separation of two files. This part of generators, generating your api! Thanks a place, generate the target for each other small business loan exposures and contract from swagger ui generate documentation! The jwt token, and restaurant in jsdoc comments are available version support for you regenerate your developers can have you can i did. Other its is to generate documentation from code. You will notice that there are no descriptions displayed or even a name associated with the operation. He covers how they stayed lean and were able to gain enough traction to eventually catch the eye of their first real investor.
    [Show full text]