Veebiteenused & XML & XPATH

Slides:



Advertisements
Similar presentations
CIS 375—Web App Dev II SOAP.
Advertisements

SOAP SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol * SOAP is a communication protocol * SOAP is for communication.
XML: Styling and Transformation Dr Andy Evans. Multiple views Nice thing is that this data can be styled in lots of different ways using stylesheets.
Web Services Seminar: Service Description Languages
IDU0075 Veebiteenused Tarvo Treier
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
1 Overview of XPath. 2 XPATH XPath expressions are used to locate nodes in XML documents The list of nodes located by an XPath expression is called a.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
CIS 375—Web App Dev II XPath. 2 XPath IntroductionIntroduction What is XPath? XPath is a syntax for defining parts of an _____ document XPath uses paths.
CS 415 N-Tier Application Development By Umair Ashraf July 16,2013 National University of Computer and Emerging Sciences Lecture # 12 HTML/ XHTML/ HTML5.
Web service testing Group D5. What are Web Services? XML is the basis for Web services Web services are application components Web services communicate.
Integrating XML with Microsoft SQL Server ©NIITeXtensible Markup Language/Lesson 9/Slide 1 of 31 Objectives In this lesson, you will learn to: * Generate.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
Maziar Sanaii Ashtiani – SCT – EMU, Fall 2011/12.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML and XPath. Web Services: XML+XPath2 EXtensible Markup Language (XML) a W3C standard to complement HTML A markup language much like HTML origins: structured.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
1 XPath XPath became a W3C Recommendation 16. November 1999 XPath is a language for finding information in an XML document XPath is used to navigate through.
 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,
