P2P网络与Web服务集成研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
P2P是网络计算的一种新技术,其目的是将网络中不同的计算机连接在一起,进行文件共享与交换,并能充分利用互联网和Web站点中的闲置资源。这种网络结构中所有的网络结点是互相对等的,它们既是客户端又是服务器,P2P通过这些对等体之间的直接交换实现计算资源和服务的共享。
     WebService是建立可互操作的分布式应用程序的新平台,它是自包含、自描述、模块化的应用,可以在网络中被描述、发布、查找以及通过Web来调用。它执行特定的任务,遵守具体的技术规范,这些规范使得WebService能与其它兼容的组件进行互操作。
     P2P和WebService这两种技术都有着非常广阔的应用前景,也必然存在相互之间的互操作应用。为了实现P2P网络和WebService这两种技术的集成,本论文首先分析了P2P技术以及JXTA P2P网络平台的有关内容及其协议,紧接着分析了与WebService相关的WSDL、UDDI、SOAP等相关技术规范。针对底层协议以及传输所用的消息格式的不同等问题,对Web服务与P2P这两种技术的集成进行了研究。
     本文通过在JXTAP2P网络中引入代理的方式,使P2P网络中的应用能够与WebService所提供的服务进行交互。代理作为中间者,需要理解这两种技术所需的协议。在配置代理时本文使用WSDL2Java工具来自动生成调用WebService的客户端代码。代理使用这些自动生成的代码来调用Web服务。为了验证本文的基本实现方法,本文编写了一个WebService并将其融入到P2P网络中,实现了对等点对P2P网络外部的WebService的透明调用。从而也达到了这两种技术集成的目的。
P2P is a new technology in the network computing area, which arms to connect all different computers in the net so that resources can be shared and transferred among them, and use all inactive resources. All of the network nodes are peers to peers, and they are both client and server in the P2P network architecture. P2P implements the sharing of computing resources and services through the direct communication among the peers.
     WebService is a new platform to build distributed and interactive applications. These self-containing, self-describing and modular applications can be described, published, found and invoked by the web client in the network. Based on special rules, WebService can interact with other compatible modules and execute specified tasks.
     P2P and Web Service will be applied widely in the future. It is certain that there are interoperable applications between the two technologies. In order to implement the combination of the P2P network and WebService, this thesis has analysed the P2P technology and Protocols of JXTA firstly, then analysed the WSDL, UDDI, SOAP technology etc, with the WebService. Arming at the questions such as differences between the bottom layer protocol and transmission message form, this thesis has studied the combination of P2P and WebService.
     In this thesis, the way of proxy has been introduced into the JXTA P2P Network, that make the JXTA's applications can interoperate with the WebService. Broker that work as the intermediator needs to implement both the rules of JXTA and WebService. During the deployment of the Broker, this thesis uses the WSDL2Java tool to produce the client code of WebService automatically. Those codes will be used to invoke the WebService by Broker. At last, in order to inspect and verify the basic method of the combination of the two technologies in this thesis, an instance of WebService has been developed and integrated into the JXTA P2P network, and the Peers invoke transparently the P2P Network exterior WebService has also been realized.Thus achieved the both technologies integration.goal.
