I am curious if this scenario is even possible:
- .Net Windows Forms application (our product) with a couple of WCF services exposed (self hosted, for example on 'http://localhost:8000/myservice/method1'), running in elevated mode.
- A web application (from another manufacturer) on a public domain, which would communicate with our application in a two-way mode:
- web application to desktop application: during the setup of our application we register a custom protocol 'xxx' (similar to 'mailto') and set our application as a handler for this protocol. So the web application can trigger an action in our desktop application with links in the form 'href="xxx:parameters"'.
- desktop application to web application: the web application would periodically (every second for example) poll our localhost WCF services via javascript ajax calls.
Is the 2.2 option even possible? Which binding should we use for WCF services? Are there any problems with cross domain calls (from public domain to localhost)?
Edit - yes, the communication is not two-way because in our scenario the desktop application cannot directly manipulate the web application. The polling option is just an idea how to get state from desktop application to web application, so if there are better alternatives I would very much like to hear about it :)
There are a couple of other alternatives for communication between web application and desktop application (java plugins, active x for IE, firefox plugins, chrome native plugin,...) but they are very fragile regarding new versions of browsers, versions of java, version of Windows,... and you have to maintain all of them. We are looking for a option which would work on all major browsers and that the manufacturer, which is responsible for web application, would have as little work as possible.