Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
713 views
in Technique[技术] by (71.8m points)

c# - WOPI host implementation in Nodejs?

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?

Any thoughts?

Thanks in anticipation

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.

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.

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.

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.

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.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...