P2P与Web service的融合.doc
文本预览下载声明
P2P与Web service的融合
摘要:Peer-to-Peer技术(P2P),是一个新出现的有可能改变下一代Internet架构的研究热点。Web Service是近年来蓬勃兴起的一种分布式计算模型,它能够实现在不同平台上、不同程序语言编写的应用程序或者应用程序组件之间无缝的互操作。为了实现P2P和Web Service融合,该文首先分析了P2P技术以及JXTA有关协议、Web Service中XML,WSDL,UDDI,SOAP等相关技术,通过在P2P网络中设置代理,使得P2P网络中的对等体能够访问和调用WebService。
关键词:P2P;web 服务;JXTA;XML;SOAP
中图分类号:TP393文献标识码:A文章编号:1009-3044(2009)32-8900-02
The Integration of P2P and Web Service
WENG Min-feng
(Information Technology Department, Changzhou 213000, China)
Abstract: Peer-to-Peer(P2P) technology is an emerging paradigm that is now viewed as a potential technology that could greatly change Internet architectures. Web Services is a new-emerged concept in the area of distributed computing. It enables interoperation and dynamic integration of applications based on different operation systems and written with various programing languages. To realize the combination of P2P network and web service,the thesisanalyzes P2P technology and protocols of JXTA XML, WSDL, UDDI, SOAP technology etc. within web service,through set up proxy in P2P network, Peer of P2P network can visit and transfer the web service that exist in network..
Key words: P2P; web service; JXTA; XML; SOAP
P2P对等网络是一种与传统C/S模式不同的新型网络,该网络中每个节点地位对等,既充当服务器,同时也为客户机。Web Service是一种软件系统,该软件系统可以支持处于Internet网络上的机器间的交互。Web Service的接口是以机器可以处理的格式来描述的(如WSDL)。别的系统与Web Service交互通过SOAP消息实现。SOAP消息规范是通过互联网上广泛接受的HTTP协议和XML协议基础上制定的,同时Web Service通过URL在Web网络上发布自己。P2P 和Web Service之间具有很大的互补作用。Web Service可以利用P2P的离散化技术来提高网络的可扩展性,可以为P2P应用提供易于控制的服务发现、检索机制以及良好的数据和业务集成。因此,P2P 和Web Service的融合可以提升服务网络的整体功能,降低网络复杂度。
1 设计方法
1.1 设计目标
1) 透明性
透明性是指P2P网络中Peer发现Web Service的过程对其是透明的,就象Peer发现P2P网络内部提供的服务一样,以及Peer可以透明的调用和访问Web Service,就象Peer访问P2P网络内部的服务一样。
2) 易于扩展性
可扩展性是衡量一个系统设计质量的重要指标。系统希望在Web Service的协议出现变化时,系统所需的修改工作是针对部分Peer,而不是全体。
3) 多样性和层次性
所谓多样性是指P2P中的Peer可以调用和访问更多的Web Service 资源,层次性是指Web Service的发现
1.2 总体设计
要使 P2P 网络中的对等点能够调用Intemet上已存在的WebService,P2P网络中的Peer就必须能够理解SOAP、UDDI、 WSDL等一系列协议。
显示全部