chap-4 (ppt) - Comcast.net

fishnibblersspongySoftware and s/w Development

Dec 14, 2013 (3 years and 7 months ago)

117 views

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
1

Agenda


Introduction
-

"Why XML?"



Section 1: XML Basics



Section 2: Parsers and SAX and DOM (oh, my!)



Section 3: XPath and XSLT



Section 4: SOAP and WebServices



Questions, Answers, and Evasions

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
2

Web Services



"Web Services" covers many types of data
-
exchange.


"A web service is a self
-
describing, self
-
contained,
modular unit of application logic that provides some
business (
sic
) functionality to other applications
through an Internet connection."



http://www.uddi.org/faqs.htm



The World Wide Web allowed
users

to interact with
computers without regard to distance, platform, or software.




Web Services allow
computers

to interact with other
computers without regard to location, platform, or software.

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
3

SOAP

SOAP = "Simple Object Access Protocol"



An XML
-
based method for exchanging data.


Not limited to
linear

data; sends full
objects
, complete
with hierarchical/nested elements
.




All SOAP messages are validated against a schema
written in the W3C XML Schema Language.

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
4

SOAP Software


You can download complete and functional SOAP
packages from various sites, written in various
languages. (For details see the Resources page.)


Microsoft .NET uses SOAP extensively.


Sun's J2EE platform's JAX
-
RPC uses SOAP.


In theory
, any SOAP client can talk to any SOAP
server. (Not true, but we're slowly getting there.)

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
5

WSDL and UDDI

WSDL = "Web Services Description Language"

UDDI = "Universal Description, Discovery, and Integration"



WSDL file: an XML document which
defines the
interface

that should be used between client and
server for a given Web Service.



UDDI is used to advertise available Web Services.
(Optional. Not in widespread use.)

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
6

Sample WSDL File

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
7

Sample SOAP Message

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
8

Some Tools To Get You Started


Google and Google Groups (
http://www.google.com
).


Apache (
http://www.apache.org
) has excellent open
-
source
XML and XSLT tools such as Xerces and Xalan, which
have both C++ and Java versions.


James Clark (
http://www.jclark.com
) has lots of good
stuff, including a free XSLT translator (XT).


Scott Seely (
http://www.scottseely.com
) created one of the
first free SOAP servers, still available on his web
-
site.


Warning
: If you use Microsoft Visual Studio version 6.0,
download these (
http://www.microsoft.com/downloads
)
quickly, before they are retired:



-

MSXML 4.0 (SP 2)




-

MS Soap Toolkit 3.0

XML And Its Uses

UPE Dearborn, 2/9/2004

Parsers

Copyright 2004 by Blair Schneider McKay

Slide
9


Questions,




Answers,





and Evasions…

XML And Its Uses

UPE Dearborn, 2/9/2004

Copyright 2004 by Blair Schneider McKay


Introduction

Copyright 2004 by Blair Schneider McKay

If you have more questions after the presentation,
please feel free to send me an email.


Blair Schneider McKay



Email: BlairSchneiderMcKay@comcast.net