XML Trends & Developments

XML Foundations [./]
Fall 2009 — INFO 242 (CCN 42575)

Erik Wilde, UC Berkeley School of Information
2009-12-03

Creative Commons License [http://creativecommons.org/licenses/by/3.0/]

This work is licensed under a CC
Attribution 3.0 Unported License
[http://creativecommons.org/licenses/by/3.0/]

Contents E. Wilde: XML Trends & Developments

Contents

E. Wilde: XML Trends & Developments

(2) Abstract

XML is a very basic technology for representing trees using a standardized markup-based syntax. An increasing number of technologies are building on this foundation, creating an expanding field of XML-based technologies for interoperability in many different fields. Application-specific XML-based data formats are used in many different settings, and the best data format for a given scenario depends on the existing formats in this area and the exact requirements. More interestingly, generic XML technologies which can be applied in many different settings make it easier for developers and system integrators to achieve their goal of making system interoperate.



E. Wilde: XML Trends & Developments

(3) XML 2.0



Web Services

Outline (Web Services)

  1. Web Services [5]
  2. XForms [3]
  3. Conclusions [1]
Web Services E. Wilde: XML Trends & Developments

(5) XML-Based Distributed Programming



Web Services E. Wilde: XML Trends & Developments

(6) Web Service Technologies



Web Services E. Wilde: XML Trends & Developments

(7) SOAP Example Message

<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
 <env:Header>
  <m:reservation xmlns:m="http://travelcompany.example.org/reservation" env:role="http://www.w3.org/2003/05/soap-envelope/role/next" env:mustUnderstand="true">
   <m:reference>uuid:093a2da1-q345-739r-ba5d-pqff98fe8j7d</m:reference>
   <m:dateAndTime>2001-11-29T13:20:00.000-05:00</m:dateAndTime>
  </m:reservation>
  <n:passenger xmlns:n="http://mycompany.example.com/employees" env:role="http://www.w3.org/2003/05/soap-envelope/role/next" env:mustUnderstand="true">
   <n:name>Åke Jógvan Øyvind</n:name>
  </n:passenger>
 </env:Header>
 <env:Body>
  <p:itinerary xmlns:p="http://travelcompany.example.org/reservation/travel">
   <p:departure>
    <p:departing>New York</p:departing>
    <p:arriving>Los Angeles</p:arriving>
    <p:departureDate>2001-12-14</p:departureDate>
    <p:departureTime>late afternoon</p:departureTime>
    <p:seatPreference>aisle</p:seatPreference>
   </p:departure>
   <p:return>
    <p:departing>Los Angeles</p:departing>
    <p:arriving>New York</p:arriving>
    <p:departureDate>2001-12-20</p:departureDate>
    <p:departureTime>mid-morning</p:departureTime>
    <p:seatPreference/>
   </p:return>
  </p:itinerary>
  <q:lodging xmlns:q="http://travelcompany.example.org/reservation/hotels">
   <q:preference>none</q:preference>
  </q:lodging>
 </env:Body>
</env:Envelope>


Web Services E. Wilde: XML Trends & Developments

(8) WSDL Example (Google)

 <portType name="GoogleSearchPort">
  <operation name="doGetCachedPage">
   <input message="typens:doGetCachedPage"/>
   <output message="typens:doGetCachedPageResponse"/>
  </operation>
  <operation name="doSpellingSuggestion">
   <input message="typens:doSpellingSuggestion"/>
   <output message="typens:doSpellingSuggestionResponse"/>
  </operation>
  <operation name="doGoogleSearch">
   <input message="typens:doGoogleSearch"/>
   <output message="typens:doGoogleSearchResponse"/>
  </operation>
 </portType>


Web Services E. Wilde: XML Trends & Developments

(9) UDDI Data Model

uddi-datamodel.gif

XForms

Outline (XForms)

  1. Web Services [5]
  2. XForms [3]
  3. Conclusions [1]
XForms E. Wilde: XML Trends & Developments

(11) HTML Forms Limitations



XForms E. Wilde: XML Trends & Developments

(12) XForms



XForms E. Wilde: XML Trends & Developments

(13) XForms Limitations



Conclusions

Outline (Conclusions)

  1. Web Services [5]
  2. XForms [3]
  3. Conclusions [1]
Conclusions E. Wilde: XML Trends & Developments

(15) XML is Growing



2009-12-03 XML Foundations [./]
Fall 2009 — INFO 242 (CCN 42575)