validation - 如何构建WOPI验证应用程序

标签 validation onenote ms-wopi

http://wopi.readthedocs.io/en/latest/build_test_ship/validator.html
根据本文档,我们需要构建一些 HTML 主机页面。

在这个文档中,他们提到了一个我没有完全理解的点

The simplest way to use the validation application is to use the view action. To use the view action hosts should treat .wopitest files the same way other Office documents are treated. In other words, hosts should do the following:

Launch a host page pointed at the .wopitest file. Ideally, this should be the same host page used to host regular Office Online sessions. This will allow the validation application to test things like PostMessage and do some validation on the way the Office Online iframe was loaded.



什么是 .wopitest 文件以及我需要做什么,任何人都可以指导我吗?请逐步解释

最佳答案

它们意味着您必须以与调用任何其他操作相同的方式调用该操作(在发现中查找操作 url 等)。
例如,当您想打开一个.docx 进行查看时,您查看discovery.xml 并发现您必须调用https://word-view.officeapps-df.live.com/wv/wordviewerframe.aspx ?”,当然,您必须为该操作准备好 Rest 服务(checkFileInfo 等),并且 WOPISrc 指向一个实际上是 .docx 的文件。好吧,验证应用程序完全相同,但是您应该调用 WopiTest 应用程序而不是 Word 应用程序(在发现中)并且您生成的 WOPISrc 应该指向一个名为“xxxx.wopitest”而不是“xxxx.docx”的文件。就是这样!;)

关于validation - 如何构建WOPI验证应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38148006/

相关文章:

wpf - 如何在 WPF 程序中使用 IDataErrorInfo.Error?

java - 嵌套类列表的 Spring 验证

c# - 如何用C#导出Onenote所有页面到mht文件

ios - 如何在单个 OneNote 页面上传多张图片?

c# - Nodejs 中的 WOPI 主机实现?

javascript - 当输入字段为空时如何防止面板转到下一个面板

Jquery 验证插件防止验证时重复提交

c# - Onenote开发

c# - WOPI 主机实现,试图在 iframe asp.net mvc 中呈现文档

javascript - 用于在 Web 应用程序的 HTML 上实现 PowerPoint 查看器的选项(除了嵌入提供的 i-frame 标记之外)