基于DDS的Web服务实现机制

 2022-05-18 08:05

论文总字数:33052字

摘 要

Web Service已经成为了一项得到广泛应用的技术,现在的Web Service大多是C/S架构,通过SOAP协议进行服务远程调用,但是这种方式有一些弊端,比如效率比较低、服务调用者必须知道服务提供方的地址等。本文通过实现一种SOAP协议向DDS的映射机制,研究基于DDS的Web Service系统。

本文对基于DDS的Web Service系统进行了四个方面的研究:

  1. 映射机制,该映射机制将原本的SOAP协议的远程服务调用映射为基于DDS的服务调用协议,通过映射,系统可以实现原本SOAP协议的服务调用的功能。
  2. 系统的输入,本文中为系统的输入规定了两种情况,即WSDL文档和SOAP消息,WSDL文档的输入对应服务调用者获取WSDL文档进行服务调用,SOAP消息的输入对应将原有的基于SOAP的服务调用转为基于DDS的服务调用。
  3. 实现了基于DDS的Web Service原型系统,该系统能够实现单服务调用以及服务链的调用。
  4. 系统的功能和性能测试,经过测试,系统实现了预期功能,且传输性能略微优于原本基于SOAP的Web Service。

关键词:Web Service,SOAP,DDS,映射

Abstract

Web Service has become a widely used technology. Most of the current Web Service is C/S architecture. Remote calls are made through the SOAP protocol. However, this method has some drawbacks, such as inefficiency, the service caller must know the address of the service provider, and so on. This paper studies the DDS-based Web Service system by implementing a mapping mechanism from SOAP to DDS.

This paper studies the Web Service system based on DDS in four aspects: 

  1. The mapping mechanism. The mapping mechanism maps the remote service call of the original SOAP protocol to the service call protocol based on DDS. Through the mapping, the system can realize the function of the service call of the original SOAP protocol. 
  2. The input of the system. In this paper, two cases are specified for the input of the system. That is, WSDL document and SOAP message, the input of WSDL document corresponds to the service caller to obtain WSDL document for service call, and the input of SOAP message changes the original SOAP-based service call to DDS-based service call.
  3. The output of the system. This paper implements the Web Service prototype system based on DDS, which can realize the call of single service and service chain.
  4. Tests for the function and performance of the system. After testing, the system realizes the expected function, and the transmission performance is slightly better than the original Web Service based on SOAP.

KEY WORDS: Web Service, SOAP, DDS, Mapping

目 录

摘 要 - Ⅰ -

Abstract - Ⅱ -

第一章 绪论 1

1.1研究背景 1

1.2研究目标和内容 2

1.3论文组织结构 4

第二章 技术背景 5

2.1Web Service 5

2.1.1简介 5

2.1.2XML XSD 6

2.1.3SOAP 6

2.1.4WSDL 7

2.1.5gSOAP 7

2.2数据分发服务DDS 7

2.2.1简介 7

2.2.2发布/订阅模型 8

2.2.3OpenDDS 9

2.3WordNet 9

2.3.1简介 9

2.3.2WordNet实现的功能 10

2.3.3单词相似度算法 10

2.4本章小结 10

第三章 系统设计与实现 11

3.1系统综述 11

3.2系统设计 13

3.2.1映射 13

3.2.2系统输入 14

3.2.3单服务和服务链调用 16

3.3系统实现 17

3.3.1映射 17

3.3.2WSDL解析 22

3.3.3SOAP解析 25

3.3.4模糊查询 26

3.5本章小结 27

第四章 性能测试 28

4.1WSDL解析测试 28

4.2DDS传输性能 28

4.3模糊查询模块 29

第五章 总结与展望 31

5.1论文总结 31

5.2工作展望 31

参考文献 33

致 谢 34

  1. 绪论

本章是绪论章节,主要介绍本论文的研究背景以及研究内容和目标,说明本文所做研究的意义以及明确的研究目的,陈列本文的组织结构,作为导读。

1.1研究背景

在互联网高速发展的现代,有越来越多的厂家选择通过网络来提供他们的优质服务。如果厂家选择通过实现一个桌面应用程序来提供服务,将会带来极大的额外开销,比如程序的维护等,用户比起去下载一个桌面应用程序,更希望能够通过一种更加简单的方式来享受服务,因此,Web Service技术现在得到了广泛的运用。

Web Service是一个平台独立的,低耦合的,自包含的、基于可编程的web的应用程序。Web Service的跨平台特性,使得运行在不同机器上的应用无需借助第三方软件就可以实现数据交互。Web Service是基于一些已有的技术,比如XML、TCP/IP等,所以其部署也比较简单。现在的Web Service的三大主要内容是SOAP、WSDL和UDDI,其中SOAP和WSDL都是基于XML格式的,不同的是WSDL是Web Service的描述语言,用于描述Web Service所提供的服务函数、参数和返回值,因为是基于XML的,WSDL又是机器可阅读的语言。而SOAP是一个简单对象访问协议,它用来在web上交换结构化和固化的信息,它结合了HTTP、XML和RPC技术,从使用上来看,用户并不需要完全理解SOAP的具体实现和原理,只需要根据WSDL文档按照SOAP的格式写一个请求服务的XML格式的信息即可,简单来说,SOAP可以看作是遵循SOAP编码规则的HTTP请求和响应,一个SOAP终端则可以看作一个基于HTTP的URL。另外,现在的UDDI查找服务不具有很强的性能,用户需要非常准确的描述才能找到他们需要的服务。

剩余内容已隐藏,请支付后下载全文,论文总字数:33052字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;