xml与webservices内容摘要:

ansforming an XML document into any other format. 2020年 11月 4日 9时 56分 山东大学计算机学院 34 XPath Language for addressing parts of an XML document. Used by other technologies, not as a standalone technology. Used by XSLT and XPointer. 2020年 11月 4日 9时 56分 山东大学计算机学院 35 XML Parsing Provides an API for a program to access pieces of an XML document Two API standards: DOM and SAX. Both perform processing of XML documents, but in distinct ways. Parsers help with: Validation. Well formedness checking. Building a document tree (DOM). Notifying the application of errors. Most parsers can handle files and streams. 2020年 11月 4日 9时 56分 山东大学计算机学院 36 SAX Parser SAX Simple API for XML Processing. Reads an XML document as a stream. Eventbased notification. Good for searching and very large documents. Defacto standard by Dave Megginson. Not from W3, but very widely accepted and used. 2020年 11月 4日 9时 56分 山东大学计算机学院 37 Processing Steps 1. Application creates SAX parser. 2. Parser reads in DTD or Schema, and begins reading in XML. 3. Parser fires an event on every item it reads (start tag, end tag, text, errors, and so forth). 4. The Application is free to handle or ignore each event it receives from the parser. 2020年 11月 4日 9时 56分 山东大学计算机学院 38 DOM Parser DOM Document Object Model. Parses and loads entire document into memory. Represents a tree based structure of resulting object. Good for manipulation of the content and smaller documents. W3C remendation 2020年 11月 4日 9时 56分 山东大学计算机学院 39 Processing Steps 1. Application creates DOM parser. 2. Parser reads in XML and DTD or Schema. 3. Parser returns any errors to the application. 4. Parser generates a DOM tree. 5. Application is free to read, write, or update the DOM tree. 6. Application writes final XML to output. 2020年 11月 4日 9时 56分 山东大学计算机学院 40 二、 Web Services 2020年 11月 4日 9时 56分 山东大学计算机学院 41 Web 服务:从服务谈起 产品有限 ,服务无限 “应用基地化 (application hosting)‖—— 软件正变为服务 所谓“应用基地化”是指软件厂家在自己的服务器上运行应用程序,经由 Inter将其结果提供给用户企业利用。 这使得用户将通过租软件而不是买软件来满足自己的需要。 以 Oracle和 Microsoft为首的主要软件厂家,开始真正加入应用基地化等服务事业,各厂家正加强同应用服务提供商 (Application Service Provider,ASP)的合作关系。 2020年 11月 4日 9时 56分 山东大学计算机学院 42 ASP在兴起 开始对服务下大力气的软件公司,正对经由Inter简单地分发自己软件产品的管理模式进行改造,使得软件公司本身和第三方,可以通过远程操作支持应用。 例如,德国 SAP公司已开始提供名为“ Business Scenario‖的服务,这是一种提供在 Web环境下利用的一群软件组件所构成的应用服务。 IBM的服务事业部门从事 eBusiness应用基地化的负责人认为,企业今后将像使用电话一样,按使用量支付软件使用费,这一时刻的到来便意味着软件业革命的开始。 2020年 11月 4日 9时 56分 山东大学计算机学院 43 Web service的出现背景 Web应用的快速发展 Web应用与传统应用之间存在连接鸿沟 Web应用 : Page based 传统应用 : Module based Web应用 数据重复迁移 传统应用 企业应用的集成整合要求迫切 EAI (Enterprise Application Integration) B2Bi (B2B Integration) 语言差异、平台差异、协议差异、数据差异带来高代价的系统集成 2020年 11月 4日 9时 56分 山东大学计算机学院 44 Web 服务:电子商务的新天地 Web 是为了程序到用户的交互 而 Web 服务是为程序到程序的交互做准备 建立在现有的和新兴的标准之上, HTTP、XML、 SOAP、 WSDL、 UDDI Web 服务使应用程序的集成比以前更快、更容易而且更便宜 集成在协议栈中较高层发生,它基于更注重服务语义而不那么注重网络协议语义的消息,从而实现了业务功能的松散集成 2020年 11月 4日 9时 56分 山东大学计算机学院 45 Web Service的概念 提供一个与操作系统无关、与程序设计。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。