Architecture for a Webservices project

Architecture for a Webservices project

am 29.10.2007 10:43:25 von 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

Re: Architecture for a Webservices project

am 29.10.2007 11:08:06 von nemtsev

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()

Re: Architecture for a Webservices project

am 29.10.2007 12:15:24 von NewsGuy

Its Business System that handles doing quotes, invoices and that kind of
thing...all database driven kinda stuff...

Thanks Michael
John

"Michael Nemtsev"; "MVP" wrote in message
news:3d9fba1a15dc58c9e886efbbc530@msnews.microsoft.com...
> 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()
>
>

Re: Architecture for a Webservices project

am 29.10.2007 12:21:56 von MR. Arnold

"NewsGuy" wrote in message
news:fg49um0ura@news5.newsguy.com...
> 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.




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.

Re: Architecture for a Webservices project

am 29.10.2007 14:13:53 von NewsGuy

"Mr. Arnold" wrote in message
news:eZosB4hGIHA.6068@TK2MSFTNGP02.phx.gbl...
>
> "NewsGuy" wrote in message
> news:fg49um0ura@news5.newsguy.com...
>> 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.
>
>
>
>
> 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

Re: Architecture for a Webservices project

am 29.10.2007 16:02:08 von sloan

Take a look at this:

http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!1 58.entry?wa=wsignin1.0


This is WCF.

WCF would allow you to "host" your code via a webservice if need be.
However, you'ld have the freedom to host it via tcp as well. Or other
options.

My question is ... is your winforms application the only client using these
services?
If so, then definately look at the setup above.

This is what I call a "NLayered AND NTiered" example.





"NewsGuy" wrote in message
news:fg49um0ura@news5.newsguy.com...
> 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

Re: Architecture for a Webservices project

am 30.10.2007 09:05:02 von NewsGuy

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

"sloan" wrote in message
news:%23ARGuyjGIHA.5328@TK2MSFTNGP05.phx.gbl...
> Take a look at this:
>
> http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!1 58.entry?wa=wsignin1.0
>
>
> This is WCF.
>
> WCF would allow you to "host" your code via a webservice if need be.
> However, you'ld have the freedom to host it via tcp as well. Or other
> options.
>
> My question is ... is your winforms application the only client using
> these services?
> If so, then definately look at the setup above.
>
> This is what I call a "NLayered AND NTiered" example.
>
>
>
>
>
> "NewsGuy" wrote in message
> news:fg49um0ura@news5.newsguy.com...
>> 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
>
>

Re: Architecture for a Webservices project

am 30.10.2007 09:58:48 von MR. Arnold

"NewsGuy" wrote in message
news:fg6oi202031@news3.newsguy.com...
> 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

Re: Architecture for a Webservices project

am 30.10.2007 16:55:35 von sloan

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.



"NewsGuy" wrote in message
news:fg6oi202031@news3.newsguy.com...
> 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
>
> "sloan" wrote in message
> news:%23ARGuyjGIHA.5328@TK2MSFTNGP05.phx.gbl...
>> Take a look at this:
>>
>> http://sholliday.spaces.live.com/blog/cns!A68482B9628A842A!1 58.entry?wa=wsignin1.0
>>
>>
>> This is WCF.
>>
>> WCF would allow you to "host" your code via a webservice if need be.
>> However, you'ld have the freedom to host it via tcp as well. Or other
>> options.
>>
>> My question is ... is your winforms application the only client using
>> these services?
>> If so, then definately look at the setup above.
>>
>> This is what I call a "NLayered AND NTiered" example.
>>
>>
>>
>>
>>
>> "NewsGuy" wrote in message
>> news:fg49um0ura@news5.newsguy.com...
>>> 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
>>
>>
>