SlideShare a Scribd company logo
1 of 43
Download to read offline
The Mythical XML
Mr. Thomas Lee
Center for E-Commerce Infrastructure Development
(CECID), The University of Hong Kong

HK Computer Society XML Specialist Group
Speaker’s Session
26 August 2003, HK Polytechnic University
Agenda

     XML Basis
     Web Services
     XML Development in HK
     Demo




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   2
XML Basis
True or False?

     XML = Extensible Markup Language
     XML is an extension of HTML
       – XML is going to replace HTML for Web
         browsing
     Tags are not predefined in XML
       – You must define your own tags
     XML specifies data semantics
26 August 2003    HKCS XMLSG Speaker's Meeting - Mythical XML   4
Background of XML
     eXtensible Markup Language
     XML 1.0 became a W3C Recommendation in
     1998
     F.O.X (Father of XML) - Jon Bosak
       – a SUN architect, who led a group to create XML
     Over 20 XML-related specs at W3C in 2003
     Over 200 XML application standards for
     different industries registered at XML.org
       – Finance, healthcare, e-government, mathematic,
         telecom…
26 August 2003      HKCS XMLSG Speaker's Meeting - Mythical XML   5
What is XML?
     A markup language for documents containing structured
     information
       – i.e. a data format for structurally delimiting text data with tags
     For computer-to-computer communication
                 HTML                                                 XML
     Encode content and                                   Encode structure + content
     presentation                                         (no presentation)
     Tags are already defined for                         Tags are to be defined by
     rendering the content on                             different applications for
     browsers (one application only)                      processing the content
     Semantics has already been                           Semantics is not defined in
     defined in HTML spec                                 XML spec

     XML is not going to replace HTML
26 August 2003               HKCS XMLSG Speaker's Meeting - Mythical XML                6
Weather
Forecast
in
Browser




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   7
Weather Forecast
                                   in HTML




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   8
Weather Forecast in XML
                                               Start Tag
1.      <?xml version="1.0"?>
2.      <WeatherForecast>                                      Element
3.        <City name="Hong Kong">
4.          <Weather date="2003-08-26">Light Rain</Weather>
5.          <Weather date="2003-08-27">Showers</Weather>
6.        </City>
7.        <City name="Beijing">
                                                              Attribute
8.          <Weather date="2003-08-26">Cloudy</Weather>
9.          <Weather date="2003-08-27">Thunder Shower</Weather>
10.       </City>
                                                         Data Value
11.     </WeatherForecast>
                                                                  End Tag
26 August 2003          HKCS XMLSG Speaker's Meeting - Mythical XML         9
XML Document Structure
                                     WeatherForecast



                             City:                              City:
                       name=“Hong Kong”                     name=“Beijing”


    Weather:                 Weather:                    Weather:                 Weather:
date=“2003-08-26”        date=“2003-08-27”           date=“2003-08-26”        date=“2003-08-27”



    Light Rain               Showers                           Cloudy         Thunder Showers



      26 August 2003            HKCS XMLSG Speaker's Meeting - Mythical XML              10
XSLT
     XML Stylesheet Language Transformation
     A scripting language to transform a XML document
     to different document forms
       – another XML form, HTML, text, etc.
     Can present XML data in different rendering
     languages, e.g. HTML, WML
       – separation of content and presentation
     Can translate to a different XML form (conforming
     to a different XML schema)
       – interoperability between different applications, e.g.
         vendor products

26 August 2003         HKCS XMLSG Speaker's Meeting - Mythical XML   11
XSLT Example
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
       xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
       <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
       <xsl:template match="/">
           <html>
                     <head>
                              <title>Weather Forecast</title>
                     </head>
                     <body>
                              <h1>Weather Forecast</h1>
                              <xsl:apply-templates/>
                     </body>
           </html>
       </xsl:template>
26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML        12
XSLT Example (2)
          <xsl:template match="City">
             <h2>
                      <xsl:apply-templates select="@name"/>
             </h2>
             <table border="1">
                      <tbody>
                               <tr>
                                        <th>Date</th>
                                        <th>Weather</th>
                               </tr>
                               <xsl:apply-templates/>
                      </tbody>
             </table>
          </xsl:template>
26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML   13
XSLT Example (3)
         <xsl:template match="Weather">
         <tr>
                 <td>
                        <xsl:apply-templates select="@date"/>
                 </td>
                 <td>
                        <xsl:apply-templates select="text()"/>
                 </td>
         </tr>
      </xsl:template>
</xsl:stylesheet>

