基于HTTP的開放平臺接口協(xié)議適配引擎的設(shè)計與實現(xiàn)
發(fā)布時間:2018-05-10 19:49
本文選題:開放平臺 + 接入子系統(tǒng)Web服務(wù)。 參考:《北京郵電大學(xué)》2014年碩士論文
【摘要】:隨著互聯(lián)網(wǎng)技術(shù)的飛速發(fā)展,越來越多的企業(yè)開始建立自己的開放平臺,將其能力開放給開發(fā)者。中國移動建設(shè)的移動開放平臺的目標是將其電信級別的能力開放給業(yè)務(wù)開發(fā)者。然而,與互聯(lián)網(wǎng)企業(yè)提供的簡潔的開放平臺接口相比,中國移動提供的接口參數(shù)過多,調(diào)用繁瑣,對于開發(fā)者而言使用難度很大。 移動開放平臺需要其接入子系統(tǒng)提供同時支持基于SOAP (Simple Object Access Protocol,簡單對象訪問協(xié)議)和REST (Representational State Transfer,表述性狀態(tài)轉(zhuǎn)移)兩種風(fēng)格的WebService接口。然而,由于兩種接口采用不同的框架實現(xiàn),在一套系統(tǒng)里使用兩種框架提供Web Service服務(wù)十分臃腫,不利于未來的改進和維護。此外,現(xiàn)有移動開放平臺的接入子系統(tǒng),單獨實現(xiàn)每個業(yè)務(wù)接口,存在大量通用功能模塊多次重復(fù)實現(xiàn)的問題。 為了解決上述問題,本文研究并設(shè)計了基于HTTP的開放平臺接口協(xié)議適配引擎。該引擎可提供統(tǒng)一的請求模型,同時支持SOAP和REST兩種接口,并將請求解析成統(tǒng)一數(shù)據(jù)格式。數(shù)據(jù)可經(jīng)過通用功能模塊到達各自的業(yè)務(wù)邏輯,其中,通用功能模塊采用可配置的攔截器鏈方式實現(xiàn)。 本文通過六個章節(jié)闡述基于HTTP的開放平臺接口協(xié)議適配引擎的設(shè)計方案和具體實現(xiàn)。 第一章為緒論,介紹了當前Web Service的發(fā)展狀況和移動開放平臺接入子系統(tǒng)整體架構(gòu),闡述了本課題的研究背景。 第二章為關(guān)鍵技術(shù),首先介紹了與Web Service技術(shù)相關(guān)的HTTP協(xié)議、SOAP協(xié)議和REST架構(gòu)。其次分別介紹了實現(xiàn)SOAP的框架CXF和實現(xiàn)REST的框架Restlet,Spring框架的自動裝配技術(shù)和面向切面編程技術(shù),以及兩種數(shù)據(jù)類型XML (Extensible Markup Language,可擴展標記語言)和JSON (JavaScript Object Notation)。 第三章對協(xié)議適配引擎進行了需求分析,闡述了要項目中需要解決的問題,并列出了功能需求點。 第四章詳細說明了協(xié)議適配引擎的總體設(shè)計、詳細設(shè)計以及各模塊的具體實現(xiàn)方案。 第五章是測試工作,介紹了功能測試和性能測試。 第六章是對整個工作的總結(jié),總結(jié)了系統(tǒng)功能的創(chuàng)新性和性能上的提高。
[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.
【學(xué)位授予單位】:北京郵電大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.09
【參考文獻】
相關(guān)期刊論文 前6條
1 張冠南;王純;王晶;;能力開放平臺中GIS能力的設(shè)計與實現(xiàn)[J];電信工程技術(shù)與標準化;2012年11期
2 許卓明,栗明,董逸生;基于RPC和基于REST的Web服務(wù)交互模型比較分析[J];計算機工程;2003年20期
3 翟峰;郝克剛;葛瑋;;基于SOAP構(gòu)建Axis上的Web Services[J];計算機應(yīng)用與軟件;2008年01期
4 陳瑋;賈宗璞;;利用JSON降低XML數(shù)據(jù)冗余的研究[J];計算機應(yīng)用與軟件;2012年09期
5 張玉祥,高昆元,王魁生;基于HTTP協(xié)議與XML技術(shù)的遠程數(shù)據(jù)訪問[J];計算機工程與設(shè)計;2005年05期
6 李雙江;郝克剛;葛瑋;;一種基于Axis2的SOAP安全傳輸模型的研究[J];計算機技術(shù)與發(fā)展;2008年11期
,本文編號:1870634
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1870634.html
最近更新
教材專著