Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WOPI host and WOPI client example

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.

like image 847
user2846382 Avatar asked Jun 22 '16 08:06

user2846382


People also ask

What is a WOPI host?

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.

What is WOPI discovery?

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.


1 Answers

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:

  • WOPI host - SharePoint
  • WOPI client - Office Web Apps (Office Online Server)

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.

like image 148
rocky Avatar answered Sep 28 '22 01:09

rocky