构建SOA组合业务服务,第11部分: 实现订阅者授权流程2011-04-08 IBM Naveen Sachdeva等本系列的上一篇文章概要性介绍了 IBM® WebSphere® Service Registry and Repository 和 IBM WebSphere Process Server 如何用于服务消费治理。本文将描述一些实 现细节,向您介绍如何自定义 WebSphere Service Registry and Repository 来支持服务消 费治理,如何使用 WebSphere Process Server 实现订阅者授权流程,以及如何使用 SOAP 接口将其与 WebSphere Service Registry and Repository 集成。概述WebSphere Service Registry and Repository 是一个服务元数据注册中心和存储库 。它建立了一个中心点,以查找和管理从不同源中获得的服务元数据。服务元数据的一个示 例是服务提供者 (SP) 和服务订阅者 (SS) 之间事先协商的成本和响应时间。WebSphere Service Registry and Repository 具有大量可针对服务提供者自定义的方面。例如,您可 以使用 XML 模式定义 WebSphere Service Registry and Repository 模板来表示特定于服 务提供者的契约信息。另外,还可以使用 Web Ontology Language (OWL) 定义分类级别将不 同的 WebSphere Service Registry and Repository 实体关联起来。WebSphere Service Registry and Repository 还为其 UI 提供了广泛的自定义功能。与用户的组织角色对应的 透视图可以在 Web UI 中定义,以提供服务元数据的自定义视图。WebSphere Service Registry and Repository 提供了添加确认和通知插件的能力,以实现自定义行为来响应存 储库的内容更改。WebSphere Process Server 是 Business Process Execution Language (BPEL) 工作流的一个容器。在 BPEL 中编写的业务流程可以作为 Web 服务导出并 由其他应用程序访问;其中一个示例是使用 SOAP 接口的 WebSphere Service Registry and Repository。您可以将 WebSphere Process Server 与 WebSphere Service Registry and Repository 集成来执行工作流,以响应存储在 WebSphere Service Registry and Repository 中的元数据的状态更改。如图 1 中所示,WebSphere Process Server 中的 BPEL 流程可以由 WebSphere Service Registry and Repository 通过 WebSphere Service Registry and Repository 中用户定义的通知插件来调用。BPEL 流程进而可以使用 WebSphere Service Registry and Repository SOAP API 创建或更新 WebSphere Service Registry and Repository 中的信息。图 1. WebSphere Process Server 和 WebSphere Service Registry and Repository 集 成点

本文将介绍如何设置 WebSphere Service Registry and Repository 并将其与 WebSphere Process Server 集成,以实现上一篇文章中介绍的订阅者授权流程。设置 WebSphere Service Registry and Repository您可以通过向 WebSphere Service Registry and Repository 添加模板、分类、角色或 透视图实现以下 WebSphere Service Registry and Repository 自定义。以下部分介绍了自 定义详细信息。