I am a bit confused about WOPI host and WOPI client. Can anyone tell me exactly the meaning of above 2 terms. I want to know what exactly means WOPI host (either my web application or a WOPI server on Microsoft side) and same for WOPI client.
The WOPI protocol is used by Office applications, such as Office for the web, to view and edit files that are stored in a cloud service. Thus, Office for the web is a WOPI client, while the cloud service that stores the files is a WOPI server, often referred to as a host.
WOPI discovery is the process where a WOPI host identifies Office for the web capabilities and how to set up Office for the web applications within a site. WOPI hosts use the discovery XML to determine how to interact with Office for the web. The WOPI host should cache the data in the discovery XML.
WOPI host = WOPI server = a web API that serves files to WOPI client
WOPI client = an application that is able to edit files served by WOPI host
The two communicate via MS-WOPI protocol that is described here.
Example implementations:
A typical scenario is that you want to enable your application to edit files in Word/Excel... In that case, you need to implement a WOPI host - an endpoint which the WOPI client (OWA) will talk to. Implementing such a host is described here. You can take a look at existing projects on GitHub - marx-yu's implementation using HttpListener, or mine using ASP.NET Core 3.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With