未调用 WOPI 主机

WOPI Host not called

我想知道为什么我的WOPI主机没有被调用。我通过类似于以下内容的 HTML 页面启动我的主机:

https://github.com/Microsoft/Office-Online-Test-Tools-and-Documentation/blob/master/samples/SampleHostPage.html

出于测试目的,我只处理一个文件。

我正在使用的发现文件:

https://onenote.officeapps-df.live.com/hosting/discovery

Link查看word文件:

<form id="office_form" name="office_form" target="office_frame"
  action="https://word-view.officeapps-df.live.com/wv/wordviewerframe.aspx?ui=nb-NO&rs=nb-NO&dchat=1&IsLicensedUser=1&WOPISrc=http%3A%2F%2F138.68.127.245%3A8082%2Fcontext%2Fwopi%2Ffiles%2Fxyz" method="post">
  <input name="access_token" value="something" type="hidden"/>
  <input name="access_token_ttl" value="0" type="hidden"/>
</form>

感谢任何帮助! 当然,我写这篇文章时我的服务器可用。

您必须是 Office 365 Cloud Storage Partner Program to be able to use the MS discovery URLs and the WOPI clients in general. Your domain has to be added to the WOPI domain allow list(受信任域列表)的成员,这只能由 Microsoft 完成。

如果您不是该计划的成员,您可以自己托管一个 WOPI 客户端。您可以在 Office Online Server 2016 和 Office Web Apps 2013 之间进行选择。两者都可以通过 MSDN 获得。