使用 Web 服務與 Rational Focal Point 整合

根據標準技術,Web 服務 API 可在外部存取 IBM® Rational® Focal Point™ 中的資訊。使用 API,您可以更容易與其他工具整合。

對於要透過程式設計方式(而非手動)從 Rational Focal Point 存取功能或資料的應用程式開發者而言,API 非常有用。若要使用 API,您必須熟悉「Web 服務說明語言 (WSDL)」和 SOAP,因為這是 Web 服務使用的標準。

Web 服務目前僅支援 Rational Focal Point 中的部分功能。包括的功能如下:

Web Services 2.0 版

依預設會啟動 Web Services 2.0 版。您可以在 focalpoint_path/services2/FPServices?wsdl 找到 Rational Focal Point Web 服務的 WSDL 文件。

如需 Web Services 2.0 及其功能的相關詳細資料,請參閱《Focal Point Web Services API 2.0 參考手冊》。 

Web Services 1.0 版

只對已使用 Web Services 1.0 的應用程式(例如,Telelogic Synchronization Framework)使用 Web Services 1.0。這類情況尚未支援 Web Services 2.0。

您可以在 focalpoint_path/servlet/Wsdl 找到 Rational Focal Point Web Services 1.0 的 WSDL 文件。

您必須先啟動 Web Services 1.0,才能使用它。若要啟動 Web Services 1.0,請按一下應用程式 > 資料存取 > Web Services 1.0

RESTful API

利用 Rational Focal Point RESTful API,您可以使用 XML、RDF/XML 和 HTML 資料格式以及 HTTP 型的 API,在 Rational Focal Point 中讀取、更新及新增元素。RESTful API 的起點位於 focalpoint_path/resources/
註:
  • 如果您在 RPE 中要求 XML 資料表單「Rational Focal Point 元素」REST URL,您必須指定 URL 或「要求標頭」中的 accept 類型。
  • 在動態資料來源的配置中使用個別元素的綱目時,您必須變更該設定。
    1. 移至資料來源配置 > 內容 > 格式化 > 動態配置
    2. 將 accept 標頭的值變更為 application/xml

如需 RESTful API 及其功能的相關詳細資料,請參閱《Rational Focal Point RESTful API 參考手冊》。


建議與意見