



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to web services, focusing on XML, WSDL, and Java APIs for their implementation. Web services are applications available via the Web, primarily for application-to-application communication. XML is used to define data structures and ensure semantic interoperability. WSDL is an XML document used to describe web services, including their operations and messages. Java APIs such as JAXP, JAX-RPC, JAXM, and JAXR facilitate the development and interaction with web services.
Typology: Lecture notes
1 / 27
This page cannot be seen from the preview
Don't miss anything!




















Based partially on Sun Java Tutorial at
Based partially on Sun Java Tutorial at
http://java.sun.com/webservices/
http://java.sun.com/webservices/
Also, XML, Java and the Future of The
Also, XML, Java and the Future of The
Web, Jon Bosak.
Web, Jon Bosak.
And WSDL Tutorial at:
And WSDL Tutorial at:
http://www.w3schools.com/wsdl/
http://www.w3schools.com/wsdl/
Netprog 2002 - HTTP
Netprog 2002 - HTTP
Services available via the Web.
Services available via the Web.
Meant mainly for application to application
Meant mainly for application to application
communication (as opposed to users directly)
communication (as opposed to users directly)
Enables Business-to-Business transactions.
Enables Business-to-Business transactions.
Toward a “Semantic Web”.
Toward a “Semantic Web”.
E.g., a web service is contacted on a URL
E.g., a web service is contacted on a URL
using the SOAP protocol over HTTP.
using the SOAP protocol over HTTP.
Netprog 2002 - HTTP
A stock quote service.
A stock quote service.
An application requires the current value of a
An application requires the current value of a
stock, the web service returns it.
stock, the web service returns it.
A route finder for delivery of goods.
A route finder for delivery of goods.
Given an initial and a final location, find the most
Given an initial and a final location, find the most
cost-effective delivery route.
cost-effective delivery route.
A weather service, a map service, a web
A weather service, a map service, a web
search service…
search service…
any composition of Web services.
any composition of Web services.
Netprog 2002 - HTTP
Extensible Markup Language.
Extensible Markup Language.
Document Type Definitions (DTD) precisely
Document Type Definitions (DTD) precisely
define valid tags and their grammar.
define valid tags and their grammar.
Not backward compatible with HTML.
Not backward compatible with HTML.
System-independent and vendor-
System-independent and vendor-
independent.
independent.
Product of the World Wide Web Consortium
Product of the World Wide Web Consortium
(W3C), trademarked by MIT.
(W3C), trademarked by MIT.
Netprog 2002 - HTTP
Netprog 2002 - HTTP
Netprog 2002 - HTTP
Document type definitions
Document type definitions
Meaning of tags
Meaning of tags
Operations” on data (interfaces).
Operations” on data (interfaces).
Meaning of those operations.
Meaning of those operations.
Netprog 2002 - HTTP
Element
Element Defines
Defines
The operations performed by
the web service
the web service
The messages used by the
web service
web service
The data types used by the
web service
web service
The communication protocols
used by the web service
used by the web service
Netprog 2002 - HTTP
definition of types...
definition of a message.
definition of a port...
definition of a binding
definition of a binding
Netprog 2002 - HTTP
The
The
element is the most
element is the most
important WSDL element.
important WSDL element.
It defines a web service, the operations
It defines a web service, the operations
that can be performed, and the
that can be performed, and the
messages that are involved.
messages that are involved.
The
The
element can be
compared to a function library (or a
compared to a function library (or a
module, or a class) in a traditional
module, or a class) in a traditional
programming language.
programming language.
Netprog 2002 - HTTP
Netprog 2002 - HTTP
Netprog 2002 - HTTP
Type
Type Definition
Definition
One-way
One-way The operation can receive a message but
The operation can receive a message but
will not return a response
will not return a response
Request-response
Request-response The operation can receive a request and will
The operation can receive a request and will
return a response
return a response
Solicit-response
Solicit-response The operation can send a request and will
The operation can send a request and will
wait for a response
wait for a response
Notification
Notification The operation can send a message but will
The operation can send a message but will
not wait for a response
not wait for a response