简体   繁体   English

WOPI服务器(Office Web Apps服务器)可以连接到第三方应用程序吗?

[英]Can WOPI server (Office Web Apps Server) be connected to Third party application?

I am working on a document storage application which hosts a ton of office files (WORD, EXCEL, PPT) on cloud, now I want to render these files and open/show on the browser. 我正在开发一个文档存储应用程序,该应用程序在云上托管了大量办公文件(WORD,EXCEL,PPT),现在我想呈现这些文件并在浏览器中打开/显示。

but I have a very vague picture of how and where all these below things fits and communicate 但我对以下所有这些东西如何以及在何处适合和交流有一个模糊的印象

(WOPI HOST) (WOPI主机)
Browser 浏览器
| |
(WOPI SERVER) (WOPI服务器)
Office Web Apps Server Office Web Apps服务器
| |
(Third Party Application) (第三方申请)
My Document Storage App 我的文档存储应用

Before I had an impression that (document storage application) will serve as Office Web Apps Server but after reading few blogs I got more confused. 在我感觉(文档存储应用程序)将用作Office Web Apps Server之前,但是在阅读了很少的博客之后,我感到更加困惑。

Most of the blogs and contents talk about the WOPI host/client but they don't really clarify WOPI server and implementation of integrating Third party applications with it. 大多数博客和内容都谈论WOPI主机/客户端,但是它们并没有真正阐明WOPI服务器以及与第三方应用程序集成的实现。

Any input will be greatly appreciated. 任何输入将不胜感激。

I think this image illustrates it the best: 我认为这张图片最能说明问题: WOPI对话

A typical combination of WOPI Client/Host are Office Web Apps connected to SharePoint where: WOPI客户端/主机的典型组合是连接到SharePoint的Office Web Apps,其中:

  • Office Web Apps Server = WOPI Client implementation Office Web Apps Server = WOPI客户端实施
  • SharePoint = WOPI Host implementation SharePoint = WOPI主机实施

You need to build a WOPI Host that will implement all the methods ( GetCheckFileInfo , GetContents , etc.) These methods will get information from and perform operations upon your storage. 您需要构建一个WOPI主机,该主机将实现所有方法GetCheckFileInfoGetContents等)。这些方法将从存储中获取信息并对其执行操作。

You'll also need to implement a discovery mechanism to be able to generate links to the files. 您还需要实现发现机制 ,以便能够生成文件的链接。 The WOPI client should provide you with a template of such links if you go to http://wopiclient_eg_owas/hosting/discovery . 如果您转到http:// wopiclient_eg_owas / hosting / discovery,那么WOPI客户端应为您提供此类链接的模板。 You'll then just replace the placeholders with the real parameters (especially WOPISrc and access_token ). 然后,您只需将占位符替换为实际参数(尤其是WOPISrcaccess_token )。 See the example . 参见示例 This is how you tell the WOPI client where to fetch the data from. 这是您告诉WOPI客户端从何处获取数据的方式。

To begin with, I recommend the brand new WOPI documentation . 首先,我建议使用全新的WOPI文档 If you need some more inspiration look at MVC6 implementation or HttpListener implementation . 如果您需要更多灵感,请查看MVC6实现HttpListener实现

And please note that WOPI Server == WOPI Host :) 并且请注意, WOPI Server == WOPI主机 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM