APP下载

Web服务动态组合关键方法研究

2021-09-05刘聪杨怀洲

计算机时代 2021年8期

刘聪 杨怀洲

摘  要: Web服务动态组合方式相较于静态组合方式拥有更高的灵活性和实用性,动态组合使服务在异常情况下可以被替换。文章通过对当前Web服务动态组合主要方法的实现原理与相关关键技术进行综合分析,比较得出各类方法的适用性及优缺点,并提出了Web服务动态组合的研究方向。

关键词: Web服务; 服务组合; 智能规划; 工作流技术

中图分类号:TP301          文献标识码:A    文章编号:1006-8228(2021)08-21-03

Research on key methods of web service dynamic composition

Liu Cong, Yang Huaizhou

(Xi'an Shiyou University, Xi'an, Shaanxi 710065, China)

Abstract: Compared with static composition, dynamic composition of web services has higher flexibility and practicability. Dynamic composition enables services to be replaced in abnormal situations. Through the comprehensive analysis of the implementation principles and related key technologies of the current main methods of web services dynamic composition, the applicability, advantages and disadvantages of these methods are obtained by the comparisons, in this paper, and  the research direction of Web services dynamic composition is proposed.

Key words: Web service; service composition; AI planning; workflow technology

1 Web服務动态组合关键方法介绍

Web服务是面向服务的体系结构的一种典型实现方法,具有跨平台、跨标准、跨语言等优点。但是,由于当前单个Web服务功能有限,为了完成更加复杂多样的业务需求,我们需要组合不同服务以获得更大粒度的服务[1]。

静态组合和动态组合是Web服务的两种组合方式[2]。静态组合需要定义大量的模板且服务在运行期间不可替换更改,针对上述缺陷,需要对服务动态组合。

当前关于Web服务动态组合的研究主要主要分为两个方向:一个是基于智能规划,以斯坦福大学和卡内基-梅隆大学等机构提出的Web服务本体语言(OWL-S)为代表;另一个是基于工作流技术,以IBM、微软等提出的业务流程执行语言(BPEL4WS)以及惠普公司提出的EFlow技术为代表[3]。

⑴ 基于语义的Web服务动态组合方法

面向语义的Web服务动态组合,其基本思想是利用本体来描述Web服务,通过带有语义信息的Web服务使服务之间能够自动发现、组合和执行。

目前,主要的语义Web服务描述语言有WSMO(Web service modeling ontology)、SAWSDL(semantic annotations for WSDL and XML schema)和OWL-S(Ontology Web Language for Services,Web服务的本体语言)等。

OWL-S是在语义网的OWL基础架构下,用来描述语义网服务,在 OWL-S顶层服务本体中有三种本体:Service Profile、Service Model和Service Grounding[4]。……

登录APP查看全文