26 August 2003      HKCS XMLSG Speaker's Meeting - Mythical XML   14
Schema Language
     A schema language is used to validate the XML data whether
     it is in valid form for a specific application
       – the tag set
       – the structure in which the tags can be placed
       – the format of the values marked-up by tags and attributes values
     Data Type Definition (DTD) and W3C XML Schema
     To define an XML application standard
       – e.g. XBRL (XML Business Reporting Language)
     Not sufficient define semantics
       – semantics is defined in a supplementary vocabulary or
         specification
     Not designed to program application logic
       – e.g. cannot convert temperature between degrees Celsius and
         Fahrenheit
26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML   15
XML Schema Example
<?xml version="1.0" encoding="UTF-8"?>
                          encoding="UTF-
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
 xs:schema xmlns: xs="http://www.w3.org/2001/XMLSchema">
 <xs:element name="WeatherForecast">
   xs:element name="WeatherForecast">
   <xs:complexType>
     xs: complexType>
    <xs:sequence>
      xs:sequence>
      <xs:element name="City" minOccurs="0" maxOccurs="unbounded">
        xs:element name="City" minOccurs="0 maxOccurs="unbounded">
       <xs:complexType>
          xs: complexType>
          <xs:sequence>
           xs:sequence>
           <xs:element name="Weather" minOccurs="0" maxOccurs="unbounded">
             xs:element name="Weather" minOccurs="0 maxOccurs="unbounded">
             <xs:complexType>
               xs: complexType>
               <xs:simpleContent>
                xs: simpleContent>
                <xs:extension base="xs:string">
                  xs:extension base="xs:string">
                  <xs:attribute name="date" type="xs:date" use="required"/>
                    xs:attribute name="date" type="xs:date" use="required"/>
                </xs:extension>
                </xs:extension>
               </xs:simpleContent>
               </xs:simpleContent>
             </xs:complexType>
             </xs:complexType>
           </xs:element>
           </xs:element>
          </xs:sequence>
          </xs:sequence>
          <xs:attribute name="name" type="xs:string" use="required"/>
           xs:attribute name="name" type="xs:string" use="required"/>
       </xs:complexType>
        </xs:complexType>
      </xs:element>
      </xs:element>
   </xs:sequence>
    </xs:sequence>
  </xs:complexType>
  </xs:complexType>
 </xs:element>
 </xs:element>
</xs:schema>
</xs:schema>

26 August 2003                  HKCS XMLSG Speaker's Meeting - Mythical XML    16
True or False (Answers)

     XML = Extensible Markup Language
     XML is an extension of HTML
       – XML is going to replace HTML for Web
         browsing
     Tags are not predefined in XML
       – You must define your own tags
     XML specifies data semantics
26 August 2003    HKCS XMLSG Speaker's Meeting - Mythical XML   17
Web Services
Weather Info Everywhere




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   19
How to Automatically Obtain
Weather Info from HKO?
     Now:
       – poll HKO web pages
       – “try” to decode the text contained within
         (based on the current web page layout)
       – 300+ have registered web sites, mass media,
         telecom operators using this method
       – problem: a slight change to layout or data
         format would cause problems to these users
     Better solution:
       – Use Web Services
26 August 2003      HKCS XMLSG Speaker's Meeting - Mythical XML   20
What is Web Service?
     Remote procedure call (distributed
     computing) on the Internet using XML
     Exposes functionality through a standard
     protocol
     Describes the interfaces in enough detail
     to for building client applications to talk to
     them
     Registers the services so that potential
     users can find them easily

26 August 2003     HKCS XMLSG Speaker's Meeting - Mythical XML   21
SOAP
     Simple Object Access Protocol
     Uses XML to package input and output data on
     making a remote procedure call (RPC) on the
     Internet
     Uses Internet protocols for data transport, e.g.
     HTTP, SMTP
       – Firewall friendly
     Platform independent
       – .Net and Java programs can talk with each other in SOAP
     http://www.w3c.org
26 August 2003          HKCS XMLSG Speaker's Meeting - Mythical XML   22
SOAP Request
POST /weatherwarning/services/WeatherWarning HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1RC2
Host: 127.0.0.1
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: ###

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
 <ns1:getWarning
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:ns1="http://model.weatherwarning.webservice.hko.cecid.hku.hk"/>
      <ns1:type>typhoon</ns1:type>
 </ns1:getWarning>
</soapenv:Body>
</soapenv:Envelope>
26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML        23
SOAP Response
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Date: Tue, 26 Aug 2003 02:25:37 GMT
Server: Apache Coyote/1.0
Connection: close

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
   xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
 <ns1:getWarningResponse
   soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:ns1="http://model.weatherwarning.webservice.hko.cecid.hku.hk">
    <return xsi:type="xsd:string">強烈季候風信號</return>
 </ns1:getWarningResponse>
</soapenv:Body>
</soapenv:Envelope>


