XML, XSL, and SOAP

XML, XSL, and SOAP

XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000 New Web Technologies Technologies under development by the World Wide Web Consortium (W3C)

See http://www.w3.org Standards for Web-based documents XML: Extensible Markup Language XSL: Extensible Stylesheet Language SOAP: Simple Object Access Protocol Other technologies: XML Pointer, XML Fragments, XML Schema, Resource Description Framework (RDF) Copyright 2000, Sandeep Singhal XML, the Extensible Markup

Language Structured meta-data language Derived from SGML (Simple Generalized Markup Language) Same heritage as HTML, so looks similar Used to describe any type of information in a machine-readable way Copyright 2000, Sandeep Singhal

Components of XML DTD (Document Type Definition) Element

Description of valid XML document syntax (elements and structure) XML document component Example: Example: CDATA: Text inside an element Comments: Tags: , , Processing instructions: Copyright 2000, Sandeep Singhal Example XML Document Hello, world!

Copyright 2000, Sandeep Singhal Example DTD Copyright 2000, Sandeep Singhal A More Complex DTD Copyright 2000, Sandeep Singhal

XSL Extensible Stylesheet Language XSL is a language for expressing stylesheets (XSL:T) A language for transforming XML documents An XML vocabulary for specifying formatting semantics (under development)

An XSL stylesheet specifies the presentation of a class of XML documents by describing how an instance of the class is transformed into an XML document that uses the formatting vocabulary Copyright 2000, Sandeep Singhal Thinking of XSL Model the XML document as a tree XSL document is a list of node patterns and actions Search XML tree for matching patterns and apply corresponding actions Result is target document

Copyright 2000, Sandeep Singhal A Simple XSL Example

Copyright 2000, Sandeep Singhal Applying the Example

Document Title Chapter Title

Document Title

Chapter Title Copyright 2000, Sandeep Singhal

Defining an area of the Tree Types of relationships Child Sibling Parent Descendant Ancestor Root Copyright 2000, Sandeep Singhal Examples of Template

Matching para (element match) * (any element) chapter|appendix (either/or) olist/item (parent/child)

appendix//para (ancestor/child) / (root) id(W11) (any node with ID W11) para[1] (para element that is first child) para[last()=1] (only para child) para[position()>1] (not first para child) para[position() mod 2=1] (odd numbered child para) Copyright 2000, Sandeep Singhal Content Generation Among the things you can do: Generate numbered lists Create XML processing instructions Apply variables and dynamic values

Create comments Sort Copyright 2000, Sandeep Singhal Uses of XSL Convert XML data Into HTML, WML, VoiceXML, etc. One XSL document per target format Single input document

Bridge disparate systems EDI Legacy integration Copyright 2000, Sandeep Singhal SOAP: Simple Object Access Protocol Developed by IBM, Microsoft, Lotus, DevelopMentor, and UserLand Software Lightweight protocol for exchanging

information in a decentralized distributed environment XML description of an RPC call Implementation could be RMI or ActiveX or something else Represents an alternative to IIOP Uses HTTP to transport request/response Copyright 2000, Sandeep Singhal Document Structure

(mandatory) [Describes SOAP message type]

(optional): Includes processing instructions for the request (mandatory): Describes the parameters Fault: Includes error codes Copyright 2000, Sandeep Singhal SOAP Example Request HOST /StockQuote HTTP/1.1 Host: www.stockquoteserver.com Content-Type: text/xml; charset=utf-8

Content-Length: nnnn SOAPAction: Some-URI DIS Copyright 2000, Sandeep Singhal SOAP Example Response HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: nnnn

34.5 Copyright 2000, Sandeep Singhal Another SOAP Example

g/> 5 IBM Yes Copyright 2000, Sandeep Singhal Some Other Capabilities Encoding

Can define structures, arrays, enumerations, and other basic data types Transmission Use standard HTTP 1.1 Use HTTP Extension Framework Copyright 2000, Sandeep Singhal

Recently Viewed Presentations

  • Digital Photography - Nyíregyházi Főiskola

    Digital Photography - Nyíregyházi Főiskola

    Digital Photography Part 1 A crash course in optics Light Photo + graphy (greek) = writing with light Light is an electromagnetic (EM) wave. EM waves are periodic changes in an electromagnetic field.
  • Why does healthcare cost so much? Understanding the

    Why does healthcare cost so much? Understanding the

    Example: Surgeon fee for hip replacement U.S. Hospital spending is 3 times the global average Source: OECO Health Data, 2011 So who's on my side Policymakers engage in blame shifting to avoid making tough decisions Unlike in other countries, policymakers...
  • The Mark Parser

    The Mark Parser

    Frank Shipman, Morgan Price, Cathy Marshall, Gene Golovchinsky FX Palo Alto Laboratory Outline Analysis of the correspondence of annotations to citations in legal domain Design of "mark parser" to recognize and rank-order annotations Example use of mark parser results in...
  • ATI Cleanroom facilities Contact: T.E. Sale, t.sale@surrey.ac.uk Advanced

    ATI Cleanroom facilities Contact: T.E. Sale, [email protected] Advanced

    ATI Cleanroom facilities Contact: T.E. Sale, [email protected] Advanced Technology Institute, School of Electronics and Physical Sciences, University of Surrey, Guildford, GU2 7XH ATI Cleanroom facilities Contact: T.E. Sale, [email protected] Advanced Technology Institute, School of Electronics and Physical Sciences, University of...
  • Proposal: Preliminary Results and Discussion Dos and Donts

    Proposal: Preliminary Results and Discussion Dos and Donts

    Don't use default Excel plots! Figure should highlight the key relationships in the data. Should be clear - no extraneous legends, lines, only use annotations when they add real explanatory value.
  • Language Paper 2 Growing Up - English Department

    Language Paper 2 Growing Up - English Department

    The Victorian mother of Source B, however, although perhaps secretly proud of his 'manly figure,' conveys her feelings of sadness that her son no longer needs her: 'It is a long while now since he disappeared,' implying the loss is...
  • Environmental Microbiology -Laboratory Manual- prepared for ...

    Environmental Microbiology -Laboratory Manual- prepared for ...

    Environmental Microbiology-Laboratory Manual-prepared for Environmental MicrobiologyIVBiochemical Activity of microorganism. ... Thermolabile (denaturated by heat) ... Environmental Microbiology -Laboratory Manual- prepared for Environmental Microbiology IV Biochemical Activity
  • Private Analysis of Graph Structure

    Private Analysis of Graph Structure

    Answers on neighboring graphs should be similar. ADS: Remove the comma, remind people that the input is a graph. ?-differential privacy (edge privacy) ... Also, the equations in my copy got messed up but I assume that is a PC...