Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: AutoComplete -- DropDowns Pin
Chris Rickard21-Jun-02 14:29
Chris Rickard21-Jun-02 14:29 
GeneralRe: AutoComplete -- DropDowns Pin
Nish Nishant21-Jun-02 15:08
sitebuilderNish Nishant21-Jun-02 15:08 
GeneralRe: AutoComplete -- DropDowns Pin
leppie21-Jun-02 22:36
leppie21-Jun-02 22:36 
GeneralRe: AutoComplete -- DropDowns Pin
Nish Nishant21-Jun-02 23:13
sitebuilderNish Nishant21-Jun-02 23:13 
GeneralWebService Architecture Pin
Steve Severance21-Jun-02 8:45
Steve Severance21-Jun-02 8:45 
GeneralRe: WebService Architecture Pin
SimonS22-Jun-02 0:42
SimonS22-Jun-02 0:42 
GeneralRe: WebService Architecture Pin
Steve Severance22-Jun-02 6:56
Steve Severance22-Jun-02 6:56 
GeneralRe: WebService Architecture Pin
SimonS25-Jun-02 2:26
SimonS25-Jun-02 2:26 
OK. Here's my take on the web services architecture thing.

All a web service (ws) really is, is a class that happens to be exposed to the web. Ideally, in my opinion, the ws should just wrap an existing class. So, ws X would wrap (and expose) class X.
My reasoning behind this is because of 2 primary factors: performance and reusability.
Performance - if ws X is the sole provider of functionality X then another class on the same machine will have to take the performance hit of calling a ws (marshalling, HTTP, address resolution, etc...).
Reusability - follows on from previous point. Also, I view a ws to be a requirement of a class and not necessary a point of functionality itself.

The thing to remember is that a ws is just a class. So, if your class/ws is too large, then chances are that it hasn't been factorised properly. One school of thought (Bruce Eckell, I think) is to design your class on a small flash card. The premise being that if you require more physical space on the card to jot down member and attribute names then you should use another card/class. I think this is a pretty nice idea! Thanks, Bruce.

An idea would be to remove the concept of web services from your initial design and rather give a special attribute to the classes that need to be exposed to the web/intranet. This can later be enhanced into a decorator class of soughts.

Your idea of having ASP.NET as your front end that consumes web services is a valid design. What would the reason be to expose web services though?
If your reason is to expose a subset of functionality for other apps to use, then cool.
The architecture I'm working on at the moment uses ASP.NET pages (very light) that consume ws as per your idea. There was a very specific reason for it though. The entire backend (ws included) will be migrated to a J2EE & ws system in a few years time and we wanted to prevent a[nother] rewrite for that.

As far as COM+ is concerned: COM+/MTS no longer gives you the reduction in object creation time that it would do for pure COM components, so that's minus 1 point. Hopefully, this will change with COM+ 2 (?) in the .NET servers.
The reasons that COM+ might be useful in a .NET world is for things like transactions. Will this be a requirement for your application?

If you are keen to continue this offline, then either MSN Messenger/mail me at simon_stewart@hotmail.com.



Cheers,
Simon

"Sign up for a chance to be among the first to experience the wrath of the gods.", Microsoft's home page (24/06/2002)

GeneralExecuting Batch Files from .NET Pin
Aisha21-Jun-02 7:10
Aisha21-Jun-02 7:10 
GeneralWriting a MIME Email Attachment to a Binary File Pin
Paul Watson21-Jun-02 7:03
sitebuilderPaul Watson21-Jun-02 7:03 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Christopher Lord21-Jun-02 13:42
Christopher Lord21-Jun-02 13:42 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Paul Watson22-Jun-02 2:35
sitebuilderPaul Watson22-Jun-02 2:35 
GeneralRe: Writing a MIME Email Attachment to a Binary File Pin
Nish Nishant21-Jun-02 18:20
sitebuilderNish Nishant21-Jun-02 18:20 
QuestionASPNET local user = acceptable performance??? Pin
rchildress21-Jun-02 2:58
rchildress21-Jun-02 2:58 
AnswerRe: ASPNET local user = acceptable performance??? Pin
Andy Smith21-Jun-02 12:16
Andy Smith21-Jun-02 12:16 
Generalmore efficient to get right directory's fullname Pin
ygxdha21-Jun-02 1:33
ygxdha21-Jun-02 1:33 
GeneralRe: more efficient to get right directory's fullname Pin
Chris Rickard21-Jun-02 4:16
Chris Rickard21-Jun-02 4:16 
QuestionDirectX and C# ? Pin
20-Jun-02 22:40
suss20-Jun-02 22:40 
AnswerRe: DirectX and C# ? Pin
21-Jun-02 6:10
suss21-Jun-02 6:10 
GeneralRe: DirectX and C# ? Pin
Not Active21-Jun-02 6:23
mentorNot Active21-Jun-02 6:23 
AnswerRe: DirectX and C# ? Pin
Not Active21-Jun-02 6:25
mentorNot Active21-Jun-02 6:25 
GeneralRe: DirectX and C# ? Pin
SimonS22-Jun-02 0:46
SimonS22-Jun-02 0:46 
GeneralRe: DirectX and C# ? Pin
Anonymous11-Sep-02 12:55
Anonymous11-Sep-02 12:55 
GeneralRe: DirectX and C# ? Pin
leppie12-Sep-02 5:28
leppie12-Sep-02 5:28 
GeneralMy IE cannot open *.asmx file :( Pin
Feng Qin20-Jun-02 22:15
Feng Qin20-Jun-02 22:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.