XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000.

Slides:



Advertisements
Similar presentations
XML: Extensible Markup Language
Advertisements

Simple Object Access Protocol (SOAP) v1.1 CS-328 Dick Steflik.
Information Management NTU Web Services. Information Management NTU What Are Web Services? Semantically encapsulate discrete functionality Loosely coupled,
SOAP Lee Jong-uk. Introduction What is SOAP? The features of SOAP The structure of SOAP SOAP exchange message model & message Examples of SOAP.
Introduction to XML, SOAP and Biztalk M Arie Leeuwesteijn
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
Rendering XML documents with XSL The most powerful approaches to rendering XML documents involve using XSL (eXtensible Stylesheet Language) XSL enables.
XSL Concepts Lecture 7. XML Display Options What can XSL Transformations do? generation of constant text suppression of content moving text (e.g., exchanging.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
17 Apr 2002 XML Stylesheets Andy Clark. What Is It? Extensible Stylesheet Language (XSL) Language for document transformation – Transformation (XSLT)
Processing of structured documents Spring 2003, Part 6 Helena Ahonen-Myka.
TP2653 Adv Web Programming SOAP and WSDL. SOAP Simple Object Access Protocol – Lightweight XML-based messaging protocol – A protocol for accessing a Web.
An Introduction to XML Patrice Bonhomme & Laurent Romary Lucid-ITLORIA eXtensible Markup Language version 1.0 Recommendation,
AMS confidential & proprietary International Business and Technology Consultants 1 XML as a Document Exchange Format Tom Loukas AMS Center for Advanced.
XML – Extensible Markup Language XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XSLT for Data Manipulation By: April Fleming. What We Will Cover The What, Why, When, and How of XSLT What tools you will need to get started A sample.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
WORKING WITH XSLT AND XPATH
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
 2003 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
 2003 Prentice Hall, Inc. All rights reserved. 3 rd Edition Slide 1 Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
Web Services: XML & SOAP Presented by: Davor Svetinovic Date: July 22, 2002.
Web Services (SOAP, WSDL, and UDDI)
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
Simple Object Access Protocol (SOAP) Mark H Needleman Data Research Associates, Inc. ZIG Meeting December 2000.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
XML Part 2 Josh Steele CS 6704, Spring XML Part 2 XSL/XSLT –Structure Revisited –Definition –Example –Components XML’s Linking Languages XML’s Uses.
Lecture 11 XSL Transformations (part 1: Introduction)
SOAP. Introduction SOAP is  a lightweight protocol  used for exchanging data in a decentralized distributed environment  XML-based  independent from.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
1 Web Services Web and Database Management System.
Enterprise Computing: Web Services
Simple Object Access Protocol. Web Services: SOAP2 Why Simple Object Access Protocol Light weight replacement for complicated distributed object technology.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
.NET and SOAP An Overview of SOAP By Raghavendra Aekka.
SOAP Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
COP 3813 Intro to Internet Computing Prof. Roy Levow XML.
University of Nottingham School of Computer Science & Information Technology Introduction to XML 2. XSLT Tim Brailsford.
Martin Kruliš by Martin Kruliš (v1.1)1.
The goal of XML Protocol Develop technologies allowing peers to communicate…....in a distributed environment......using XML as encapsulation language.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
Netprog: Soap & XML-RPC1 XML-RPC and SOAP. Netprog: Soap & XML-RPC2 XML Extensible Markup Language Markup Language. –HTML is also a markup language (but.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Lecture VI: SOAP-based Web Service CS 4593 Cloud-Oriented Big Data and Software Engineering.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Extensible Markup Language
1 XSL Transformations (XSLT). 2 XSLT XSLT is a language for transforming XML documents into XHTML documents or to other XML documents. XSLT uses XPath.
SOAP : Simple Object Access Protocol A ‘clean’ tool for remote procedure calls.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
XML Related Technologies
XML in Web Technologies
Session I - Introduction
Session I - Introduction
Chapter 7 Representing Web Data: XML
Chapter 20 – Extensible Markup Language (XML)
More XML XML schema, XPATH, XSLT
Presentation transcript:

XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000

Copyright © 2000, Sandeep Singhal New Web Technologies Technologies under development by the World Wide Web Consortium (W3C) See 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) Description of valid XML document syntax (elements and structure) Element 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 <xsl:stylesheet version="1.0“ xmlns:xsl=" xmlns="

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: Content-Type: text/xml; charset=“utf-8” Content-Length: nnnn SOAPAction: “Some-URI” <SOAP-ENV:Envelope xmlns:SOAP-ENV= SOAP-ENV:encodingStyle= DIS

Copyright © 2000, Sandeep Singhal SOAP Example Response HTTP/ OK Content-Type: text/xml; charset=“utf-8” Content-Length: nnnn <SOAP-ENV:Envelope xmlns:SOAP-ENV= SOAP-ENV:encodingStyle= 34.5

Copyright © 2000, Sandeep Singhal Another SOAP Example … <SOAP-ENV:Envelope xmlns:SOAP-ENV= SOAP- ENV:encodingStyle= <t:Transaction xmlns:t=“some-URI” SOAP-ENV:mustUnderstand=“1”> 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