Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remoting Data via Web Service
Message
De
10/03/2005 12:53:49
 
 
À
10/03/2005 12:14:57
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00994372
Message ID:
00994516
Vues:
19
Roy

Been giving this some more thought. I'm assuming that since you want to use a web service for data acces that, for whatever reason, you can't simply access the database server over TCP/IP. If that's the case, it's not really a matter of overriding method...it's a little deeper than that.

Remember that an mm.net business object is a composite class (the class only exists if all of the parts are there) composed of the the business object wrapper class, the business rules class, and the data access class. So your question is really how to replace the data access class with your web service. In order to do that you'll have to guarantee that the web service supports the same interface that the mm.net data access class does.

If that's not true then you'll have to implement a class that maps funtionality between the two. Then in either case you'll need to create a factory of sorts to instanciate the mm.net data access class or yours whenever your business object is instanciated.

Scott
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform