




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Web Service概念和术语一. Web Service基本的概念XML (eXtensible Markup Language) XML is used to organize documents and business data. XML files can be stored or transmitted between two applications on a network. Basically, they are just plain text documents that contain special tags that label different parts of a document or fields of data. XML是一种由规范定义的元语言。XML标记语言定义了一套用来组织和描述文本的标记(tag)。标记通常成对出现,其中一个标记是开始标记,另一个标记是结束标记。位于这两个标记之间的所有内容均成为元素。SOAP (Simple Object Access Protocol) SOAP defines a standard packaging format for transmitting XML data between applications on a network. A SOAP message is just an XML document. SOAP is specially designed, however, to contain and transmit other XML documents as well as information related to routing, processing, security, transactions, and other qualities of service. SOAP消息是一种XML文档,它有其自己的XML模式、命名空间和处理规则。目前的版本是SOAP 1.2。WSDL (Web Services Description Language) WSDL is a standard for describing the structure of the XML data exchanged between two systems using SOAP. WSDL是一个用于精确描述Web服务的文档格式,它用来指定客户与具体的Web服务通信时必须使用的确切的消息格式、Internet协议以及地址。目前的版本是WSDL 2.0UDDI (Universal Description, Discovery, and Integration) UDDI defines a standard set of Web service operations (methods) that are used to store and look up information about other Web service applications. In other words, UDDI defines a standard SOAP-based interface for a Web services registry. You can use a UDDI registry to find a particular type of Web service, or to find out about the Web services hosted by a specific organization. A UDDI registry is often referred to as a Yellow Pages for Web services. The UDDI specification is now maintained by the Organization for the Advancement of Structured Information Standards (OASIS) UDDI定义了一套标准的Web服务操作方法,用于存储、查找有关其他Web服务应用程序方面的信息。WS-I BP (Web Services Interoperability Basic Profile)Web Services Interoperability Organization is an organization of Web services vendors that are committed to defining a standard for Web services interoperability. The first deliverable of the WS-I was the Basic Profile 1.0, 第二个是WS-I Basic Profile 2.0 二 Web Service Advanced概念 WS-Addressing WS-Addressing specification is to provide the means to identify a Web service endpoint and a way to use such identifiers in SOAP messages for the delivery and exchange of messagesbetween Web service providers and Web service requesters. WS-Addressing通过对SOAP消息的扩展,为Web Services的寻址问题提供更强大的支持。WS-Addressing规范主要描述了两个概念:EndpointReference 以及Message Addressing Properties。在Web Services中代表一类逻辑功能的服务实现可能存在不同的Endpoint,每一个Endpoint可能代表了一种不同的绑定方式,甚至对外表现出不同的接口,比如Endpoint A可能使用TCP协议通讯,而Endpoint B则可能使用Http协议。通过EndpointReferrence我们就可以引用到相应的Endpoint上,从而访问该服务。 Message Addressing Properties作为SOAP Head的扩展将包含在每一个SOAP 消息中,用于该消息的寻址。 WS-Policy WS-Policy defines a general-purpose framework for representing and combining statements about the quality of service properties. WS-Policy is an extensible framework that can accommodate domain-specific dialects to represent these assertions and allow the attachment of policies to arbitrary types of subjects though the generic attachment mechanisms that WS-Policy Attachments define. Web服务策略框架规范(Web Services Policy Framework,WS-Policy)提供了一种灵活、可扩展的语法,用于表示基于XML Web services的系统中实体的能力、要求和一般特性。WS-Policy定义了一个框架和一个模型,将这些特性表示为策略。策略表示法既支持简单的声明式断言,也支持比较复杂的条件式断言。策略断言是要表示行为的个体要求、能力或其他特性。例如,可以创建一个策略断言,定义这样一个要求:必须使用受信任的X.509证书签名SOAP消息主体。WS-Policy 提供了一个通用模型和语法,用于描述 Web 服务的策略及就此进行沟通。WS-Policy 断言说明特定 Web 服务的功能和约束。WS-PolicyAttachments 定义了用于将 WS-Policy 表达式与 Web 服务(即 WSDL)关联的若干方法。 WS-Reliable Messaging WS-Reliable Messaging promises to bring the benefits of reliable messaging to SOA and Web services, enabling enterprises to extend Web services to support reliable business-to-business (B2B) exchanges. WS-Coordination (WS-AT and WS-BA) WS Atomic Transactions Application operations on Web services occur completely or not at all, and results are not available until the transaction is complete. WS Business Activity Application operations on Web services exhibit a loose unit of work, in which results are shared prior to completion of the overall activity. Each participant undoes the operations it has performed within the conversation. WS-Coordination specification provides the generic foundation for coordinating outcome agreements between interoperating Web services. WS-Atomic Transaction and WS-Business Activity specifications contain definitions of atomic and business transaction protocols, respectively, that you can use with WS-Coordination. WS-Coordination is defined as an extensible framework that can support additional protocols for other coordination patterns as required. WS-AT and WS-BA用来定义规范WS的事务。 WS-Security WS-Security SOAP Message Security is optimized for exchanging a small number of messages. A requester might engage in a prolonged conversation with a Web service. WS-SecureConversation builds on WS-Trust and message security to provide support for multimessage, long-lived conversations. WS-SecureConversation provides a better level of security and improved efficiency. This chapter also provides an overview of WS-Secure Conversation. WS-Trust WS-Security supports security tokens. Collaboration between enterprises often requires sharing additional information, such as customer identity information and preferences. WS-Federationextends WS-Trust to provide these functions, and is discussed later in this chapter. WS-Authorization/ WS-Privacy WS-Authorization and WS-Privacy are in progress.WS-BPEL Web services Business Process Execution Language is an extensible workflow-based language that aggregates services by choreographing service interactions. The aggregation is recursive, such that the process exposes WSDL interfaces to those that interact with it, and the corresponding services may be used in other choreographies. BPEL用来描述和规范WS的业务流程. 三. J2EE Web Service APIs基本概念 用来在J2EE平台实现Web Service。包括JAX-RPC, SAAJ, JAXR, and JAXPJAX-RPC (Java API for XML-based RPC) You can think of JAX-RPC as Java RMI over SOAP. JAX-RPC is divided into two parts: a set of client-side APIs, and a set of server-side components, called endpoints. The client-side APIs allow you to communicate with Web service endpoints hosted on some other platform. There are three client-side APIs: generated stub, dynamic proxy, and DII(Dynamic Invocation Interface). The generated stub is the one you will use the most, and its semantics closely resemble those of Java RMI. The dynamic proxy API also follows many of the Java RMI semantics, but is used less often. The DII is a very low-level API used primarily by vendor tools, but can also be employed by Web services developers if necessary. The server-side components include the JAX-RPC service endpoint (JSE) and the EJB endpoint. The JSE component is actually a type of servlet that has been adapted for use as a Web services component. The EJB endpoint is simply a type of stateless session EJB that has been adapted for use as a Web service endpoint. The EJB endpoint provides all the transactional and security features of a normal stateless session bean, but its specifically designed to process SOAP requests. SAAJ (SOAP with Attachments API for Java) SAAJ is a low-level SOAP API that complies with SOAP 1.1 and the SOAP Messages with Attachments specification. SAAJ allows you to build SOAP messages from scratch as well as read and manipulate SOAP messages. You can use it alone to create, transmit, and process SOAP messages, but youre more likely to use it in conjunction with JAX-RPC. In JAX-RPC, SAAJ is used primarily to process SOAP header blocks (the SOAP message meta-data). JAXR (Java API for XML Registries) JAXR provides an API for accessing UDDI registries. It simplifies the process of publishing and searching for Web service endpoints. JAXP (Java API for XML Processing) JAXP provides a framework for using DOM 2 and SAX2, standard Java APIs that read, write, and modify XML documents. DOM 2 (Document Object Model, Level 2) is a Java API that models XML documents as trees of objects. It contains objects that represent elements, attributes, values, and so on. DOM 2 is used a lot in situations where speed and memory are not factors, but complex manipulation of XML documents is required. DOM 2 is also the basis of SAAJ 1.1. DOM 2在处理XML文档的时候会将所有infoset在内存中创建相应的对象,所以比较消耗内存。 SAX2 (Simple API for XML, version 2) is very different in functionality from DOM 2. When a SAX parser reads an XML document, it fires events as it encounters start and end tags, attributes, values, etc. You can register listeners for these events, and they will be notified as the SAX2 parser detects changes in the XML document it is reading. SAX2是基于push方式,StAX是pull的方式。Streaming API for XML (StAX) StAX is a streaming Java-based, event-driven, pull-parsing API for reading and writing XML documents. StAX provides is the latest API in the JAXP family, and provides an alternative to SAX, DOM, TrAX, and DO
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 专利检索人员管理办法
- 财务报账审批管理办法
- 春夏季服装加工合同2篇
- 2025年酒店外墙清洗合同6篇
- 2025年登革热防控知识考试试题及答案
- 2025年市场营销师中级技能测试题库与答案指南
- 葛洲坝集采管理办法
- 2025输血制度相关试题及答案
- 2025年医疗器械冷链管理培训试题带答案
- 经销商信贷管理办法
- 百师联盟2025-2026学年高三上学期开学摸底联考化学试卷
- 2025贵阳市菜篮子集团有限公司招聘11人笔试备考题库及答案解析
- (2025年标准)蔬菜订单收购协议书
- 茶壶课件教学课件
- 放射卫生知识培训内容描述课件
- 2025-2026学年人教版(2024)初中物理八年级上册教学计划及进度表
- 2025-2026学年人教版(2024)初中数学七年级上册教学计划及进度表
- 2025-2026学年冀教版(2024)小学数学三年级上册教学计划及进度表
- 卵巢过度刺激综合征
- 小学三年级综合实践课ppt课件
- DIN1725-1-5 铝合金化学成分_图文
评论
0/150
提交评论