如何使用webdav java服务器库检索/保存office文档?

发布于 2024-11-30 07:31:46 字数 336 浏览 4 评论 0原文

我们需要实现客户端/服务器来像 Confluence 一样从服务器打开/编辑 Office 文档。我们有服务器端实现(网络服务)来下载/上传文档。我们还有处理用户身份验证的身份验证服务。我们需要与这些现有服务一起实施/配置 WebDAV。因此:

  1. 当 Office 应用程序从 WebDav servlet 请求文档时,webdav 连接到我们现有的服务来获取文档,并使用我们现有的身份验证服务来对用户进行身份验证。我们需要编写什么代码来处理这个问题?
  2. 保存如上,将文档保存回来。

谁能帮助我如何快速开始这方面的工作?有教程链接吗?

谢谢&问候, 纳迪姆·乌拉

We need to implement client / server to open / edit Office documents from server as confluence does. We have our server side implementations (web services) to download / upload documents. Also we have our authentication services that handle user authentication. We need to implement / configure WebDAV along with these existing services. So:

  1. When Office application requests a document from WebDav servlet, webdav connects to our existing service to get the document and would use our existing authentication service to authenticate the user. What code do we need to write to handle this?
  2. Save as above to save a document back.

Can anyone please help me on how to get a quick start on this? Any tutorial links?

Thanks & regards,
Nadeem Ullah

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

可爱暴击 2024-12-07 07:31:46

我最近使用 milton 框架 实现了一个原型,用于浏览存储库并从我们的 DMS 打开 Office 文档,取得了良好的进展。它使用弹簧和部署描述符中的过滤器进行连接 - 到目前为止,米尔顿给我留下了深刻的印象。它易于使用并且集成得很好。

I recently implemented a prototype using the milton framework to browse the repository and open office documents from our DMS and made good progress. It´s wired up using spring and a filter in our deployment descriptor - so far I´m fairly impressed by milton. It´s easy to use and integrates quite well.

看轻我的陪伴 2024-12-07 07:31:46

据我所知,Webdav 协议就是您正在寻找的。

Microsoft Office 可以从 WebDAV 服务器打开文件并将其保存回服务器,而无需将其下载到本地文件系统。为此,必须满足以下条件:

您的 WebDAV 服务器必须支持 Class 2。Microsoft Office 在创建和打开文件进行编辑时会锁定文档。如果 Microsoft Office 无法锁定文档,它将以只读方式打开。

如果使用 MS Office 2007 或更早版本,则必须在站点根目录上配置 WebDAV 服务器。 Microsoft Office 2007 及更早版本可能会向站点根目录 (http://server/) 提交 OPTIONS 和 PROPFIND 请求,并需要服务器正确回应。如果您的 WebDAV 服务器是非根 Microsoft Office 2007 及更早版本可能会以只读方式打开文档。 MS Office 2010及更高版本不存在此问题。

https://www.webdavsystem.com/server/documentation/ms_office_read_only/

请还可以看看 Apache JackRabit,它是一个 WebDav 服务器。并从 github 搜索 WebDav 以获取其他实现。

From what I know, Webdav protocol is what you are looking for.

Microsoft Office can open files from a WebDAV server and save them back to the server without the need to download them to local file system. To achieve this the following conditions must be met:

Your WebDAV server must support Class 2. Microsoft Office locks documents when creating and opening files for editing. If Microsoft Office is unable to lock the document it will be opened as read-only.

Your WebDAV server must be configured on the site root in case of MS Office 2007 or earlier. Microsoft Office 2007 and earlier may submit OPTIONS and PROPFIND requests to the site root (http://server/) and requires the server to respond properly. If your WebDAV server is non-root Microsoft Office 2007 and earlier may open documents as read-only. There is no this issue with MS Office 2010 and later versions.

https://www.webdavsystem.com/server/documentation/ms_office_read_only/

Please also look at Apache JackRabit which is a WebDav server. And search WebDav from github for other implementaions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文