Chapter 9 Web Services Architecture and XML. Objectives By study in the chapter, you will be able to: Describe what is the goal of the Web services architecture.

Slides:



Advertisements
Similar presentations
Oct, 26 th, 2010 OGF 30, NSI-WG: Network Service Interface working group Web Services Overview Web Services for NSI protocol implementation
Advertisements

Web Service Architecture
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
31242/32549 Advanced Internet Programming Advanced Java Programming
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
1 Understanding Web Services Presented By: Woodas Lai.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
An Introduction to XML Based on the W3C XML Recommendations.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
EEC-681/781 Distributed Computing Systems Lecture 7 Wenbing Zhao (Lecture nodes are based on materials obtained from
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
2006 IEEE International Conference on Web Services ICWS 2006 Overview.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Introduction to XML This material is based heavily on the tutorial by the same name at
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
Introduction SOAP History Technical Architecture SOAP in Industry Summary References.
1 Web Services Distributed Systems. 2 Service Oriented Architecture Service-Oriented Architecture (SOA) expresses a software architectural concept that.
Object and component “wiring” standards This presentation reviews the features of software component wiring and the emerging world of XML-based standards.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
August Chapter 2 - Markup and Core Concepts Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology.
Chapter 6 Introduction to Web Services. Objectives By study of the chapter, you will be able to: Describe what is Web services Describe what are differences.
What is XML?  XML stands for EXtensible Markup Language  XML is a markup language much like HTML  XML was designed to carry data, not to display data.
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
Lecture 15 Introduction to Web Services Web Service Applications.
 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,
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
Chapter 10 Intro to SOAP and WSDL. Objectives By study in the chapter, you will be able to: Describe what is SOAP Exam the rules for creating a SOAP document.
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Copyright © 2013 Curt Hill SOAP Protocol for exchanging data and Enabling Web Services.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
XML Basics A brief introduction to XML in general 1XML Basics.
1 Web Services Web and Database Management System.
XML and Web Services (II/2546)
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
Kemal Baykal Rasim Ismayilov
CSIT 220 (Blum)1 Remote Procedure Calls Based on Chapter 38 in Computer Networks and Internets, Comer.
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 –
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
Introduction to Web Services. Agenda Motivation History Web service model Web service components A walkthrough examples.
1 G52IWS: Web Services Chris Greenhalgh. 2 Contents The World Wide Web Web Services example scenario Motivations Basic Operational Model Supporting standards.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
Web services In this presentation… –what is a web service? –web service benefits –web service standards –web service definitions –web service actions.
Evaluation Biztalk Table of Contents Introduction to XML. Anatomy of an XML document. What is an XML Schema? What is SOAP? XML Web Services overview.
.NET Mobile Application Development XML Web Services.
Introduction to Web Services Presented by Sarath Chandra Dorbala.
Web Services. XML Namespaces, Schemas XML processing. Week 2.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
XML 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SAMPLE XML SCHEMA (XSD) 2 Schema is a record definition, analogous to the.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 9 Web Services: JAX-RPC,
Chapter 13 XML Concept of XML Simple Example of XML
Java Web Services Orca Knowledge Center – Web Service key concepts.
Sabri Kızanlık Ural Emekçi
XML QUESTIONS AND ANSWERS
Web Server Administration
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
XML Introduction By Hongming Yu Feb 6th, 2002.
Presentation transcript:

Chapter 9 Web Services Architecture and XML

Objectives By study in the chapter, you will be able to: Describe what is the goal of the Web services architecture Conduct the historical review of other technologies before Web services Describe why the previous technologies are dissatisfied by the industries Exam what Web services can provide to allow us to avoid those problems Exam the major components of the architecture Describe how to make interactions between components in a Web service

Objectives Describe the components and structure of XML Exam the similarity and differences between XML and HTML Analyze the namespace and schema of XML Be able to write XML documents Questions and Discussion Homework

The goal of the Web services architecture Is application-to-application communication over the Internet. More specifically, this communication is performed with the idea of facilitating Enterprise Application Integration (EAI) and e-commerce, specially business-to-business e- commerce

Historical review of other technologies before Web services Web service is not the first attempt to reach the goal described before There are two major technologies even still available today to that attempt. They are: –CORBA (Common Object Request Broker Architecture) –DCOM (Distributed Component Object Model)

Historical review of other technologies before Web services (continue) What is CORBA? –Is released in 1991 by OMG (Object Management Group, Inc.) –Is language neutral and designed to work any language –Is using Stub/Skeleton based architecture –Is supported by many third-party vendors –More information about CORBA:

Historical review of other technologies before Web services (continue) What is DCOM? –Is released in earlier 1990’s by Microsoft to compete with OMG’s CORBA –Is using stub/skeleton based architecture –It can be built with Visual C++, Visual Basic, C#, and other languages –It only works with Microsoft Windows platforms –More information about DCOM: en-us/dndcom/html/msdn_dcomarch.asp en-us/dndcom/html/msdn_dcomarch.asp

Why the previous technologies are dissatisfied by the industries They are not to support asynchronous remote method calls They are weak in data encoding with binary formats only Programmer-defined data is not easy to work with CORBA and DCOM Data validation has to tie with program logic without the separation They are competing but rarely interoperating

What Web services can promise? Provides an approach that allow us to avoid many of the problems that CORBA and DCOM suffer from Supports message-centric asynchronous transactions as well as RPC-style synchronous transactions with equal ease Emphasizes on application integration and interoperation-ability Utilizes XML schema for data encoding

What Web services can promise? (continue) Utilizes XML documents that are human and machine readable and make debugging easier Utilizes XML to support arbitrary or programmer-defined data by using the WSDL in its description Separate Data validation from the program logic by adding to any XML document in ease

Major components of the architecture The following software specifications are considered as components of Web services: –HTTP –HTTP State Management mechanism (cookies) –SOAP –UDDI –WSDL –XML

Major components of the architecture (continue) HTTP –HyperText Transport Protocol –Current version 1.1 is required in Web services –Purpose of HTTP is to provide communications protocol to move the requests and responses between clients and servers –It’s a popular way to transport SOAP messages between clients and Web services –HTTP may be optional if SOAP 1.2 is used as a component in Web services because other protocols have been added

Major components of the architecture (continue) HTTP State Management Mechanism (Cookies) –It’s also called as RFC 2965 –It specifies how to create stateful sessions using HTTP requests and responses –It carries three headers’ information between participating clients and services ( ) –More information about RFC

Major components of the architecture (continue) SOAP (Simple Object Access protocol) –See explanation of the terminology and example in slides of Chapter 6 –We will discuss WSDL in next chapter

Major components of the architecture (continue) WSDL (Web Services Description Language) WSDL (Web Services Description Language) –See explanation of the terminology and example in slides of Chapter 6 –We will discuss WSDL in next chapter

Major components of the architecture (continue) UDDI (Universal Description, Discovery, and Integration) –See explanation of the terminology in slides of Chapter 6 –We will discuss UDDI in next chapter

Major components of the architecture (continue) XML (eXtensive Markup Language) –We will discuss it next

Interactions between components

Introduction to XML The components of XML –XML document A file that obeys the rule of XML –XML parser A software that takes XML as its input and produces a readable representation of its contents –Document Type definition (DTD) A description of the tags that are allowed in a document and their relationships to each other The DTD was made obsolete by the publication of the XML schema specification in 2001

Introduction to XML (continue) –XML schema A description of the tags that are allowed in a document and their relationships to each other –Namespaces A unique name can be used to avoid conflicts between tags names because a document may contain other XML documents so we must guarantee none tag names are identical to others

Simple Example of XML <SHOWS><PERFORMANCE> Fairy Princess Fairy Princess <AUTHOR/><DESCRIPTION> Scratch sound with emphasis on color, texture. </DESCRIPTION> 04/16/ /16/2002 </PERFORMANCE></SHOWS> is an empty tag without data --> is an empty tag without data -->

Simple Example of XML (continue) Execution result in Netscape 6.0: Fairy Princess Scratch sound with emphasis on color, texture. 04/16/2002 Execution result in Internet Explorer: - - Fairy Princess Fairy Princess Scratch sound with emphasis on color, texture. Scratch sound with emphasis on color, texture. 04/16/ /16/2002 </SHOWS>

XML vs. HTML in syntax Every XML document must have one root element, i.e., ….. Every XML document must have one root element, i.e., ….. Tags are case-sensitive in XML, but not in HTML No whitespace is permitted at the beginning of a tag (i.e., is not allowed), however whitespace at the end of tag is allowed (i.e., is okay), but not a case in HTML

XML vs. HTML in syntax (continue) The tag name must start with either a letter or an underscore, but user-defined tags are not allowed in HTML The tag names may contain any of following: letters, numerals, hyphens, periods, or underscores The tag names may contain any of following: letters, numerals, hyphens, periods, or underscores

XML vs. HTML in syntax (continue) Each tag must have an end tag, the same as HTML: i.e, ……………., or just an empty tag as, which is incorrect in HTML Tags must be nested i.e., ….. ….. is incorrect, but is okay in HTML Attribute values must be enclosed in quotes i.e., date status=canceled is incorrect Comments use the same HTML syntax i.e., i.e.,

XML Structure Each XML file starts with an optional prolog:, or, or Each XML file must have one and only one root element Each XML file may have DTD section or schemas section

Another example of XML file <ticketRequest> <customer custID=“1003” <lastName>Carter</lastName><firstName>Joseph</firstName></customer> <destination>Hawaii</destination><port>Honolulu</port><sailing>7/7/2005</sailing><numberOfTickets>5</numberOfTickets></isCommissionable></cruise></ticketRequest>

Namespaces in XML To be able to have unique tag names in an XML file, as namespaces, a prefix string is added before each tag and defined at the beginning of the root tag using a unique URL; for example:

XML schema and example Since the DTD did not allow us to specify data types well, W3C has released a new way to specify the legal contents of an XML file called XML schema In addition, XML schema also allow us to specify the range of values and data types of an element Example of XML schema for TicketRequest.xml

Questions and Discussion

Homework for Extra Points Create a simple XML file with at least four tags in which at least two tags with attributes for your college Create an XML schema file that validates the XML file above Due: Wednesday, June 1, 2005 in the class