26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML      24
WSDL
     Web Services Description Language
     Specifies the data types and structures (in XML
     Schema) of input and output data for a SOAP call
     Specifies other transport parameters, e.g. protocol,
     URL end-point, etc.
     Tells the clients how to make a SOAP call to use a
     specific Web Service
       – similar to Interface definition language (IDL) for RPC
     http://www.w3c.org

26 August 2003          HKCS XMLSG Speaker's Meeting - Mythical XML   25
UDDI
     Universal Description, Discovery and Integration
     A registry to register, publish, find Web Services
      – white pages, or basic identification: name, address, and
         key points of contact
      – yellow pages, or classification by a standard index of
         business and industries
      – green pages, or technical capabilities and services related
         to the conduct of electronic business
     Similar to a portal for system clients
     http://www.uddi.org

26 August 2003         HKCS XMLSG Speaker's Meeting - Mythical XML    26
ebXML

     E-business XML
     Co-developed by UN/CEFACT and OASIS
     XML-based document exchange architecture to
     perform Electronic Data Interchange (EDI) on the
     Internet
     Provides reliable and secure document exchange
     on the Internet
     Supports business process specification for
     system execution
     Widely adopted in Asia and Europe
       – HK is an ebXML forerunner
26 August 2003       HKCS XMLSG Speaker's Meeting - Mythical XML   27
XML Development in HK
eProcurement Case
     MTRC purchases office supplies from Saggio on
     SaggioDirect.com
     Past: plentiful of delivery notes, invoices, monthly
     statements were sent in paper and reconciled
     manually
     Present: XML documents are transferred on the
     Internet using ebXML
       – automatic reconciliation
       – save costs and trees
       – procurement data ready for analysis and planning

26 August 2003         HKCS XMLSG Speaker's Meeting - Mythical XML   29
eProcurement with ebXML
                                                 Delivery goods                                               Saggio Logistics


                 MTRC
                 Users
                                                                                        SaggioDirect System




              Workstations


 MTRC Intranet System                                                                            Web
                                                            Internet                             Server




   Intranet
    Server
                                                                       XML document

                                                                                                Hermes
                           Extract data      XML document
                           from XML
                    Hermes document



26 August 2003                            HKCS XMLSG Speaker's Meeting - Mythical XML                                  30
eLogistics Case
     Shipping companies electronically submit
     dangerous goods manifests to Marine
     Department using ebXML
     Participating pilot shipping companies:
     OOCL and APL
     Pilot production in July 2003
     Saved data reentry required by Web
     Will cover other port formality documents, e.g. pre-
     arrival notification, general declaration…
     Issue: need to design XML Schemas for various
     port formality documents

26 August 2003      HKCS XMLSG Speaker's Meeting - Mythical XML   31
Dangerous Goods Declaration with ebXML
Shipping
Agents                              Paper submission
                                                   1




                                       W
                                        eb
                                           su                                         Marine
                                              bm
                                         2      iss                                   Dept
                                                    io               n
                                             Internet

 Hermes                      XML submission                                  Hermes
  MSH                 3       ebXML Message Service                           MSH
     26 August 2003            HKCS XMLSG Speaker's Meeting - Mythical XML
                                over HTTP on VPN                                          32
XML Schema Design and
Management Guide
     For HKSARG to implement e-government joined-up services
       – enhance data interoperability
     Systematic modelling methodology for designing reusable
     XML Schemas
       – facilitates design of consistent, quality and reusable schemas
       – consolidated international best practices, e.g. CCTS, UBL
     Flexible management framework for standardizing Common
     Schemas, e.g. HKID Number, Person Name, Postal Address
       – minimizes repetitive data alignment efforts by standardizing
         schemas for commonly used data elements
     Under public consultation
       – http://www.itsd.gov.hk/itsd/english/infra/eif.htm
     Pilot project: HK Observatory plans to broadcast weather
     information in XML through Web Services/HTTP
26 August 2003            HKCS XMLSG Speaker's Meeting - Mythical XML     33
Weather Information in XML/WS




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   34
Digital Trade and
Transportation Network
     A neutral, high-tech, and value-added e-logistics
     platform
       –   facilitate information flow & service integration
       –   pearl River Delta (PRD), regionally & globally
       –   based on open-standards, e.g. XML / ebXML
       –   SME is an important focus
       –   releases 1 and 2 completed in 12-15 months
     Return on investment
       – estimated investment: HK$3B over 17 years
       – estimated benefit: HK$11B over 17 years
     http://www.logisticshk.gov.hk