引文
[1]王旭辉,郑雪峰,姚宣霞.一种全新的P2P网络解决方案-JXTA技术.信息技术,2002年第10期:2-5
    [2]Brendon J.Wilson.JXTA.New Riders,2002.6
    [3]徐慧,张虹.基于Web Service的GIS动态服务的设计与实现.计算机工程,2005.31(3):110-112
    [4]岳昆,王晓玲,周傲英.Web服务核心支撑技术:研究综述.软件学报,2004.15(3):428-442
    [5]周傲英,凌波.Peerto Peer系统及其应用.计算机科学,2002.29(8):200-202
    [6]Robert Flenner,Michael Abbott,Toufic Boubez(美)等著.Java P2P技术内幕.人民邮电出版社,2003.10
    [7]SunMicrosystems,JXTA Java Standard Edition v2.5:programmer Guide.2007.10
    [8]吴胜桔,钟亦乎,张世永.JXTA:新型的网络计算环境.计算机工程,2004.30(9):4-6
    [9]许斌.JXTA-java P2P网络编程技术.清华大学出版社,2003.6
    [10]Li Gong.JXTA:A NetWork Programming Environment.Sun Micmsystems Inc.http://ieeexplore.ieee.org/ielS/4236/20242/00935182.pdf
    [11]Sun Microsystems Inc.JXTA v2.0 Protocols Specification.2004.1https://jxta-spec.dev.java.net/JXTAProtocols.pdf
    [12]蔡月茹,柳西玲.Web Service基础教程.清华大学出版社,2005.6
    [13]Hongbing Wang,Joshua Zhexue Huang,Yuzhong Qu et al.Web services:problems and future directions.Web Semantics:Science,Services and Agents on the World Wide Web.2004.1:309-320
    [14]Booth D,Haas H,Mccabe F,et al.WebService Architechture.2004http://www.w3.org/TR/2004/NOTE-ws-arch-20040211/wsa.pdf.2004
    [15]杨涛,刘锦德.Web Service技术综述-一种面向服务的分布式计算模式.计算机应用,2002.24(8):1-4
    [16]Ethan Cerami..Web Services Essentials.O'Reilly.2002
    [17]顾宁,刘家茂,柴晓路.Web Services原理与研发实践.机械工业出版社,2006.1
    [18]Robert Englander.Java and SOAP.O'ReilIy.2002.12
    [19]Martin Gudgin,Marc Hadley et al.SOAP Version 1.2 Part 0:Primer.W3C.2003.6.http://www.w3.org/TR/2003/REC-soap 12-part2-20030624/
    [20]Martin Gudgin,Marc Hadley et al.SOAP Version 1.2 Part 1:Messaging Framework.W3C.2003.6.http://www.w3.org/TR/2003/REC-soap 12-part 1-20030624
    [21]Martin Gudgin,Marc Hadley et al.SOAP Version 1.2 Part 2:Adjuncts.W3C.2003.6.http://www.w3.org/TR/2003/REC-soap 12-part2-20030624/
    [22]Erik Christensen,Francisco Curbera,Greg Meredith et al.Web Service Description Language (WSDL)1.1.W3C.2001.3.http://www.w3.org/TR/wsdl
    [23]Web Services的发现机制.http://www.nqsu.com/News/High/200702/1906.htm
    [24]王艳峰,王峰等.Web Service的资源中介-UDDI注册中心介绍.http://www.cnnic.net.cn/resource/daily/2003-11/4.pdf
    [25]理解 UDDI.http://www-128.ibm.com/developerworks/cn/webservices/ws-featuddi/
    [26]Web Services Flow Language(WSFL).http://xml.coverpages.org/wsfl.html
    [27]Changtao Qu,Wolfgang NejdI.Interacting the EduteIla/JXTA Peer-to-Peer Network with Web Services.IEEE.2004
    [28]Shafeer,Hussan,Hajiamohideen.A Model for Web Service Discovery and Invocation in JXTA.Information and media Technologies Matriculation No.16752
    [29]Meilir Page-Jones.UML面向对象程序设计基础.人民邮电出版社.2001.4
    [30]王少锋著.面向对象技术UML教程.清华大学出版社.2004.1
    [31]NaciDai,Lawrence Mandel,Arthur Ryman.Eclipse Web Tools Platform:Developing Java Web Application.Addison-Wesley Professional,2007
    [32]David Chappell,Tyler Jewel.Java Web Services.O'Reilly,2002.3.
    [33]Axis User's Guide.http://ws.apache.org/axis/java/user-guide.html
    [34]Project JXTA.JXTA-J2SE Public APIs JavaDoc.https://jxta-docs.dev.java.net/nonav/jxse-javadoc/2.5/jxse/api/index.html
    [35]Li Gong.JXTA技术手册。清华大学出版社,2004
    [36]Cay S.Horstmann,Gary Comell.Core Java~(TM)2 Volume Ⅱ- Advanced Features,Seventh Edition.Prentice Hall PTR.2004.11
    [37]Cay S.Horstmam,Gary Comell.Core JaVa~(TM)2 Volume I-Fulldamentals,Seventh Edition.Prentice Hall PTR.2004.8
    [38]Project Jxta platform infrastructure sources.http://dowllloadjaVa.net/jxta/jxta-jxse/2.5/
    [39]Axis 1.4 sources.http://www.apache.org/dyn/closer.cgi/ws/axis/1_4/
    [40]Web Tools Platform(WTP)Project.http://www.eclipse.org/webtools/

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700