Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

Large Web Service ... How to Organize?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Spam Catcher - 12 Feb 2008 14:57 GMT
Hi all,

I'm in the process of designing a large web service which will be a remote
API into our application. There web service will cover ~10 components and
will have >100 functions.

Does anyone have any links to some design patterns I can use?

Should I put all my functions into one ASMX file? Or should I use separate
ASMX files?

Should I create a a single function and submit a document for processing?
Or a DTO? Or create a single function for each action I need?

These are the type of questions I have... any help would be appreciated.

Thanks!

Signature

spamhoneypot@rogers.com (Do not e-mail)

Peter Bromberg [C# MVP] - 13 Feb 2008 01:24 GMT
Put your business logic into class libraries, which are called by the
WebMethods in your ASMX codebehind page.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> Hi all,
>
[quoted text clipped - 13 lines]
>
> Thanks!
Lars - 13 Feb 2008 07:56 GMT
Hi

> Put your business logic into class libraries, which are called by the
> WebMethods in your ASMX codebehind page.

Make as little as possible of the code in the js or vb pages for the aspx
files.

Make mulit level of the site. For example.

User interface (This part should generaly only have to deal with design of
the page not data or text)
   |
Collect data from the Data interface. (Get the controlls from the UI and
fill them with data)
Write the information in plain HTML or XML and let the UI deside how to show
it.
   | (Database independant information)
Database Interface (collect the data from the stored procedures)
   | (No SQL commands only calls to Stored Procedures)
Stored Procedures (within the database)
   | (SQL commands to the database)

Now when you need to change the apperance of the page only swap the UI.
If you wan to change the database you only have to replace the lowest two
layers.

> -- Peter
> Site: http://www.eggheadcafe.com
[quoted text clipped - 20 lines]
>>
>> Thanks!
Spam Catcher - 13 Feb 2008 17:04 GMT
> Hi
>
[quoted text clipped - 5 lines]
>
> Make mulit level of the site. For example.

I'm building a web service not a web site ;-)

Signature

spamhoneypot@rogers.com (Do not e-mail)

Spam Catcher - 13 Feb 2008 17:04 GMT
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
<pbromberg@yahoo.NoSpamMaam.com> wrote in
news:8FAD75B2-DA7A-420A-922B-B9B4EB5B94A7@microsoft.com:

> Put your business logic into class libraries, which are called by the
> WebMethods in your ASMX codebehind page.

That doesn't really answer my question - so I should have one big ASMX page
with all my web service functions?

Signature

spamhoneypot@rogers.com (Do not e-mail)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.