Docstoc

XML and CA-Datacom - Datacom User Forum

Document Sample
XML and CA-Datacom - Datacom User Forum Powered By Docstoc
					XML and CA-Datacom

    Erik Pattenden
 QED Business Systems




               The CA-Datacom User Forum is sponsored
               by Computer Associates and organised by
               QED Business Systems
                 Agenda
Introduction to XML
How to Use XML at the Client/Application
  Front End
How to Use XML With Advantage
  CA-Datacom




                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
Introduction to XML




            The CA-Datacom User Forum is sponsored
            by Computer Associates and organised by
            QED Business Systems
          Introduction to XML
What is XML?
What is XML for?
  – XML = data definition
  – HTML = presentation definition
What does XML look like?
  – User defined tags




                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
      Why Is XML Significant?
Standard, non-proprietary, easy to
  understand and learn
   – W3C standard
Universal cross platform B2B and B2C data
  exchange
Portable data structures across and between
  different programming languages and
  computer architectures


                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
  Why Is XML Significant? (cont.)
Independent application-specific schemas
  developed by professional bodies (e.g.
  financial, insurance)
Supercedes ODBC
Alternative to JDBC
Growth of the internet and user expectations
Instant worldwide access – electronic
  business


                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
              Uses of XML
Integration of data with browser/GUI
  languages
   – Java, C++, Perl, VB, ASP, etc.
Web services
Web enablement
Enterprise Application Integration
eBXML



                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
What Does XML Look Like?

<?xml version=“1.0” standalone=“yes”?>
<order>
 <ord_id>1016</ord_id>
 <order_line>
  <itm_id>C30000</itm_id>
  <desc>GAME AND FISH COOKBOOK</desc>
  <ord_qty>4</ord_qty>
  <date>08/11/85</date>
 </order_line>
 …
</order>




                        The CA-Datacom User Forum is sponsored
                        by Computer Associates and organised by
                        QED Business Systems
How to Use XML at the
  Client/Application
      Front End




             The CA-Datacom User Forum is sponsored
             by Computer Associates and organised by
             QED Business Systems
 How to Use XML at the Client/Application Front
                     End

Web application architecture
Document type declarations
Browsers and stylesheets
APIs




                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
Web Application Architecture
Client Web Browser
Client Web Browser
                                             Static
                                             Static
   Web Server
   Web Server                                HTML
                                             HTML

                                         HTML
                                          HTML
 HTML Generator
 HTML Generator                         Template
                                        Template

 Business Logic
 Business Logic

    Advantage
    Advantage
  CA-Datacom/DB
  CA-Datacom/DB
                     The CA-Datacom User Forum is sponsored
                     by Computer Associates and organised by
                     QED Business Systems
   Document Type Declarations
Defines the sequence and nesting of tags
Grammar rules for XML document
     •   Element type
     •   Attribute list
     •   Entity
     •   Notation
Valid XML documents
Invalid XML documents


                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
        Document Type Declarations
                           (cont.)
    Stored in separate file from the document


