将Apache Camel CMIS与Sharepoint 2013一起使用 [英] Using Apache Camel CMIS with Sharepoint 2013

查看:107
本文介绍了将Apache Camel CMIS与Sharepoint 2013一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I can successfully access Sharepoint 2013 AtomPub interface from Chrome REST clients, the following URL gives me the file I want:

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

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

However, using the same URL in the Camel CMIS route gets me HTTP 302 (File not found) and diverts me to an error page.

我尝试的路线是:

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组件的选项(根据该组件的使用指南).

Running Wireshark to see what is going on, it seems that Camel CMIS is not passing the query string part to the server, and may consider it options to the CMIS component (as per the component's usage guide).

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

So, what is the correct way of using Camel CMIS component with Sharepoint?

推荐答案

您是否尝试过像这样向uri添加参数"query"

Have you tried adding parameter "query" to the uri like this

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查询针对存储库执行.如果未指定,则消费者将通过递归迭代内容树从内容存储库中检索每个节点

query | The cmis query to execute against the repository. If not specified, the consumer will retrieve every node from the content repository by iterating the content tree recursively

这篇关于将Apache Camel CMIS与Sharepoint 2013一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