I want to make my distributed application flexible on which technology to use between the UI and the BO. In a local scenario, I want the application to use .NET Remoting. In a remote scenario, Web Services should be used. Hi, Sylvain,
FWIW, I just published an article in the newest edition of CoDe magazine (July/August '05) where I cover this situation. I have a Winform piece that needs to communicate with the back-end either via remoting or web services.
I present a class that demonstrates some of the characteristics of the factory and facade patterns. It returns a generic connection object that can be cast to either a web service reference or an interface to a remoting object. Yes, interfaces are used to accomplish this. If you'd like more information on this, let me know.
If you're at DevTeach next week, I'm doing a session on building reporting apps in a distibuted environment, where I'll cover this technique - a winform app that generates a report using either web services or remoting. (My session schedule just changed today, I'm presenting on tuesday afternoon).
Kevin