Introduction to Web Services.ppt
《Introduction to Web Services.ppt》由会员分享,可在线阅读,更多相关《Introduction to Web Services.ppt(59页珍藏版)》请在麦多课文档分享上搜索。
1、Introduction to Web Services,Yossi Amir Itzik Kasovitch,Agenda,Motivation History Web service model Web service components A walkthrough examples,Motivation,The ability to program the Web. Example: Consider an Excel spreadsheet that summarizes your whole financial picture : stocks, bank accounts, lo
2、ans, etc. If some of this information is available through XML Web services, Excel can update it and present the update information to the user.,Web Service definition,A simple definition:“a Web Service is an application component accessible over open protocols”.,History,Web services evolved from pr
3、evious 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,Interoperability,Earlier distributed systems suffered from interoperability issues because each vendo
4、r implemented its own on-wire format for distributed object messaging. Development of DCOM apps strictly bound to Windows Operating system. Development of RMI bound to Java programming language.,Firewall traversal,Collaboration across corporations was an issue because distributed systems such as COR
5、BA and DCOM used non-standard ports. Web Services use HTTP as a transport protocol and most of the firewalls allow access though port 80 (HTTP), leading to easier and dynamic collaboration.,Complexity,Web Services is a developer-friendly service system. Most of the above-mentioned technologies such
6、as RMI, COM, and CORBA involve a whole learning curve. New technologies and languages have to be learnt to implement these services.,Web Service definition revisited,A more precise definition: an application component that: Communicates via open protocols (HTTP, SMTP, etc.) Processes XML messages fr
7、amed using SOAP Describes its messages using XML Schema Provides an endpoint description using WSDL Can be discovered using UDDI,Web Services Components,XML eXtensible Markup Language A uniform data representation and exchange mechanism. SOAP Simple Object Access Protocol A standard way for communic
8、ation. 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.,Example A simple Web Service,A buyer (which might be a simple client)
9、 is ordering goods from a seller service. The buyer finds the seller service by searching the UDDI directory. The seller service is a Web Service whose interface is defined using Web Services Description Language (WSDL). The buyer is invoking the order method on the seller service using Simple Objec
10、t Access Protocol (SOAP) and the WSDL definition for the seller service. The buyer knows what to expect in the SOAP reply message because this is defined in the WSDL definition for the seller service.,The Web Service Model,The Web Services architecture is based upon the interactions between three ro
11、les: Service provider Service registry Service requestor The interactions involve the: Publish operations Find operation Bind operations.,The Web Service Model (cont),The Web Services model follows the publish, find, and bind paradigm. 1. publish 2. find3. bind/invoke,Web Service Registry,Web Servic
12、e Provider,Web Service Client,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.,XML
13、vs HTML,An HTML example:,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.,XML vs HTML,Now look at the following:In this cas
14、e: The information contained is being marked, but not for displaying. Readable by both human and machines.,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 sta
15、ndard 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.,SOAP Characteristics,SOAP
16、 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 .,SOAP Building Blocks,A SOAP message is a
17、n 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
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
2000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- INTRODUCTIONTOWEBSERVICESPPT
