SharePoint 2013 can be configured to use an Office Web Apps (OWA) server in order to display/preview Microsoft Office documents directly within the browser. This can be seen for example when opening the callout of a document or when clicking the "new document" button.
The question is, how can I programmatically detect if SharePoint is connected to an OWA server? I didn’t find anything public on the SharePoint API.
What I am looking for is something like below methods:
However everything I found is internal and I do not want to use any reflection stuff. Does anybody have a clue, if SharePoint provides a public method indicating whether it is connected to an OWA Server?
JFYI – in case you have access to an OWA server, you can link SharePoint to it with following Cmdlet:
New-SPWOPIBinding -ServerName "officewebapps.company.com"