IDU0075 Sissejuhatus veebiteenustesse Tarvo Treier
Web Services Brenton Lovett Wizard Information Services.
XPath Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Lecture 11 XSL Transformations (part 1: Introduction)
Web Services Standards. Introduction A web service is a type of component that is available on the web and can be incorporated in applications or used.
Protsesside realiseerimine, BPEL Tarvo Treier
WPI, MOHAMED ELTABAKH PROCESSING AND QUERYING XML 1.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
XML and Object Serialization. Structure of an XML Document Header Root Element Start Tags / End Tags Element Contents – Child Elements – Text – Both (mixed.
C# 1 Web services CSC 298. C# 2 Web services  A technology to make libraries available across the internet.  In Visual Studio,  can create a web service.
Calling Web Services from Oracle Presenter – Raymond Jones Company – Intermountain Healthcare Background – We are implementing a new ERP system (Peoplesoft)
XML - eXtensible Markup Language Who Am I? Name: Jared Rypka-Hauer Owner: Continuum Media Group, LLC Adobe Community Expert – ColdFusion 9 years ColdFusion.
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.
1 WS-Policy. 2 What’s the Problem? To use a web service a client needs more information than is provided in WSDL file. Examples: –Does service support.
1 XPath Extracting Data from XML. 2 Data stored in an XML document must be extracted to use with various applications Data can be extracted programmatically.
Discovery of Manageability Clarification
3/18/2002AIM AB Review of WSRP/WSIA Adaptation Description Language, Past and Present Directions. Ravi Konuru, IBM.
WSDL Enn Õunapuu Tallinna Tehnikaülikool
Some Notes on XSLT Eugenia Fernandez IUPUI. Transforming XML with XSLT XSLT processor converts XML document into a node tree Uses XSLT stylesheet for.
Web Services Dr.Kwanchai Eurviriyanukul The contents of this slide set are obtained from various sources including W3School, WIKIPEDIA.
WebServices Testing – Functional / Non Functional Rajesh Charles.
Test Title Test Content.
Tarvo Treier IDU0075 Veebiteenused Tarvo Treier
COMP9321 Web Application Engineering Semester 1, 2017
XML: Extensible Markup Language
Knowledge Representation Part IV The Semantics Web Starting with XML
XML University Of Benghazi IT Faculty Computer Networks and Communications Department Introduction to Internet Programming(CN281)
XML BASICS.
XML Related Technologies
Tarvo Treier IDU0075 Veebiteenused Tarvo Treier
XML.
Tutorial 04 (cont’) Using XPath Patterns in an XSLT Style Sheet.
Designing software applications
2017, Fall Pusan National University Ki-Joune Li
XML stands for Extensible Markup Language.
Paul Gustavson SISO XML Namespaces Paul Gustavson
IDU0075 Sissejuhatus veebiteenustesse
XML – Basic Concepts (modified version from Dr. Praveen Madiraju)
IDU0075 Sissejuhatus veebiteenustesse
Introduction to XML.
Web Based Applications
7. מבוא למסמכי XML ו-DTD (מבוסס על שקפים של אלדר פישר)
IDU0075 Sissejuhatus veebiteenustesse
Looking “Behind” Some Languages - Describing with Help of UML (Many Simplifications) Jan Pettersen Nytun UiA.
CMP 051 XML Introduction Session IV Chapter 12 – XML Namespaces
Sampath Jayarathna Cal Poly Pomona
Universal Description, Discovery and Integration (UDDI)
XML: Extensible Markup Language
CMP 051 XML Introduction Session IV Chapter 12 – XML Namespaces
XML: The new standard -Eric Taylor.
Presentation transcript:

Veebiteenused & XML & XPATH Tarvo Treier idu0075@gmail.com

Mis asi on veebiteenus?

Veebiteenus Veebiteenus on üle veebi (http) välja kutsutav (käivitatav) meetod (protseduur või funktsioon). Veebiteenust kutsutakse välja SOAP formaadis sõnumiga ja vastus saadakse samuti SOAP formaadis. Sarnaselt tavaliste funktsioonidega saab ka veebiteenuse väljakutsel määrata sisendparameetreid.

WS demo SoapUI (http://www.soapui.org/) SoapUI WebStart http://www.soapui.org/jnlp/2.0.2/soapui.jnlp Temperatuuri konverteerimise teenus http://www.w3schools.com/webservices/tempconvert.asmx?WSDL

Ülesanne 1 (ws) Võta krediitkaardi numbri valideerimise veebiteenuse kirjeldus (wsdl) aadressilt: https://ws.cdyne.com/creditcardverify/luhnchecker.asmx Käivita antud teenus soupUI-ga http://www.soapui.org/jnlp/2.0.2/soapui.jnlp 1 boonuspunkt

XML (eXtended Markup Language) XML õppetund w3Schools lehel http://www.w3schools.com/xml/default.asp Root element (document element) <element_name attribute_name="attribute_value"> Element Content </element_name> Element content võib olla Child element XML’i näited http://www.w3schools.com/xml/cd_catalog.xml http://www.w3schools.com/XQuery/books.xml

XML namespaces http://www.w3schools.com/xml/xml_namespaces.asp <root xmlns:h="http://www.w3.org/TR/html4/" xmlns:f="http://www.w3schools.com/furniture"> <h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root> http://www.w3schools.com/xml/xml_namespaces.asp

XPATH XPATH õppetund w3Schools lehel http://www.w3schools.com/xpath/default.asp XPATH on päringukeel XML dokumentidest informatsiooni otsimisest nagu SQL on päringukeel andmebaasi tabelitest otsimiseks.

XPATH’i näited Online vahendeid Näite XML Pärime välja kõik title’d http://www.bit-101.com/xpath/ http://www.futurelab.ch/xmlkurs/xpath.en.html http://www.xmlme.com/XpathTool.aspx Näite XML http://www.w3schools.com/xml/cd_catalog.xml Pärime välja kõik title’d /CATALOG/CD/TITLE //TITLE Pärime välja kõik cd’d, mille hind on suurem kui 10 /CATALOG/CD[PRICE>10]

Ülesanne 2 (xpath) Kirjuta XPATH-ga päring, mis tagastaks kõik raamatu (book) pealkirjad (title), mille kategooriaks (category) on märgitud WEB ja hind (price) on suurem kui 40. http://www.w3schools.com/XQuery/books.xml 1 boonuspunkt