将 Apache Camel CMIS 与 Sharepoint 2013 一起使用

编程入门 行业动态 更新时间:2024-10-07 16:22:36
本文介绍了将 Apache Camel CMIS 与 Sharepoint 2013 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

我尝试的路线是:

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

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

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

解决方案

你有没有试过像这样在uri中添加参数query"

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

根据camel.apache/cmis.html:p>

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

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

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

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

The route I tried is:

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

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).

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

解决方案

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

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

According to camel.apache/cmis.html :

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 一起使用

本文发布于:2023-11-28 11:02:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642134.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Camel   Apache   CMIS   Sharepoint

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!