【问题标题】:Using Apache Camel CMIS with Sharepoint 2013将 Apache Camel CMIS 与 Sharepoint 2013 一起使用
【发布时间】:2015-04-14 07:49:31
【问题描述】:

我可以从 Chrome REST 客户端成功访问 Sharepoint 2013 AtomPub 界面,以下 URL 为我提供了我想要的文件:

http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?getContentStream&objectId=4-512

但是,在 Camel CMIS 路由中使用相同的 URL 会得到 HTTP 302(找不到文件)并将我转到错误页面。

我尝试的路线是:

from("cmis:http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?getContentStream&objectId=4-512")
.to("file:c:/myFolder")

运行 Wireshark 看看发生了什么,Camel CMIS 似乎没有将查询字符串部分传递给服务器,并且可能会将其视为 CMIS 组件的选项(根据组件的使用指南)。

那么,Camel CMIS 组件与 Sharepoint 一起使用的正确方法是什么?

【问题讨论】:

    标签: sharepoint apache-camel cmis


    【解决方案1】:

    您是否尝试过像这样向 uri 添加参数“查询”

    from("cmis:http://ourintranet:100/personal/myname/_vti_bin/cmis/rest/5612e38e-a324-4030-9fee-7d05cd9053a4?query=getContentStream&objectId=4-512")
    .to("file:c:/myFolder")
    

    根据http://camel.apache.org/cmis.html

    查询 |对存储库执行的 cmis 查询。如果未指定,消费者将通过递归迭代内容树从内容存储库中检索每个节点

    【讨论】:

      猜你喜欢
      • 2012-12-04
      • 1970-01-01
      • 2022-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多