1

我使用 XMLEXPORT url 获取特定文件夹的内容:

cs.exe?func=ll&objid=1234&objAction=xmlexport&scope=sub

此 url 返回文件夹的完整内容。我只想拥有文件夹(objtype 0)

这种方法可以吗?(像'objtype = 0'这样的属性)

4

1 回答 1

1

您可能最好使用搜索 api - 您可以像这样访问子类型和父 ID:

/otcs/llisapi.dll?func=search&lookfor1=complexquery&where1="OTSubType":"0"&boolean2=and&where2="OTParentID":"[root object id]"&goFor=[no of items to retrieve]&outputformat=xml

一开始您不会知道预期有多少结果,并且 Content Server 将默认返回分页结果 - 要么进行一次no of items to retrieve大数字调用,要么进行两次调用 - 一个no of items to retrieve等于 1,第二个等于Output.SearchResultsInformation.RawTotalResults.

OTSubType并且OTParentID可能不是您实例中的可搜索字段。您可以通过转至 Content Server 管理 -> 搜索管理 -> 配置搜索过滤器屏幕并单击搜索管理器管理页面链接来查找可用于搜索的字段。

如果您登录了 Knowledge.opentext.com,则此处为 opentext 内容服务器 10.5 的搜索 api 帮助。

请注意,这只会给出一个级别的结果 - 而不是像您的 XMLEXPORT url 那样的树。如果您需要更复杂的东西,也许您可​​以编写一个 livereport 并将其作为 xml 获取。

于 2016-02-21T21:09:24.363 回答