Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remoting Data via Web Service
Message
From
10/03/2005 12:53:49
 
 
To
10/03/2005 12:14:57
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00994372
Message ID:
00994516
Views:
18
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform