Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Both Database and Web Service
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01225440
Message ID:
01226096
Views:
20
Fred,

>How can I best go about setting up access to a local SQL database and a remote Web Service within the same project? Can business objects for both coexist in the same application and interact with one another?

Absolutely...the key is specifying which business objects access local data and which access web services. Rather than having an application-level switch (as described in the Dev Guide) you can a different switch, or business object setting that specifies whether the objects should access data locally or via web services. If they access local data, they should instantiate a local data access class. If they should access data via web services, they need to instantiate a web service data access class.

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform