2. What are we going to discuss today?
⢠Software Development Evolution
⢠Web Services
⢠Web Service Architecture
⢠Invoke a Web Service
⢠XML
⢠SOAP
⢠WSDL
⢠UDDI
⢠Demo
3. Software Development Evolution
1980s 1990s 2000s
Object Component Service
Oriented Based Oriented
⢠OOP Concepts ⢠Components ⢠Web Services
⢠Interfaces ⢠HTTP Requests
⢠Substitutable ⢠XML Messages
⢠Serialization
4. Web Services
⢠What is a Web Service?
A software component designed to
support interoperable machine-to-
machine interaction over a network.
5. Web Services contd.
⢠Runs on a Web server.
⢠HTTP over RPC.
⢠SOAP (Simple Object Access Protocol) or REST
(REpresentational State Transfer).
⢠Exposes functions.
⢠Listens for HTTP requests and executes Web
methods.
⢠Software as a service without concern for the type
of consumer.
6. Web Service Architecture
Discovery Discover & Locate
Description WSDL
Invocation SOAP
Transport HTTP
7. Invoke a Web Service
WSDL
SOAP Request
Client Service
SOAP Response
⢠Provides an endpoint description using WSDL.
Processes XML messages framed using SOAP.
⢠Describes its messages using XML Schema.
⢠Communicates via open protocols (HTTP etc).
⢠Can be discovered using UDDI.
8. XML
⢠eXtensible Markup Language.
⢠XML : much like HTML.
⢠For describing data.
⢠XML tags are not predefined. We define our own
tags.
⢠Prefect for Web Services.
9. XML contd. : XML vs. HTML
<html>
<body>
<h1>Hello HTML</h1>
<p>Paragraph</p>
</body>
</html>
10. XML contd. : XML vs. HTML
<?xml version=1.0?>
<myxml>
<mytitle>Hello XML</mytitle>
<mypara>Paragraph</mypara>
</myxml>
</xml>
11. XML contd. : XML vs. HTML
⢠HTML
⢠What Information?
⢠Hard for machine. Relatively easy for human.
⢠XML
⢠Not displaying.
⢠Readable to both human and machines.
12. SOAP (Simple Object Access Protocol)
⢠SOAP is a format for sending messages.
⢠SOAP is platform independent.
⢠SOAP is language independent.
⢠Different applications running on different
operating systems.
⢠SOAP is based on XML.
13. SOAP (Simple Object Access Protocol)
⢠SOAP is a format for sending messages.
⢠SOAP is platform independent.
⢠SOAP is language independent.
⢠Different applications running on different on
operating systems.
⢠SOAP is based on XML.
14. WSDL (Web Service Definition
Language)
⢠Describes the functions & location of the service.
⢠Again XML Based.
15. UDDI (Universal Description Discovery
and Integration)
⢠Directory of web service interfaces.
⢠Uses WSDL to describe interfaces.
⢠Communicates via SOAP.
Speaker Notes:Object OrientedInheritancePolymorphismAbstractionComponent BasedComponents : Objects not classesCommunicate though InterfacesEncapsulationSubstitutable : Classes that implements the interfaces can be replaced. (Component B can immediately replace component A, if component B provides at least what component A provided and uses no more than what component A used)Serialization : Store objects or Pass objects from one place to other