Architecture for a Webservices project

  • Thread starter Thread starter NewsGuy
  • Start date Start date
N

NewsGuy

Hello I'm concidering better ways to architecture our VB.Net Webservices
project. Below is a draft of what I thought would be a decent way to go
about it, I was wondering about other peoples thoughts. I thought maybe a
half business object half dataset approach is feasable...Im not sure...

Teir1 - WebService
wsTblClient
Method Create()
Method Read()
Method Update()
Method Delete()
Teir2 - Business Objects
boBase
Method threadsafeCreate()
Method threadsafeRead()
Method threadsafeUpdate()
Method threadsafeDelete()
boTblClient
inherits boBase
Property dsTblClient
Property bindingSource
method untypeDS
method typeDS
Teir3 - Presentation
frmBase
frmClient
inherits frmBaseNormal
property BOtblClient

Im very noobie :(
Thank you so much for your time reading
John
 
Hello NewsGuy,

and what these webservices do?


---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


N> Teir1 - WebService
N> wsTblClient
N> Method Create()
N> Method Read()
N> Method Update()
N> Method Delete()
 
Its Business System that handles doing quotes, invoices and that kind of
thing...all database driven kinda stuff...

Thanks Michael
John
 
NewsGuy said:
Hello I'm concidering better ways to architecture our VB.Net Webservices
project. Below is a draft of what I thought would be a decent way to go
about it, I was wondering about other peoples thoughts. I thought maybe a
half business object half dataset approach is feasable...Im not sure...

Teir1 - WebService
wsTblClient
Method Create()
Method Read()
Method Update()
Method Delete()
Teir2 - Business Objects
boBase
Method threadsafeCreate()
Method threadsafeRead()
Method threadsafeUpdate()
Method threadsafeDelete()
boTblClient
inherits boBase
Property dsTblClient
Property bindingSource
method untypeDS
method typeDS
Teir3 - Presentation
frmBase
frmClient
inherits frmBaseNormal
property BOtblClient

Im very noobie :(
Thank you so much for your time reading
John

Teir 1

UI

UI has reference to Presentation layer

Tier 2

Presentation or MVP Model View Presenter

Presentation has reference to Business layer

MVP consumes BL objects and methods.

Tier 3

Business Layer

Business Layer has reference Data Access layer

Method Create()
Method Read()
Method Update()
Method Delete()


Teir 4

Data Access layer

Method Create()
Method Read()
Method Update()
Method Delete()


What's the Web Service for? Is the Web service to be consumed by Windows
Desktop or ASP.Net solution.

This talks about MS Windows DNA a little bit, but there are other articles
too out on Google.

<http://www.c-sharpcorner.com/Upload...11302005054224AM/NTierDevelopmentwithMS1.aspx>


This link is about MVP you should look at the shows, and there are articles
out on Google about MVP.
MODEL-VIEW-PRESENTER

http://www.polymorphicpodcast.com/

click 'Shows'

click 'Design Patterns Bootcamp: Model View * Patterns*

view parts 1-5

Sorry man, because I am going to be blunt about it. What you have going on
there up above for architecture is some kind of a mess.
 
Mr. Arnold said:
Teir 1

UI

UI has reference to Presentation layer

Tier 2

Presentation or MVP Model View Presenter

Presentation has reference to Business layer

MVP consumes BL objects and methods.

Tier 3

Business Layer

Business Layer has reference Data Access layer

Method Create()
Method Read()
Method Update()
Method Delete()


Teir 4

Data Access layer

Method Create()
Method Read()
Method Update()
Method Delete()


What's the Web Service for? Is the Web service to be consumed by Windows
Desktop or ASP.Net solution.

This talks about MS Windows DNA a little bit, but there are other articles
too out on Google.

<http://www.c-sharpcorner.com/Upload...11302005054224AM/NTierDevelopmentwithMS1.aspx>


This link is about MVP you should look at the shows, and there are
articles out on Google about MVP.
MODEL-VIEW-PRESENTER

http://www.polymorphicpodcast.com/

click 'Shows'

click 'Design Patterns Bootcamp: Model View * Patterns*

view parts 1-5

Sorry man, because I am going to be blunt about it. What you have going on
there up above for architecture is some kind of a mess.

lol :) Yeah thats cool, I realise its not good. Its far better being
blunt...Trying to feel my way through, its hard to find a good book on
architecture...so many different ways of doing things...

Im taking over a project that has no kind of layers, im a noob, but I know
what is done Im really concerned about...it works well for now...but
maintanance...urrrrgg......he's a cut and paster :(

The webservice is to be consumed by windows desktop, and possibly down the
track an asp.net website...

Thanks for the info and links, I'll research up on them...and I'll no doubt
be back with questions :)
Thanks heaps for your your time...I really appreciate it...
John
 
It is for now...but not in the long run...so I dont think thats really an
option...it will all be dotnet tho...

I'll scope out the app and see how I go with it...Im sure it'll lead me
somewhat in the right direction....

Thank You!
John
 
NewsGuy said:
It is for now...but not in the long run...so I dont think thats really an
option...it will all be dotnet tho...

I'll scope out the app and see how I go with it...Im sure it'll lead me
somewhat in the right direction....

If you want to learn about making frameworks and architecture that use a Web
service, then I suggest that you get one of these two books, put the
framework together and put the project together that uses the framework. I
am not saying you have to use the CSLA framework in your project. But the
fact that you went through that book will give you a good understanding of
how to do things right out of the gate.

http://www.lhotka.net/Default.aspx
 
That's the beauty of WCF.

You can expose the functionality at a later time to java, asp, anything that
does webservices.

But you have a route for dotnet to dotnet as well.
 
Back
Top