26 August 2003            HKCS XMLSG Speaker's Meeting - Mythical XML   35
Proposed DTTN Architecture




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   36
Open-Source Software
(OSS) Development
     Conditions to advance global e-commerce development
       – high interoperability and reliability, low cost
       – therefore, open standards and open-source software
     HK is the world champion in ebXML OSS
     FreebXML.org to promote the development and adoption of
     open-source technologies for e-commerce
       – international collaboration: HKU (HK), Cyclone (US), ECOM
         (Japan), Kasetart U. (Thailand), KIEC (Korea), SigmaLogica (US),
         Sterling Commerce (US), Sun (US), Sybase (US)
     Our vision: FreebXML – the “Linux” and “Apache” in the e-
     commerce development


26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML   37
26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   38
Global Penetration of
Made-in-HK OSS




           Many serious users in Asia and Europe!
26 August 2003       HKCS XMLSG Speaker's Meeting - Mythical XML   39
About CECID
     Center For E-Commerce Infrastructure Development
     Technology focus: XML and Web Services
     HKU R&D Center (15+ full-time staff)
     Primarily funded by Innovation and Technology Fund
       – establishment of ebXML infrastructure in HK
       – business process and information interoperability platform
     To enhance HK’s competitiveness in e-commerce development
       – technology creation and transfer for the community
       – provision of R&D and training services to businesses and the
         government (R&D outsourcing)
       – participation of international standardization initiatives


26 August 2003           HKCS XMLSG Speaker's Meeting - Mythical XML    40
Our R&D Strategy
  R&D


        R&D              Pilot                                  Production
      Products          Projects                               Deployments




                      HK Lead
                    Projects / SIs
                                                                  End
                   International
                   Collaborations
                                                                 Users
26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML                 41
When Should I Use XML?

     When you need a buzzword in your
     resume :-)




26 August 2003   HKCS XMLSG Speaker's Meeting - Mythical XML   42
Thank You
Q&A
Email: ytlee@cecid.hku.hk
URL: www.cecid.hku.hk

More Related Content

Viewers also liked

Development of Open Source and Standards Technology in Hong Kong
Development of Open Source and Standards Technology in Hong KongDevelopment of Open Source and Standards Technology in Hong Kong
Development of Open Source and Standards Technology in Hong KongThomas Lee
 
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionXML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionThomas Lee
 
Cloud Portability and Interoperability Architecture Model and Best Practices ...
Cloud Portability and Interoperability Architecture Model and Best Practices ...Cloud Portability and Interoperability Architecture Model and Best Practices ...
Cloud Portability and Interoperability Architecture Model and Best Practices ...Thomas Lee
 
ebXML Technology Development in Hong Kong
ebXML Technology Development in Hong KongebXML Technology Development in Hong Kong
ebXML Technology Development in Hong KongThomas Lee
 
PhD Presentation
PhD PresentationPhD Presentation
PhD Presentationmskayed
 
ebXML and Open Source Software for E-Commerce
ebXML and Open Source Software for E-CommerceebXML and Open Source Software for E-Commerce
ebXML and Open Source Software for E-CommerceThomas Lee
 
Toward The Semantic Deep Web
Toward The Semantic Deep WebToward The Semantic Deep Web
Toward The Semantic Deep WebSamiul Hoque
 

Viewers also liked (7)

Development of Open Source and Standards Technology in Hong Kong
Development of Open Source and Standards Technology in Hong KongDevelopment of Open Source and Standards Technology in Hong Kong
Development of Open Source and Standards Technology in Hong Kong
 
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionXML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
 
Cloud Portability and Interoperability Architecture Model and Best Practices ...
Cloud Portability and Interoperability Architecture Model and Best Practices ...Cloud Portability and Interoperability Architecture Model and Best Practices ...
Cloud Portability and Interoperability Architecture Model and Best Practices ...
 
ebXML Technology Development in Hong Kong
ebXML Technology Development in Hong KongebXML Technology Development in Hong Kong
ebXML Technology Development in Hong Kong
 
PhD Presentation
PhD PresentationPhD Presentation
PhD Presentation
 
ebXML and Open Source Software for E-Commerce
ebXML and Open Source Software for E-CommerceebXML and Open Source Software for E-Commerce
ebXML and Open Source Software for E-Commerce
 
Toward The Semantic Deep Web
Toward The Semantic Deep WebToward The Semantic Deep Web
Toward The Semantic Deep Web
 

Similar to The Mythical XML

Similar to The Mythical XML (20)

Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
Unit 10: XML and Beyond (Sematic Web, Web Services, ...)
 
eXtensible Markup Language (XML)
eXtensible Markup Language (XML)eXtensible Markup Language (XML)
eXtensible Markup Language (XML)
 
Xml 2
Xml  2 Xml  2
Xml 2
 
Introduction of xml and xslt
Introduction of xml and xsltIntroduction of xml and xslt
Introduction of xml and xslt
 
