fb7a5307a42b104a183ec41a78595aae.ppt
- Количество слайдов: 30
z/Ware 2. 0 Technical Overview n illustro Systems International A Division of UNICOM Global Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information
Topics n n n n n z/Ware Common Components (ZWC) Combined Products Enhanced Script facilities Named Scripts Document facility Executing CICS programs COMMAREA Events HTTP Client facility Web. Service Client facility Batch Program API Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 2 2
z/Ware Common Components Infrastructure (ZWC) n n Common support services split from previous product code to create a new infrastructure that can support multiple products Allows multiple products to run in a single address space Simplifies the code of each product Multiple products receive benefit of support and enhancement Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 3 3
ZWC… n Services q q Multi-tasking workflow management Communications management n n q q q Message routing, logging, storing, retrieval Operator commands Operating system interfaces Storage management Dump/trace management 3270 session management Variable/value management Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 4 4
ZWC… n Services q q Document management File and Library management n q Read/write/caching HTTP Server n n HTML & XML support Static document serving CGI program execution Web services (SOAP) support Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 5 5
ZWC… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 6 6
z/Ware Product Functions Combined n z/Ware 2. 0 performs the functions previously handled by z/Web-Host and z/XML-Host q q Supports XML templates in addition to HTML Support Web Services (SOAP) requests and responses Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 7 7
Enhanced Script Facilities n n n Statements previously used with the Application Automation Facility (AAF) within a Web. Screen definition, are now refered to as Scripts Expanded to a more feature rich scripting facility Can be used in places other than a Web. Screen Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 8 8
Enhanced Script Facilities. . . n n Many new facilities in Version 2 use new script statements to perform important functions Several of the old statements have been expanded to work with new facilities q If q Assign Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 9 9
Execution of Named Scripts n A new facility called Named Scripts allows execution of stand alone scripts q q q Script statements stored in a library member and defined to the system with a script name Not associated with a 3270 session Requested from web page or off-platform program with any desired user variables Use any available scripting functions Requests can be one-time or persistent Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 10 10
Execution of Named Scripts. . . Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 11 11
The Document Facility n n n The Document script statement is used to create and delete in-storage user documents Documents are created from templates stored in library members Substitution of user variable values within the template Templates can contain HTML, XML or any desired text format Documents can be returned to the requestor, placed in a COMMAREA or used for other purposes Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 12 12
The Document Facility… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 13 13
Executing CICS COMMAREA Programs n Script statements can be used to: q q q Create named CICS COMMAREA buffers Map data fields within the COMMAREA Insert required data into the COMMAREA Request execution of a CICS program passing the COMMAREA Extract data from returned COMMAREA Create a user Document with returned data Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 14 14
Executing CICS COMMAREA Programs. . . n Multiple CICS regions can be defined and requests directed to desired region q Can use n n Generic or specific CICS connection Any desired mirror transaction id Any desired userid Persistent Script requests can be used to perform multiple requests using the same data items Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 15 15
Executing CICS COMMAREA Programs. . . Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 16 16
CICS COMMAREA Events n A COMMAREA Event is triggered by a user CICS program passing a COMMAREA to a z/Ware CICS program q q q The COMMAREA data is matched against the defined COMMAREA Event definitions Script statements from the matching COMMAREA Event are executed Updated COMMAREA is returned to original program Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 17 17
CICS COMMAREA Events… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 18 18
HTTP Client Support n Scripts can send GET or POST HTTP requests to external servers q q n n Servers in the data center Servers anywhere on the Internet Can be used to send data to remote servers or retrieve data from remote servers Documents are created by user and used for: q q q The URL Data (on post requests) Custom HTTP request headers (optional) Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 19 19
HTTP Client Support… n n n External servers are defined in the ZWC configuration via Define_Server statement The request is sent using the HTTP_Request script statement HTTP response headers are returned in the Document named HTTP_RESP_HDRS HTTP response data is returned in the Document named HTTP_RESP User variables set by request: q q q HTTP_RETURN HTTP_STATUS HTTP_RESPONSE 0 or numeric error code numeric HTTP result code character HTTP result string Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 20 20
HTTP Client Support… n n Script If statement can test “fields” in returned Document against character strings Script Assign statement can extract data “fields” from returned Document into user variables Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 21 21
HTTP Client Support… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 22 22
Web Service Client Support n n n Can invoke a Web Service residing anywhere on the Internet Called Type 1 service because it is not fully automated yet Documents created by user script & used for: q q n URL data SOAP Body data (XML elements sent as request) Automatically built: q q Server part of the URL string SOAP Envelope Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 23 23
Web Service Client Support… n n External servers are defined in the ZWC configuration via Define_Server statement The request is sent using the Web. Service_Type 1 script statement HTTP response headers are returned in the Document named HTTP_RESP_HDRS SOAP response data is returned in the Document named HTTP_RESP (XML response document) Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 24 24
Web Service Client Support… n User variables set by request: q q q n n SOAP_RETURN 0 or numeric error code HTTP_STATUS numeric HTTP result code HTTP_RESPONSE character HTTP result Script If statement can test data “fields” from returned documents Script Assign statement can extract data “fields” from returned documents into user variables Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 25 25
Web Service Client Support… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 26 26
Batch Program API n n n Extends the CICS COMMAREA concept to batch programs Allows simple program call to trigger script execution No TCP/IP Sockets programming Batch programmer does not have to know anything about TCP/IP, HTTP, SOAP, Web Services or other protocols User program builds COMMAREA (buffer) containing needed data Program call to ZWEBBAT 1 passing COMMAREA Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 27 27
Batch Program API… n n COMMAREA Event script triggered in z/Ware Server Script performs desired processing Updated COMMAREA returned to user program REXX external function provided q q q Place COMMAREA data on program stack Call ZWEBREXX() function Updated COMMAREA data returned on program stack Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 28 28
Batch Program API… Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 29 29
Wrap Up n n More is planned for future releases of Version 2 Please let us know if you have specific needs Copyright © 2012 -2015 UNICOM Systems, Inc. Confidential Information 30 30


