Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which pattern to use
Message
From
16/06/2005 13:10:01
 
 
To
16/06/2005 10:57:59
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01023978
Message ID:
01024041
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform