Large Web Service ... How to Organize?

Discussion in 'ASP .Net' started by Guest, Feb 12, 2008.

  1. Guest

    Guest Guest

    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.

    Guest, Feb 12, 2008
    1. Advertisements

  2. Peter Bromberg [C# MVP], Feb 13, 2008
    1. Advertisements

  3. Guest

    Lars Guest

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

    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
    | (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
    Lars, Feb 13, 2008
  4. Guest

    Guest Guest

    That doesn't really answer my question - so I should have one big ASMX page
    with all my web service functions?
    Guest, Feb 13, 2008
  5. Guest

    Guest Guest

    I'm building a web service not a web site ;-)
    Guest, Feb 13, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.