Nodejs中的WOPI主机实现? [英] WOPI host implementation in Nodejs?

查看:374
本文介绍了Nodejs中的WOPI主机实现?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署需要执行WOPI协议的Office Online.我已经在C#中看到了WOPI主机的实现,例如此处. WOPI协议需要实现一堆端点.我想知道如果我在Node.js中实现WOPI主机,它将与Office Online Server兼容吗?

I want to deploy Office Online which requires the implementation of WOPI protocol. I have seen the implementation of WOPI host in C# e.g. here. WOPI protocol requires to implement a bunch of endpoints. I was wondering If I implement WOPI host in Node.js, will it be compatible to work with Office Online Server?

有什么想法吗?

感谢您的期待

推荐答案

WOPI主机端点的实现与语言无关.只要您的语言/框架/平台可以使用application/jsonapplication/octet-stream响应来满足HTTP请求,您就可以了.

Implementation of a WOPI host endpoint is not language-dependent. As long as your language/framework/platform can serve HTTP requests with application/json and application/octet-stream responses you should be good.

您至少需要实现 MS- WOPI 协议.根据您的要求,您可能还需要实施 MS -FSSHTTP 协议.当您与 Office Web Apps 2013 和例如,您需要支持Word编辑.发现XML中的COBALT指示了使用MS-FSSHTTP的必要性.

You need to implement at least the MS-WOPI protocol. Depending on your requirements you may also need to implement the MS-FSSHTTP protocol. This may be the case when you are integrating with Office Web Apps 2013 and you need to support Word editing, for instance. The necessity of using MS-FSSHTTP is indicated by COBALT in the discovery XML.

新的 Office Online Server 从大多数操作中删除了实现COBALT请求的要求.只有OneNote文件格式才需要.您可以在 Office Online的发现XML 中看到.

The new Office Online Server removed the requirement for implementing COBALT requests from most of the actions. It's only required for OneNote file format. You can see that in the discovery XML of Office Online.

测试WOPI实施的唯一方法,除非您是 Office Online集成合作伙伴,是在服务器上本地安装Office Online Server(或较旧的Office Web Apps).两者都可以通过MSDN下载.

The only way to test your WOPI implementation, unless you are an Office Online integration partner, is to install Office Online Server (or the older Office Web Apps) locally on your server. Both can be downloaded via MSDN.

如果您有机会成为集成合作伙伴,则可以利用 GitHub 上有可用python内置的CLI.

If, by any chance, you are an integration partner then you can take advantage of the validator app they provide. There is a CLI built in python available on GitHub.

如果您要与新的OOS集成,请在 http://wopi上参考更新更好的文档. readthedocs.io/.

If you are about to integrate with the new OOS please refer to the newer and better documentation at http://wopi.readthedocs.io/.

这篇关于Nodejs中的WOPI主机实现?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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