Parsing XML Data
Parsing XML DataParsing XML Data
Parsing XML Data
 
XSLT 3.0 - new features
XSLT 3.0 - new featuresXSLT 3.0 - new features
XSLT 3.0 - new features
 
Mazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml ToolsMazda Use of Third Generation Xml Tools
Mazda Use of Third Generation Xml Tools
 
[DSBW Spring 2010] Unit 10: XML and Web And beyond
[DSBW Spring 2010] Unit 10: XML and Web And beyond[DSBW Spring 2010] Unit 10: XML and Web And beyond
[DSBW Spring 2010] Unit 10: XML and Web And beyond
 
Xslt
XsltXslt
Xslt
 
26xslt
26xslt26xslt
26xslt
 
Xslt
XsltXslt
Xslt
 
Dax Declarative Api For Xml
Dax   Declarative Api For XmlDax   Declarative Api For Xml
Dax Declarative Api For Xml
 
MongoDB at the Silicon Valley iPhone and iPad Developers' Meetup
MongoDB at the Silicon Valley iPhone and iPad Developers' MeetupMongoDB at the Silicon Valley iPhone and iPad Developers' Meetup
MongoDB at the Silicon Valley iPhone and iPad Developers' Meetup
 
Web services Overview in depth
Web services Overview in depthWeb services Overview in depth
Web services Overview in depth
 
Xml parsing
Xml parsingXml parsing
Xml parsing
 
Introduction to xml schema
Introduction to xml schemaIntroduction to xml schema
Introduction to xml schema
 
XML - EXtensible Markup Language
XML - EXtensible Markup LanguageXML - EXtensible Markup Language
XML - EXtensible Markup Language
 
XML Schemas
XML SchemasXML Schemas
XML Schemas
 
Unit 2.3
Unit 2.3Unit 2.3
Unit 2.3
 
2310 b 12
2310 b 122310 b 12
2310 b 12
 

More from Thomas Lee

What AI can do for your business
What AI can do for your businessWhat AI can do for your business
What AI can do for your businessThomas Lee
 
多雲策略:別把所有系統跑在同一雲平台上
多雲策略:別把所有系統跑在同一雲平台上多雲策略:別把所有系統跑在同一雲平台上
多雲策略:別把所有系統跑在同一雲平台上Thomas Lee
 
XML Schema Design and Management for e-Government Data Interoperability
XML Schema Design and Management for e-Government Data Interoperability XML Schema Design and Management for e-Government Data Interoperability
XML Schema Design and Management for e-Government Data Interoperability Thomas Lee
 
Automating Relational Database Schema Design for Very Large Semantic Datasets
Automating Relational Database Schema Design for Very Large Semantic DatasetsAutomating Relational Database Schema Design for Very Large Semantic Datasets
Automating Relational Database Schema Design for Very Large Semantic DatasetsThomas Lee
 
Formal Models and Algorithms for XML Data Interoperability
Formal Models and Algorithms for XML Data InteroperabilityFormal Models and Algorithms for XML Data Interoperability
Formal Models and Algorithms for XML Data InteroperabilityThomas Lee
 
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionXML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionThomas Lee
 
Architecture and Practices on Cloud Interoperability and Portability
Architecture and Practices on Cloud Interoperability and PortabilityArchitecture and Practices on Cloud Interoperability and Portability
Architecture and Practices on Cloud Interoperability and PortabilityThomas Lee
 
Paperless Trading Infrastructure Technology Development in Hong Kong
Paperless Trading Infrastructure Technology Development in Hong KongPaperless Trading Infrastructure Technology Development in Hong Kong
Paperless Trading Infrastructure Technology Development in Hong KongThomas Lee
 
E government Interoperability Infrastructure Development
E government Interoperability Infrastructure DevelopmentE government Interoperability Infrastructure Development
E government Interoperability Infrastructure DevelopmentThomas Lee
 
Adopting Web 2.0 in Business World
Adopting Web 2.0 in Business WorldAdopting Web 2.0 in Business World
Adopting Web 2.0 in Business WorldThomas Lee
 
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...Thomas Lee
 
E-Government Interoperability Infrastructure in Hong Kong
E-Government Interoperability Infrastructure in Hong KongE-Government Interoperability Infrastructure in Hong Kong
E-Government Interoperability Infrastructure in Hong KongThomas Lee
 

More from Thomas Lee (12)

What AI can do for your business
What AI can do for your businessWhat AI can do for your business
What AI can do for your business
 
多雲策略:別把所有系統跑在同一雲平台上
多雲策略:別把所有系統跑在同一雲平台上多雲策略:別把所有系統跑在同一雲平台上
多雲策略:別把所有系統跑在同一雲平台上
 
