技术文章 - CS311821
Windchill PDMLink 11.1 M020 CPS08 和 11.2.0.2 中添加了 Windchill OSLC 服务器支持
已修改: 06-Mar-2024
适用于
- Windchill PDMLink 11.1 M020-CPS08
- Windchill PDMLink 11.2.0.2 to 12.0
说明
- Windchill 现在提供 OSLC 服务器 API,以支持根据 OSLC 规范查询 OSLC 客户端并将其链接到 Windchill 部件。
- Windchill 支持以下 OSLC 规范:
Windchill OSLC 服务负责将 Windchill 对象映射到相应的 OSLC 资源,并以请求的格式提供对这些资源的响应。以下是支持的格式:
- rdf+xml(默认)
- 文/龟
注意:Windchill OSLC 服务只能由 OSLC 客户端使用;非 OSLC 客户端必须使用 Windchill (OData) Rest 服务 (WRS)。
OSLC 目录- 可通过 http(s)://<server>:<port>/Windchill/oslc/catalog 访问 OSLC 目录,了解有关所有可用服务、资源和术语的详细信息。
OAuth 配置
- Windchill OSLC 服务的默认授权是基本授权。需要额外的配置步骤才能启用 OAuth 授权。有关将 Windchill 配置为使用 OAuth 的步骤,请参阅配置OAuth 委派授权。配置 Windchill OAuth 后,需要在 wt.properties 中设置以下 Windchill 属性:
物业名称 | 描述 |
oslc.authorizationURI | 用于获取OAuth授权的URI。 |
oslc.oauthAccessTokenURI | 用于获取 OAuth 访问令牌的 URI。 |
oslc.oauthRequestTokenURI | 用于获取 OAuth 请求令牌的 URI。 |
- 配置 OSLC OAuth 属性后,Windchill OSLC 目录包括 OAuthConfiguration 属性,该属性允许 OSLC 客户端发现它们应使用 OAuth 授权。
从先前版本的 Windchill 更新后,执行以下步骤以启用 Windchill OSLC 服务。
- 将以下条目添加到 %WT_HOME%/codebase/WEB_INF/web.xml
<servlet-mapping> <servlet-name>OSLCServlet</servlet-name> <url-pattern>/oslc/*</url-pattern> </servlet-mapping
- 要将 OSLC 路径添加到 Apache 配置,请将以下条目添加到 HTTPServer/conf/conf.d/30-app-Windchill-AJP.conf
JkMount /Windchill/oslc/* ajpWorke
- 要在 Apache 配置中配置 OSLC 目录以进行匿名访问,请将以下条目添加到 HTTPServer/conf/conf.d/30-app-Windchill-Auth.conf
<LocationMatch ^/+Windchill/+oslc/catalog(;.*)?> Require all granted </LocationMatch
这是文章 311821 的 PDF 版本,可能已过期。最新版本 CS311821