1 / 24

Web Services

Web Services. Nasrullah. Motivation about web service .

matt
Download Presentation

Web Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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: • Interoperability • Firewall traversal • 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. publish2. find 3. bind/invoke Web Service Registry Web Service Provider Web Service Client

  11. XML • XML stands for EXtensibleMarkup 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:

  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.

  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.

  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

  19. SOAP Response

  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.Forexmple 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 • http://localhost:56241/Service.asmx?wsdl

  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.

More Related