基于HTTP的开放平台接口协议适配引擎的设计与实现
发布时间:2018-05-10 19:49
本文选题:开放平台 + 接入子系统Web服务 ; 参考:《北京邮电大学》2014年硕士论文
【摘要】:随着互联网技术的飞速发展,越来越多的企业开始建立自己的开放平台,将其能力开放给开发者。中国移动建设的移动开放平台的目标是将其电信级别的能力开放给业务开发者。然而,与互联网企业提供的简洁的开放平台接口相比,中国移动提供的接口参数过多,调用繁琐,对于开发者而言使用难度很大。 移动开放平台需要其接入子系统提供同时支持基于SOAP (Simple Object Access Protocol,简单对象访问协议)和REST (Representational State Transfer,表述性状态转移)两种风格的WebService接口。然而,由于两种接口采用不同的框架实现,在一套系统里使用两种框架提供Web Service服务十分臃肿,不利于未来的改进和维护。此外,现有移动开放平台的接入子系统,单独实现每个业务接口,存在大量通用功能模块多次重复实现的问题。 为了解决上述问题,本文研究并设计了基于HTTP的开放平台接口协议适配引擎。该引擎可提供统一的请求模型,同时支持SOAP和REST两种接口,并将请求解析成统一数据格式。数据可经过通用功能模块到达各自的业务逻辑,其中,通用功能模块采用可配置的拦截器链方式实现。 本文通过六个章节阐述基于HTTP的开放平台接口协议适配引擎的设计方案和具体实现。 第一章为绪论,介绍了当前Web Service的发展状况和移动开放平台接入子系统整体架构,阐述了本课题的研究背景。 第二章为关键技术,首先介绍了与Web Service技术相关的HTTP协议、SOAP协议和REST架构。其次分别介绍了实现SOAP的框架CXF和实现REST的框架Restlet,Spring框架的自动装配技术和面向切面编程技术,以及两种数据类型XML (Extensible Markup Language,可扩展标记语言)和JSON (JavaScript Object Notation)。 第三章对协议适配引擎进行了需求分析,阐述了要项目中需要解决的问题,并列出了功能需求点。 第四章详细说明了协议适配引擎的总体设计、详细设计以及各模块的具体实现方案。 第五章是测试工作,介绍了功能测试和性能测试。 第六章是对整个工作的总结,总结了系统功能的创新性和性能上的提高。
[Abstract]:With the rapid development of Internet technology, more and more enterprises begin to build their own open platform and open their capabilities to developers. The goal of China Mobile's mobile open platform is to open its telecom capabilities to business developers. However, compared with the simple open platform interface provided by Internet enterprises, China Mobile provides too many interface parameters and cumbersome calls, which is very difficult for developers to use. The mobile open platform needs its access subsystem to provide WebService interfaces that support both SOAP simple Object Access Protocol, simple object access protocols and REST representational State transfer. However, because the two interfaces are implemented in different frameworks, it is very unwieldy to use two frameworks to provide Web Service services in one system, which is not conducive to future improvement and maintenance. In addition, the access subsystem of the existing mobile open platform realizes each service interface separately, which has the problem of repeated implementation of a large number of common function modules. In order to solve the above problems, this paper studies and designs an open platform interface protocol adaptation engine based on HTTP. The engine can provide a unified request model, support both SOAP and REST interfaces, and parse requests into a unified data format. The data can reach their respective business logic through the universal function module, in which the universal function module is implemented by configurable interceptor chain. This paper describes the design and implementation of an open platform interface protocol adaptation engine based on HTTP in six chapters. The first chapter is the introduction, which introduces the current development of Web Service and the architecture of mobile open platform access subsystem, and describes the research background of this topic. The second chapter is the key technology. Firstly, the HTTP protocol and REST architecture related to Web Service technology are introduced. Secondly, this paper introduces the automatic assembly technology and section-oriented programming technology of SOAP framework CXF and REST framework Restlet Spring framework, as well as two kinds of data types, XML extensible Markup language (extensible markup language) and JSON XML Object Notation. respectively. The third chapter analyzes the requirements of the protocol adaptation engine, expounds the problems to be solved in the key projects, and lists the functional requirements. The fourth chapter describes the overall design of the protocol adaptation engine, detailed design and the specific implementation of each module. The fifth chapter is the test work, introduced the function test and the performance test. The sixth chapter summarizes the whole work, summarizes the innovation and performance of the system.
【学位授予单位】:北京邮电大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TP393.09
【参考文献】
相关期刊论文 前6条
1 张冠南;王纯;王晶;;能力开放平台中GIS能力的设计与实现[J];电信工程技术与标准化;2012年11期
2 许卓明,栗明,董逸生;基于RPC和基于REST的Web服务交互模型比较分析[J];计算机工程;2003年20期
3 翟峰;郝克刚;葛玮;;基于SOAP构建Axis上的Web Services[J];计算机应用与软件;2008年01期
4 陈玮;贾宗璞;;利用JSON降低XML数据冗余的研究[J];计算机应用与软件;2012年09期
5 张玉祥,高昆元,王魁生;基于HTTP协议与XML技术的远程数据访问[J];计算机工程与设计;2005年05期
6 李双江;郝克刚;葛玮;;一种基于Axis2的SOAP安全传输模型的研究[J];计算机技术与发展;2008年11期
,本文编号:1870634
本文链接:https://www.wllwen.com/guanlilunwen/ydhl/1870634.html