PC Review


Reply
Thread Tools Rate Thread

Data Repository Class Vs WebService

 
 
Dave Johnson
Guest
Posts: n/a
 
      17th Dec 2005
My ASP.net 1.1 online cinema reservation system is Developed in 3 Tiers:
1-DataAccessTier "Data Repository Class"
2-Business Tier "Set of Business Classes"
3-Presentation Tier "set of WebUserControls & aspx pages"

if i want to make a WebService that enables its users to interact with
the system, In the search for the ultimate Architecture, Should the
Design be:

1- Connect the WebService to my DAL and my Data Repository class
interact with the database through the Webservice?
OR
2- Remove the Data Repository Class and use the WebService as my way to
connect to the database?

OR

there is any other Better Solutions from your Previous Experiences ?????

Please if you have the Experience to make a good guidance in this
particular problem try to suggest different approaches by stating the
Advantages of this approach on the other as a proof that this is BETTER
than the other. I am sure it’s a common problem as i am new to
webservices and there is a Better approaches than what I thought about.

“What is the BEST way to Do IT?”

Thanks


Sharing makes All the Difference

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
 
Reply With Quote
 
 
 
 
Sahil Malik [MVP C#]
Guest
Posts: n/a
 
      17th Dec 2005
First Q - why do you need all 3 tiers?

Assuming you've asked yourself that question,

> 1- Connect the WebService to my DAL and my Data Repository class
> interact with the database through the Webservice?
> OR
> 2- Remove the Data Repository Class and use the WebService as my way to
> connect to the database?


Neither.

The purpose for WebServices is to create loose coupling between isolated
peices of functionality in your application - this gives you flexibility as
your application grows. The trade off of loose coupling is lower control,
more unexpected crap, and frankly suckier performance.

The place for webservices is not at your DAL - where performance is tight
coupling is critical.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________________


"Dave Johnson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My ASP.net 1.1 online cinema reservation system is Developed in 3 Tiers:
> 1-DataAccessTier "Data Repository Class"
> 2-Business Tier "Set of Business Classes"
> 3-Presentation Tier "set of WebUserControls & aspx pages"
>
> if i want to make a WebService that enables its users to interact with
> the system, In the search for the ultimate Architecture, Should the
> Design be:
>
> 1- Connect the WebService to my DAL and my Data Repository class
> interact with the database through the Webservice?
> OR
> 2- Remove the Data Repository Class and use the WebService as my way to
> connect to the database?
>
> OR
>
> there is any other Better Solutions from your Previous Experiences ?????
>
> Please if you have the Experience to make a good guidance in this
> particular problem try to suggest different approaches by stating the
> Advantages of this approach on the other as a proof that this is BETTER
> than the other. I am sure it's a common problem as i am new to
> webservices and there is a Better approaches than what I thought about.
>
> "What is the BEST way to Do IT?"
>
> Thanks
>
>
> Sharing makes All the Difference
>
> --
> Sent via .NET Newsgroups
> http://www.dotnetnewsgroups.com



 
Reply With Quote
 
Dave Johnson
Guest
Posts: n/a
 
      17th Dec 2005
i thought about building a webservice that share the same Interface of
the Data Repository Class(DAL)

so everyone can further build system that connects to Cinema Database
and get seat avaiability and performances time,date, etc


does that makes sense?

Sharing makes All the Difference

--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB Class v WebService ThatsIT.net.au Microsoft ASP .NET 5 7th Jun 2007 11:23 PM
Creating a new Class over a webService =?Utf-8?B?U3RldmU=?= Microsoft Dot NET 1 26th Jan 2006 02:46 PM
Data Repository Class & Inheritance Question Dave Johnson Microsoft Dot NET 3 11th Dec 2005 06:45 PM
Data Repository Class & OOP Inheritance Dave Johnson Microsoft ADO .NET 1 11th Dec 2005 12:47 PM
facade classes and Howto use the Data Repository Class Dave Johnson Microsoft Dot NET Framework 0 11th Dec 2005 11:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:21 AM.