WOPI discovery is a process which helps the WOPI server discover a WOPI client by requesting the discovery XML from an online office. WOPI hosts use the discovery XML to specify how to interact with the online office. The requests are sent to the address where the documentserver is the name of the server with the ONLYOFFICE Docs installed.
WOPI discovery actions
The action element of the discovery XML provides the important characteristics about the online office. This element represents:
<action name="edit" ext="docx" requires="locks,update" urlsrc="https://word-edit.officeapps.live.com/we/wordeditorframe.aspx? ui=en-us&thm=1&"/>
Discovery query parameters are the parameters that can be exposed by file storage in the urlsrc attribute to customize the editor behavior. For example, change a language, theme or chat.
Please pay attention to the discovery.xml structure of the Collabora connectors. They open the editor via the MIME-type which is included in the app element of the following structure:
<app name="application/msword"> <action default="true" ext="" name="edit" urlsrc="http://126.96.36.199:9980/loleaflet/ba528af/loleaflet.html?"/> </app>
The app element like this:
<app name="Word" favIconUrl="http://localhost:8000/web-apps/apps/documenteditor/main/resources/img/favicon.ico">
is ignored by the Collabora connectors.