<!ELEMENT   itm_id (#PCDATA)>
<!ELEMENT   desc (#PCDATA)>
<!ELEMENT   ord_qty (#PCDATA)>
<!ELEMENT   date (#PCDATA)>
<!ELEMENT   order_line (itm_id, desc, ord_qty, date)>
<!ELEMENT   order (ord_id, order_line)>




                                  The CA-Datacom User Forum is sponsored
                                  by Computer Associates and organised by
                                  QED Business Systems
       Browsers and the Web
XHTML
  – XML compatible HTML
Web browsers with built-in XML parser
  – XML documents displayable in
     • Internet Explorer 5.0 or greater
     • Netscape 6.0 or greater




                                 The CA-Datacom User Forum is sponsored
                                 by Computer Associates and organised by
                                 QED Business Systems
               Stylesheets
eXtensible Stylesheet Language (XSL)
   – XSL Transformations (XSLT)
   – XSL Formatting Objects (XSL-FO)
Template to transform XML document
Driven by browser, web server or application
  server
Outputs XML, HTML, plain text



                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
     xsl:stylesheet & xsl:transform
 XSLT stylesheet processor
 Controlled by templates


<?xml version=“1.0”?>
<xsl:stylesheet version=“1.0”>
<XSL:template match=“order”>
 <p>
  <xsl:value-of select=“ord_id”/>
 </p>
</xsl:template>


                              The CA-Datacom User Forum is sponsored
                              by Computer Associates and organised by
                              QED Business Systems
      Programming with XML
Two common API models
   – Document object model (DOM)
   – Simple API for XML (SAX)
   – Implemented in most programming
     languages
Others methods also available
Can also incorporate XSL transformations
  (XSLT)

                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
           DOM versus SAX
         DOM                                    SAX
Constructs in-memory      Doesn’t store data from
copy of the document      XML document during
                          parsing

In-memory document tree No support for modifying/
can be modified         writing data

Entire document must be   Document data becomes
parsed before tree        available as it is parsed
available to client

                             The CA-Datacom User Forum is sponsored
                             by Computer Associates and organised by
                             QED Business Systems
 How to Use XML with
Advantage CA-Datacom




            The CA-Datacom User Forum is sponsored
            by Computer Associates and organised by
            QED Business Systems
     The Enterprise Real World
The enterprise “real” world
  – z/OS, OS/390, VSE/ESA
  – CICS
  – Advantage CA-Datacom
  – 3GL and/or 4GL applications
Established and proven infrastructure
Vast body of existing “legacy” data (80%
  world’s data) on mainframe platform

                           The CA-Datacom User Forum is sponsored
                           by Computer Associates and organised by
                           QED Business Systems
 eBusiness Enterprise Architectures

Two-tier client/server limitations
  – Integration takes place on desktop
Enterprise applications require n-tier
  – Business logic on server




                            The CA-Datacom User Forum is sponsored
                            by Computer Associates and organised by
                            QED Business Systems
      Combining XML and Advantage CA-Datacom




               XML
             document
Advantage                XML                             XML
CA-Datacom              parser                        application
               XML
               DTD




                            The CA-Datacom User Forum is sponsored
                            by Computer Associates and organised by
                            QED Business Systems
                 Realities
XML is a data format standard
XML is not a data storage standard
Well-suited to relational data and DBMSs




                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
                  Issues
Transport mechanism of the internet (HTTP)
Translation of data from EBCDIC to ASCII
Definition of XML document – tags
Conversion of invalid XML tags
Flexibility of definition of XML document
Others – cost of implementation, support,
  etc.



                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems
   Using 3GLs for Web Access
Any LE-enabled language (COBOL, PL1, C,
  Assembler)
EXEC CICS WEB commands
   – SEND
   – READ
z/OS and OS/390 CICS TS 1.3 and above
VSE/ESA CICS TS 1.1 and above



                        The CA-Datacom User Forum is sponsored
                        by Computer Associates and organised by
                        QED Business Systems
     3GL Web Considerations
Facilitates reuse of existing code
Provides easy and effective access to
  Advantage CA-Datacom/DB Database
Implementation is dependent on CICS Web
  Interface
Hard-coded XML output structure




                        The CA-Datacom User Forum is sponsored
                        by Computer Associates and organised by
                        QED Business Systems
Advantage CA-Ideal Web
Architecture Components

         IIS/APACHE/…
          IIS/APACHE/…                                     Static
                                                           Static
                                                           HTML
                                                           HTML

                                                        HTML
                                                         HTML
    ASP/JSP/Advantage
     ASP/JSP/Advantage                                 Template
                                                       Template
    Integration Server/…
     Integration Server/…
  HTTP                   XML


    CICS Web Interface
    CICS Web Interface
    Advantage CA-Ideal
    Advantage CA-Ideal
 Advantage CA-Datacom/DB
 Advantage CA-Datacom/DB
                         The CA-Datacom User Forum is sponsored
                         by Computer Associates and organised by
                         QED Business Systems
                 Advantage CA-Ideal Application
                         Requirements

       Create CA-Ideal subprogram that processes HTTP
         input, executes business logic, and returns HTML
         page or XML document

<<WEBDEMO>> PROCEDURE
:======================================================================:
: This program accepts a STATE parameter from the FORM page and does :
: a lookup on the EMPLOYEE database.                                   :
:                                                                      :
:======================================================================:
   DO INIT
   DO GET_PARM
   DO DB_LOOKUP
   SET COMMAREA = $STRING(HEADER,
                          TABLE-START, RESULTS, TABLE-END,
                          TRAILER)
ENDPROC
. . .
                                               The CA-Datacom User Forum is sponsored
                                               by Computer Associates and organised by
                                               QED Business Systems
Advantage CA-Ideal Web Considerations

Facilitates reuse of existing code
Provides easy and effective access to
  CA-Datacom
Implementation is dependent on CICS Web
  Interface
Used for back-end business logic service
Static SQL input only
Hard-coded XML output structure

                         The CA-Datacom User Forum is sponsored
                         by Computer Associates and organised by
                         QED Business Systems
FireXML Web Architecture
      Components

       IIS/APACHE/…
        IIS/APACHE/…                                     Static
                                                         Static
                                                         HTML
                                                         HTML

                                                      HTML
                                                       HTML
  ASP/JSP/Advantage
   ASP/JSP/Advantage                                 Template
                                                     Template
  Integration Server/…
   Integration Server/…
HTTP                   XML


   CICS Web Interface
   CICS Web Interface
FireXML for CA-Datacom
FireXML for CA-Datacom
   CA-Datacom/DB
   CA-Datacom/DB
                       The CA-Datacom User Forum is sponsored
                       by Computer Associates and organised by
                       QED Business Systems
      FireXML for Advantage CA-Datacom
                Considerations


Dynamic SQL input
Flexible XML document structure output
High performance
No ODBC, EDBC, JDBC
Non-mainframe programmers can access
  mainframe as just “another XML data
  source”



                         The CA-Datacom User Forum is sponsored
                         by Computer Associates and organised by
                         QED Business Systems
    Live Demonstration of XML
XML from the Advantage CA-Datacom
 sample tables (ORD-ENTRY etc)
HTML application running on Personal Web
 Server on Windows 98



              HTTP/SQL

              HTTP/XML

                         The CA-Datacom User Forum is sponsored
                         by Computer Associates and organised by
                         QED Business Systems
  XML interfacing with FireXML
DBMS interfaces
  – FireXML for CA-Datacom
  – FireXML for DB2
  – FireXML for CA-IDMS
  – FireXML for AS400
Business logic interfaces
  – FireXML for CICS
  – FireXML for CA-Ideal          www.firexml.com



                        The CA-Datacom User Forum is sponsored
                        by Computer Associates and organised by
                        QED Business Systems
               Conclusion
Java is the universal programming language
XML is the universal data language
Combining these with Advantage
  CA-Datacom/DB is the challenge faced by
  the enterprise “real” world




                          The CA-Datacom User Forum is sponsored
                          by Computer Associates and organised by
                          QED Business Systems

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:1
posted:2/6/2013
language:English
pages:34