WOPI Host not called

只谈情不闲聊 提交于 2019-12-10 10:17:01

问题


I would like to know why is my WOPI Host not being called. I launch my host through an HTML page similar to:

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

For the testing purposes I am handling just one file.

The discovery file I am using:

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

Link for viewing word file:

<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>

Any help appreciated! Of course my server is available at the time I am writing this.


回答1:


You have to be a member of the 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 (a list of trusted domains), this can only be done by Microsoft.

If you are not a member of that program, you can host a WOPI client on your own. You can choose between the Office Online Server 2016 and Office Web Apps 2013. Both are available through MSDN.



来源:https://stackoverflow.com/questions/39772584/wopi-host-not-called

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!