基于JSON的Web服務(wù)描述框架的設(shè)計(jì)與實(shí)現(xiàn)
本文選題:Web服務(wù) + 遠(yuǎn)程過(guò)程調(diào)用 ; 參考:《天津大學(xué)》2014年碩士論文
【摘要】:隨著網(wǎng)絡(luò)技術(shù)的發(fā)展與軟件工程領(lǐng)域技術(shù)理論的進(jìn)步,Web服務(wù)已經(jīng)成為了一種主流的為大眾所認(rèn)可的觀念與技術(shù)。通過(guò)Web服務(wù),軟件開發(fā)人員可以像調(diào)用本地服務(wù)一樣調(diào)用Web服務(wù)所提供的API,集成到自己的應(yīng)用程序中。極大的提高軟件代碼的重用,降低各組件之間的耦合度。目前,主流的Web Service實(shí)現(xiàn)方式主要有遠(yuǎn)程過(guò)程調(diào)用(RPC)與表述性狀態(tài)遷移(REST)兩種。REST方式雖然簡(jiǎn)單易用,但缺少統(tǒng)一的描述規(guī)范而且對(duì)事務(wù)支持不足,不能完全解決Web服務(wù)的需求;RPC實(shí)現(xiàn)方式中,SOAP+WSDL的方式應(yīng)用最為廣泛,但由于XML本身的冗余性以及在SOAP協(xié)議設(shè)計(jì)過(guò)程中過(guò)分強(qiáng)調(diào)了數(shù)據(jù)完整性、自描述性,導(dǎo)致這種方式開銷龐大,性能較低。本文描述了一種跨語(yǔ)言、跨平臺(tái)的基于JSON語(yǔ)言的Web服務(wù)描述與交互架構(gòu)。將Web服務(wù)的描述分為數(shù)據(jù)類型、方法描述、接口描述和服務(wù)描述四個(gè)部分。同時(shí)定義了一套用于數(shù)據(jù)交換的JSON序列化格式,分別為服務(wù)的請(qǐng)求、回復(fù)和錯(cuò)誤提示進(jìn)行了消息格式的定義。與XML相比,使用JSON可以減少數(shù)據(jù)冗余,降低了數(shù)據(jù)傳輸?shù)拈_銷。為了更好的讓讀者理解、使用這套架構(gòu),本文還設(shè)計(jì)了一套面向JAVA語(yǔ)言的自動(dòng)化服務(wù)描述文檔生成工具和服務(wù)端、客戶端的數(shù)據(jù)交互工具,以凸顯該架構(gòu)易用、方便、學(xué)習(xí)成本低的特點(diǎn)。同時(shí)以實(shí)驗(yàn)論證了在不涉及安全檢查、內(nèi)容自解釋等復(fù)雜需求的Web服務(wù)領(lǐng)域,本文提出的基于JSON的RPC實(shí)現(xiàn)方式比現(xiàn)有的WSDL+SOAP的方式具有更優(yōu)秀的性能。對(duì)于許多更傾向于高性能、低開銷的服務(wù)提供者來(lái)說(shuō),使用這種架構(gòu)更能滿足他們的需求。
[Abstract]:With the development of network technology and the progress of technology theory in the field of software engineering, Web service has become a popular concept and technology. With Web services, software developers can invoke the API provided by Web services just as they call local services, and integrate them into their own applications. Greatly improve the reuse of software code, reduce the coupling between components. At present, the main implementation methods of Web Service include remote procedure call (RPC) and express character state migration (rest). Although they are simple and easy to use, they lack uniform description specification and lack of support for transactions. However, soap WSDL is widely used in the implementation of Web services. However, because of the redundancy of XML itself and the excessive emphasis on data integrity and self-description in the design of SOAP protocol, This leads to huge overhead and low performance. This paper describes a cross-language, cross-platform Web service description and interaction architecture based on JSON language. The description of Web service is divided into four parts: data type, method description, interface description and service description. At the same time, a set of JSON serialization format for data exchange is defined, which defines the message format for service request, reply and error prompt respectively. Compared with XML, using JSON can reduce data redundancy and reduce the cost of data transmission. In order to make readers understand and use this architecture better, this paper also designs a set of automatic service description document generation tools and client data interaction tools for JAVA language to highlight the ease of use and convenience of the architecture. The characteristic of low cost of study. At the same time, in the field of Web services which do not involve security inspection, content self-interpretation and other complex requirements, the proposed implementation of RPC based on JSON has better performance than that of the existing WSDL SOAP. For many service providers that prefer high performance and low overhead, this architecture is better suited to their needs.
【學(xué)位授予單位】:天津大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TP311.52;TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前6條
1 劉凱立;;Java反射技術(shù)淺談[J];科技信息;2010年08期
2 鄔海波;吳保國(guó);;基于WebService的多源數(shù)據(jù)庫(kù)數(shù)據(jù)訪問(wèn)方法[J];電腦知識(shí)與技術(shù);2009年31期
3 秦瑋,林學(xué)練,逯鵬;一種WSDL自動(dòng)生成系統(tǒng)的研究與實(shí)現(xiàn)[J];微機(jī)發(fā)展;2005年11期
4 陳珊,許林英,袁琳;Web服務(wù)綜述[J];微處理機(jī);2005年02期
5 羅玲;白曉穎;;基于XML的RPC技術(shù)分析[J];計(jì)算機(jī)科學(xué);2004年02期
6 許卓明,栗明,董逸生;基于RPC和基于REST的Web服務(wù)交互模型比較分析[J];計(jì)算機(jī)工程;2003年20期
相關(guān)碩士學(xué)位論文 前6條
1 陳祥云;Web服務(wù)中的QoS模型研究[D];南京郵電大學(xué);2011年
2 劉甜;SOA在知識(shí)產(chǎn)權(quán)信息管理系統(tǒng)中的應(yīng)用研究[D];華北電力大學(xué)(河北);2010年
3 田濤濤;Web服務(wù)自動(dòng)封裝和發(fā)布接口的研究[D];大連海事大學(xué);2007年
4 胡正才;基于XML和WEB服務(wù)的開放式的企業(yè)管理信息系統(tǒng)的研究[D];華中科技大學(xué);2007年
5 秦文;基于Web Service的分布式三維渲染[D];西北大學(xué);2006年
6 陳文;MVC設(shè)計(jì)模式在Web服務(wù)中的應(yīng)用研究[D];南京理工大學(xué);2005年
,本文編號(hào):1795106
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1795106.html