XML Schema Design and Management for e-Government Data Interoperability
XML Schema Design and Management for e-Government Data Interoperability XML Schema Design and Management for e-Government Data Interoperability
XML Schema Design and Management for e-Government Data Interoperability
 
Automating Relational Database Schema Design for Very Large Semantic Datasets
Automating Relational Database Schema Design for Very Large Semantic DatasetsAutomating Relational Database Schema Design for Very Large Semantic Datasets
Automating Relational Database Schema Design for Very Large Semantic Datasets
 
Formal Models and Algorithms for XML Data Interoperability
Formal Models and Algorithms for XML Data InteroperabilityFormal Models and Algorithms for XML Data Interoperability
Formal Models and Algorithms for XML Data Interoperability
 
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema ExtractionXML Schema Computations: Schema Compatibility Testing and Subschema Extraction
XML Schema Computations: Schema Compatibility Testing and Subschema Extraction
 
Architecture and Practices on Cloud Interoperability and Portability
Architecture and Practices on Cloud Interoperability and PortabilityArchitecture and Practices on Cloud Interoperability and Portability
Architecture and Practices on Cloud Interoperability and Portability
 
Paperless Trading Infrastructure Technology Development in Hong Kong
Paperless Trading Infrastructure Technology Development in Hong KongPaperless Trading Infrastructure Technology Development in Hong Kong
Paperless Trading Infrastructure Technology Development in Hong Kong
 
E government Interoperability Infrastructure Development
E government Interoperability Infrastructure DevelopmentE government Interoperability Infrastructure Development
E government Interoperability Infrastructure Development
 
Adopting Web 2.0 in Business World
Adopting Web 2.0 in Business WorldAdopting Web 2.0 in Business World
Adopting Web 2.0 in Business World
 
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
Webformer: a Rapid Application Development Toolkit for Writing Ajax Web Form ...
 
E-Government Interoperability Infrastructure in Hong Kong
E-Government Interoperability Infrastructure in Hong KongE-Government Interoperability Infrastructure in Hong Kong
E-Government Interoperability Infrastructure in Hong Kong
 

Recently uploaded

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Recently uploaded (20)

From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

