使用 Ruby 或 RubyOnRails 连接到共享点服务器
我有一个 SharePoint 服务器。我正在构建一个可以与共享点服务器交互的 Rails 应用程序,尽管这不是该应用程序的主要目标。我计划将此作为一个优势。
我的目标区域是 1.从SharePoint获取可用的文档存储库 2.使用Rails前端将文档添加到sharepoint 3. 获取具有要在应用程序列表页面上显示的层次结构的所有文档的列表
我不知道用于实现上述定义点的任何服务或协议。
第二种选择是我可以使用 svn 来管理我的文档存储库,但我将了解如何需要从 SharePoint 服务器迁移所有现有文档。
任何指示或帮助都可能很有价值。
I have a SharePoint server. I am building an rails application which can interact with sharepoint server although this is not the primary goal of the application. I am planning to provide this as an advantage.
My target areas would be
1. Fetching available document repository from SharePoint
2. Add documents to sharepoint using Rails front end
3. Get list of all documents with there hierarchy to be displayed on application listing page
I am unaware of any service or protocol to use to achieve the above defined points.
also the second alternative is i can use svn to manage my document repository but i will some how need to migrate all the existing documents from SharePoint server.
any pointer or help could be valuable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SharePoint 提供了一组可由非 .NET 应用程序使用的 Web 服务,但与运行 .NET 代码时可用的服务相比,它们是有限的。还有包含文件上传的 FrontPage RPC 调用。
从 SharePoint 获取可用文档存储库
使用 Lists.GetListCollection() 方法。 ServerTemplate 为 101 表示文档库。请参阅 MSDN 下的这些文章了解演练。
使用 Rails 前端将文档添加到 SharePoint
为此需要 FrontPage RPC。最好的例子我在这里看到。还有这里还有一个。
获取所有文档的列表及其要在应用程序列表页面上显示的层次结构
使用Lists.GetListItems() 方法类似于第 1 点。
抱歉,您必须将上面链接中的 C#/VB 代码转换为可在 Ruby 下运行的代码。
如果这些没有提供必要的解决方案和/或太复杂,您可能希望使用 IronRuby< 编写自己的解决方案/a>. SharePoint 支持编写可以从客户端应用程序使用的自定义 Web 服务反而。
SharePoint provides a set of web services that can be consumed by non-.NET applications, however they are limited compared to what is available when running .NET code. There is also the FrontPage RPC calls that cover the uploading of files.
Fetching available document repository from SharePoint
Use the Lists.GetListCollection() method provided by the Lists.asmx web service. A ServerTemplate of 101 indicates a document library. See these articles under MSDN for walkthroughs.
Add documents to SharePoint using Rails front end
FrontPage RPC is required for this. The best example I've seen is here. There's another one here.
Get list of all documents with their hierarchy to be displayed on application listing page
Use the Lists.GetListItems() method similar to point 1.
Apologies but you will have to translate the C#/VB code in the links above into something that works under Ruby.
If these don't provide the necessary solutions and/or are too complex, you may wish to write your own solution with IronRuby. SharePoint supports writing custom web services that you could use from your client application instead.