Presentation is loading. Please wait.

Presentation is loading. Please wait.

Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.

Similar presentations


Presentation on theme: "Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over."— Presentation transcript:

1 Web Services Nasrullah

2 Motivation about web service There are number of programms over the internet that need to communicate with other programms over the internet.There are nubmer of technologies that enable this type of communication such as PRC,DCOM,MSMQ,but the greatest disadvantage of these technologies is that inorder to communicate,they require the same technology in the other system too.we need the technology that enables the client to talk to any server independent of the OS and the language on which they were developed

3 History Web services evolved from previous technologies that served the same purpose such as RPC, ORPC (DCOM, CORBA and JAVA RMI). Web Services were intended to solve three main problems: 1.Interoperability 2.Firewall traversal 3.Complexity

4 web service Web services are application components Web services communicate using open protocols Web services are self-contained and self- describing Web services can be discovered using UDDI Web services can be used by other applications XML is the basis for Web service

5 Web Service A web service is a method of communication between two electronic devices over the World Wide Web. A web service is a software function provided at a network address over the web or the cloud

6 The W3C defines a "Web service" as a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web- related standards

7 Web Service definition revisited an application component that: Communicates via open protocols (HTTP, SMTP, etc.) Processes XML messages framed using SOAP Describes its messages using XML Schema Provides an endpoint description using WSDL Can be discovered using UDDI

8 Web Service Components XML – eXtensible Markup Language – A uniform data representation and exchange mechanism. SOAP – Simple Object Access Protocol – A standard way for communication. UDDI – Universal Description, Discovery and Integration specification – A mechanism to register and locate WS based application. WSDL – Web Services Description Language – A standard meta language to described the services offered.

9 Web Service Model The Web Services architecture is based upon the interactions between three roles: – Service provider – Service registry – Service requestor The interactions involve the: – Publish operations – Find operation – Bind operations

10 The Web Service Model (cont) The Web Services model follows the publish, find, and bind paradigm. 1. publish 2. find 3. bind/invoke Web Service Registry Web Service Provider Web Service Client

11 XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe data. XML tags are not predefined. You must define your own tags. The prefect choice for enabling cross-platform data communication in Web Services.

12 XML vs HTML An HTML example: John Doe John Doe 2 Backroads Lane 2 Backroads Lane New York New York

13 XML vs HTML This will be displayed as: HTML specifies how the document is to be displayed, and not what information is contained in the document. Hard for machine to extract the embedded information. Relatively easy for human. John Doe 2 Backroads Lane New York

14 XML vs HTML Now look at the following: In this case: – The information contained is being marked, but not for displaying. – Readable by both human and machines. John Doe John Doe 2 Backroads Lane 2 Backroads Lane New York New York

15 SOAP SOAP originally stood for "Simple Object Access Protocol". Web Services expose useful functionality to Web users through a standard Web protocol called SOAP. Soap is an XML vocabulary standard to enable programs on separate computers to interact across any network. SOAP is a simple markup language for describing messages between applications. Soap uses mainly HTTP as a transport protocol. That is, HTTP message contains a SOAP message as its payload section.

16 SOAP Characteristics SOAP has three major characteristics: – Extensibility – security and WS-routing are among the extensions under development. – Neutrality - SOAP can be used over any transport protocol such as HTTP, SMTP or even TCP. – Independent - SOAP allows for any programming model.

17 SOAP Building Blocks A SOAP message is an ordinary XML document containing the following elements: – A required Envelope element that identifies the XML document as a SOAP message. – An optional Header element that contains header information. – A required Body element that contains call and response information. – An optional Fault element that provides information about errors that occurred while processing the message.

18 SOAP Request POST /InStock HTTP/1.1 Host: Content-Type: application/soap+xml; charset=utf-8 Content-Length: 150 IBM IBM

19 SOAP Response HTTP/ OK Content-Type: application/soap; charset=utf-8 Content-Length:

20 WSDL WSDL stands for Web Services Description Language. When we create the web service we must provide the information the programmers may need to consume it.For exmple we must provide the information about the methods available,types of parameters and return value of method s,ways of calling these methods,how the web service should be used.location of the web service in the from of URL.this information is made availabe in the form of file.wsdl. The WSDL description contains the XML schema that describes the web service You can view the WSDL LIKE THIS

21 The WSDL Document Structure A WSDL document is just a simple XML document. It defines a web service using these major elements: – port type - The operations performed by the web service. – message - The messages used by the web service. – types - The data types used by the web service. – binding - The communication protocols used by the web service.

22 WSDL Document

23 UDDI((Universal Description, Discovery and Integration) Like any other resource on the web it would be virtually impossible to find a particular web servi.ce without some means to search it.Web services directories provide central locations where web servce providers can publish information about web service,such directories can be accessed driecly or progammaticallay. UDDI is such a locaiton that defines a stadard way to publish and discover information about web services UDDI is like the phone directory that is used to locate the web service.

24


Download ppt "Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over."

Similar presentations


Ads by Google