The Mythical XML

  • 1. The Mythical XML Mr. Thomas Lee Center for E-Commerce Infrastructure Development (CECID), The University of Hong Kong HK Computer Society XML Specialist Group Speaker’s Session 26 August 2003, HK Polytechnic University
  • 2. Agenda XML Basis Web Services XML Development in HK Demo 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 2
  • 4. True or False? XML = Extensible Markup Language XML is an extension of HTML – XML is going to replace HTML for Web browsing Tags are not predefined in XML – You must define your own tags XML specifies data semantics 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 4
  • 5. Background of XML eXtensible Markup Language XML 1.0 became a W3C Recommendation in 1998 F.O.X (Father of XML) - Jon Bosak – a SUN architect, who led a group to create XML Over 20 XML-related specs at W3C in 2003 Over 200 XML application standards for different industries registered at XML.org – Finance, healthcare, e-government, mathematic, telecom… 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 5
  • 6. What is XML? A markup language for documents containing structured information – i.e. a data format for structurally delimiting text data with tags For computer-to-computer communication HTML XML Encode content and Encode structure + content presentation (no presentation) Tags are already defined for Tags are to be defined by rendering the content on different applications for browsers (one application only) processing the content Semantics has already been Semantics is not defined in defined in HTML spec XML spec XML is not going to replace HTML 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 6
  • 7. Weather Forecast in Browser 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 7
  • 8. Weather Forecast in HTML 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 8
  • 9. Weather Forecast in XML Start Tag 1. <?xml version="1.0"?> 2. <WeatherForecast> Element 3. <City name="Hong Kong"> 4. <Weather date="2003-08-26">Light Rain</Weather> 5. <Weather date="2003-08-27">Showers</Weather> 6. </City> 7. <City name="Beijing"> Attribute 8. <Weather date="2003-08-26">Cloudy</Weather> 9. <Weather date="2003-08-27">Thunder Shower</Weather> 10. </City> Data Value 11. </WeatherForecast> End Tag 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 9
  • 10. XML Document Structure WeatherForecast City: City: name=“Hong Kong” name=“Beijing” Weather: Weather: Weather: Weather: date=“2003-08-26” date=“2003-08-27” date=“2003-08-26” date=“2003-08-27” Light Rain Showers Cloudy Thunder Showers 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 10
  • 11. XSLT XML Stylesheet Language Transformation A scripting language to transform a XML document to different document forms – another XML form, HTML, text, etc. Can present XML data in different rendering languages, e.g. HTML, WML – separation of content and presentation Can translate to a different XML form (conforming to a different XML schema) – interoperability between different applications, e.g. vendor products 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 11
  • 12. XSLT Example <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <html> <head> <title>Weather Forecast</title> </head> <body> <h1>Weather Forecast</h1> <xsl:apply-templates/> </body> </html> </xsl:template> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 12
  • 13. XSLT Example (2) <xsl:template match="City"> <h2> <xsl:apply-templates select="@name"/> </h2> <table border="1"> <tbody> <tr> <th>Date</th> <th>Weather</th> </tr> <xsl:apply-templates/> </tbody> </table> </xsl:template> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 13
  • 14. XSLT Example (3) <xsl:template match="Weather"> <tr> <td> <xsl:apply-templates select="@date"/> </td> <td> <xsl:apply-templates select="text()"/> </td> </tr> </xsl:template> </xsl:stylesheet> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 14
  • 15. Schema Language A schema language is used to validate the XML data whether it is in valid form for a specific application – the tag set – the structure in which the tags can be placed – the format of the values marked-up by tags and attributes values Data Type Definition (DTD) and W3C XML Schema To define an XML application standard – e.g. XBRL (XML Business Reporting Language) Not sufficient define semantics – semantics is defined in a supplementary vocabulary or specification Not designed to program application logic – e.g. cannot convert temperature between degrees Celsius and Fahrenheit 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 15
  • 16. XML Schema Example <?xml version="1.0" encoding="UTF-8"?> encoding="UTF- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> xs:schema xmlns: xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="WeatherForecast"> xs:element name="WeatherForecast"> <xs:complexType> xs: complexType> <xs:sequence> xs:sequence> <xs:element name="City" minOccurs="0" maxOccurs="unbounded"> xs:element name="City" minOccurs="0 maxOccurs="unbounded"> <xs:complexType> xs: complexType> <xs:sequence> xs:sequence> <xs:element name="Weather" minOccurs="0" maxOccurs="unbounded"> xs:element name="Weather" minOccurs="0 maxOccurs="unbounded"> <xs:complexType> xs: complexType> <xs:simpleContent> xs: simpleContent> <xs:extension base="xs:string"> xs:extension base="xs:string"> <xs:attribute name="date" type="xs:date" use="required"/> xs:attribute name="date" type="xs:date" use="required"/> </xs:extension> </xs:extension> </xs:simpleContent> </xs:simpleContent> </xs:complexType> </xs:complexType> </xs:element> </xs:element> </xs:sequence> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required"/> xs:attribute name="name" type="xs:string" use="required"/> </xs:complexType> </xs:complexType> </xs:element> </xs:element> </xs:sequence> </xs:sequence> </xs:complexType> </xs:complexType> </xs:element> </xs:element> </xs:schema> </xs:schema> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 16
  • 17. True or False (Answers) XML = Extensible Markup Language XML is an extension of HTML – XML is going to replace HTML for Web browsing Tags are not predefined in XML – You must define your own tags XML specifies data semantics 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 17
  • 19. Weather Info Everywhere 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 19
  • 20. How to Automatically Obtain Weather Info from HKO? Now: – poll HKO web pages – “try” to decode the text contained within (based on the current web page layout) – 300+ have registered web sites, mass media, telecom operators using this method – problem: a slight change to layout or data format would cause problems to these users Better solution: – Use Web Services 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 20
  • 21. What is Web Service? Remote procedure call (distributed computing) on the Internet using XML Exposes functionality through a standard protocol Describes the interfaces in enough detail to for building client applications to talk to them Registers the services so that potential users can find them easily 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 21
  • 22. SOAP Simple Object Access Protocol Uses XML to package input and output data on making a remote procedure call (RPC) on the Internet Uses Internet protocols for data transport, e.g. HTTP, SMTP – Firewall friendly Platform independent – .Net and Java programs can talk with each other in SOAP http://www.w3c.org 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 22
  • 23. SOAP Request POST /weatherwarning/services/WeatherWarning HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.1RC2 Host: 127.0.0.1 Cache-Control: no-cache Pragma: no-cache SOAPAction: "" Content-Length: ### <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getWarning soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://model.weatherwarning.webservice.hko.cecid.hku.hk"/> <ns1:type>typhoon</ns1:type> </ns1:getWarning> </soapenv:Body> </soapenv:Envelope> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 23
  • 24. SOAP Response HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Date: Tue, 26 Aug 2003 02:25:37 GMT Server: Apache Coyote/1.0 Connection: close <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:getWarningResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://model.weatherwarning.webservice.hko.cecid.hku.hk"> <return xsi:type="xsd:string">強烈季候風信號</return> </ns1:getWarningResponse> </soapenv:Body> </soapenv:Envelope> 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 24
  • 25. WSDL Web Services Description Language Specifies the data types and structures (in XML Schema) of input and output data for a SOAP call Specifies other transport parameters, e.g. protocol, URL end-point, etc. Tells the clients how to make a SOAP call to use a specific Web Service – similar to Interface definition language (IDL) for RPC http://www.w3c.org 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 25
  • 26. UDDI Universal Description, Discovery and Integration A registry to register, publish, find Web Services – white pages, or basic identification: name, address, and key points of contact – yellow pages, or classification by a standard index of business and industries – green pages, or technical capabilities and services related to the conduct of electronic business Similar to a portal for system clients http://www.uddi.org 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 26
  • 27. ebXML E-business XML Co-developed by UN/CEFACT and OASIS XML-based document exchange architecture to perform Electronic Data Interchange (EDI) on the Internet Provides reliable and secure document exchange on the Internet Supports business process specification for system execution Widely adopted in Asia and Europe – HK is an ebXML forerunner 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 27
  • 29. eProcurement Case MTRC purchases office supplies from Saggio on SaggioDirect.com Past: plentiful of delivery notes, invoices, monthly statements were sent in paper and reconciled manually Present: XML documents are transferred on the Internet using ebXML – automatic reconciliation – save costs and trees – procurement data ready for analysis and planning 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 29
  • 30. eProcurement with ebXML Delivery goods Saggio Logistics MTRC Users SaggioDirect System Workstations MTRC Intranet System Web Internet Server Intranet Server XML document Hermes Extract data XML document from XML Hermes document 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 30
  • 31. eLogistics Case Shipping companies electronically submit dangerous goods manifests to Marine Department using ebXML Participating pilot shipping companies: OOCL and APL Pilot production in July 2003 Saved data reentry required by Web Will cover other port formality documents, e.g. pre- arrival notification, general declaration… Issue: need to design XML Schemas for various port formality documents 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 31
  • 32. Dangerous Goods Declaration with ebXML Shipping Agents Paper submission 1 W eb su Marine bm 2 iss Dept io n Internet Hermes XML submission Hermes MSH 3 ebXML Message Service MSH 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML over HTTP on VPN 32
  • 33. XML Schema Design and Management Guide For HKSARG to implement e-government joined-up services – enhance data interoperability Systematic modelling methodology for designing reusable XML Schemas – facilitates design of consistent, quality and reusable schemas – consolidated international best practices, e.g. CCTS, UBL Flexible management framework for standardizing Common Schemas, e.g. HKID Number, Person Name, Postal Address – minimizes repetitive data alignment efforts by standardizing schemas for commonly used data elements Under public consultation – http://www.itsd.gov.hk/itsd/english/infra/eif.htm Pilot project: HK Observatory plans to broadcast weather information in XML through Web Services/HTTP 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 33
  • 34. Weather Information in XML/WS 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 34
  • 35. Digital Trade and Transportation Network A neutral, high-tech, and value-added e-logistics platform – facilitate information flow & service integration – pearl River Delta (PRD), regionally & globally – based on open-standards, e.g. XML / ebXML – SME is an important focus – releases 1 and 2 completed in 12-15 months Return on investment – estimated investment: HK$3B over 17 years – estimated benefit: HK$11B over 17 years http://www.logisticshk.gov.hk 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 35
  • 36. Proposed DTTN Architecture 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 36
  • 37. Open-Source Software (OSS) Development Conditions to advance global e-commerce development – high interoperability and reliability, low cost – therefore, open standards and open-source software HK is the world champion in ebXML OSS FreebXML.org to promote the development and adoption of open-source technologies for e-commerce – international collaboration: HKU (HK), Cyclone (US), ECOM (Japan), Kasetart U. (Thailand), KIEC (Korea), SigmaLogica (US), Sterling Commerce (US), Sun (US), Sybase (US) Our vision: FreebXML – the “Linux” and “Apache” in the e- commerce development 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 37
  • 38. 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 38
  • 39. Global Penetration of Made-in-HK OSS Many serious users in Asia and Europe! 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 39
  • 40. About CECID Center For E-Commerce Infrastructure Development Technology focus: XML and Web Services HKU R&D Center (15+ full-time staff) Primarily funded by Innovation and Technology Fund – establishment of ebXML infrastructure in HK – business process and information interoperability platform To enhance HK’s competitiveness in e-commerce development – technology creation and transfer for the community – provision of R&D and training services to businesses and the government (R&D outsourcing) – participation of international standardization initiatives 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 40
  • 41. Our R&D Strategy R&D R&D Pilot Production Products Projects Deployments HK Lead Projects / SIs End International Collaborations Users 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 41
  • 42. When Should I Use XML? When you need a buzzword in your resume :-) 26 August 2003 HKCS XMLSG Speaker's Meeting - Mythical XML 42