Need a hand with design a question

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Need a hand with design a question

    Here's the story.

    I have a large database which has a lot of columns. I am creating a web
    service for clients to use to insert information into this database. All
    the clients are the same and are identified by a unique 4 digit number.
    Depending on the client, different information must or must not be inserted
    into the database.

    Here is my question.

    With web services which don't support funtion overloading, should I create a
    bunch of webmethods with different names all of which accept different
    paramerters, or should I create one funtion that accepts all parameters?
    Based on the id they pass in I can check to see if they are passing in the
    right parameters.

    Am I just looking at this the wrong way? Is there a easier or more
    efficient way I should look at?

    Any help is greatly appreciated.

    Mike R.


    Mike Guest

  2. Similar Questions and Discussions

    1. Anybody kind enough to hold my hand through my first web banner design?
      Hi there, I have always designed for print in the past but a client wants me to produce a web banner. They say 'O it's just like designing for...
    2. Nav Bar button design question
      I have seen buttons on a nav bar with a rollover effect that looks like the button was folded back on the corner on the mouse roll over. What is the...
    3. Design Question
      here's a design question or two: 1) let say i have a a hierarcy of user controls for a nav bar. The first one is a general bar (reports,...
    4. Question: 2nd hand value for EOS 1v
      Hi guys, What do you think is the second hand value for a 1v in mint condition?
    5. Does RANK and weightage goes hand in hand
      Hi, ranking is determined by a formula that accounts for the frequency of the word in the document/row compared with the frequency of the word...
  3. #2

    Default Re: Need a hand with design a question

    If you have different number and type of parameters for your clients that
    means that you actually have different type of clients! So you must have
    different functions.
    It sounds strange that all your clients are different. Please explain more.

    Bojidar Alexandrov
    "Mike" <mraeNOSPAM@NOSPAMATALLcalibrus.com> wrote in message
    news:uKr%23$UASEHA.644@tk2msftngp13.phx.gbl...
    > Here's the story.
    >
    > I have a large database which has a lot of columns. I am creating a web
    > service for clients to use to insert information into this database. All
    > the clients are the same and are identified by a unique 4 digit number.
    > Depending on the client, different information must or must not be
    inserted
    > into the database.
    >
    > Here is my question.
    >
    > With web services which don't support funtion overloading, should I create
    a
    > bunch of webmethods with different names all of which accept different
    > paramerters, or should I create one funtion that accepts all parameters?
    > Based on the id they pass in I can check to see if they are passing in the
    > right parameters.
    >
    > Am I just looking at this the wrong way? Is there a easier or more
    > efficient way I should look at?
    >
    > Any help is greatly appreciated.
    >
    > Mike R.
    >
    >

    Bojidar Alexandrov Guest

  4. #3

    Default Re: Need a hand with design a question

    Well to be more specific it is one client with many different rooms. Each
    room wants to be differnet and collect different data. I have a dynamic
    website now that displays all of the different textboxs that a certian room
    needs after they login. Some of the rooms now want to use back end
    processing instead of the webpages currently out there.

    The problem is is that there can basically be a huge amount of combinations
    of data that needs to be passed in. I can simplify it and only offer x
    number of web methods to handle all of these combinations. I was just
    wondering if there is a better/different way of looking at this.

    "Bojidar Alexandrov" <bojo_do_no_spam@kodar.net> wrote in message
    news:uJpr00ASEHA.3056@TK2MSFTNGP11.phx.gbl...
    > If you have different number and type of parameters for your clients that
    > means that you actually have different type of clients! So you must have
    > different functions.
    > It sounds strange that all your clients are different. Please explain
    more.
    >
    > Bojidar Alexandrov
    > "Mike" <mraeNOSPAM@NOSPAMATALLcalibrus.com> wrote in message
    > news:uKr%23$UASEHA.644@tk2msftngp13.phx.gbl...
    > > Here's the story.
    > >
    > > I have a large database which has a lot of columns. I am creating a web
    > > service for clients to use to insert information into this database.
    All
    > > the clients are the same and are identified by a unique 4 digit number.
    > > Depending on the client, different information must or must not be
    > inserted
    > > into the database.
    > >
    > > Here is my question.
    > >
    > > With web services which don't support funtion overloading, should I
    create
    > a
    > > bunch of webmethods with different names all of which accept different
    > > paramerters, or should I create one funtion that accepts all parameters?
    > > Based on the id they pass in I can check to see if they are passing in
    the
    > > right parameters.
    > >
    > > Am I just looking at this the wrong way? Is there a easier or more
    > > efficient way I should look at?
    > >
    > > Any help is greatly appreciated.
    > >
    > > Mike R.
    > >
    > >
    >
    >

    Mike Guest

  5. #4

    Default Re: Need a hand with design a question

    I would make 1 function, that accepts 2 parameters. The first parameter is
    the ID. The second parameter is an XML document, which has all the
    information about what needs to be inserted in an XML form.

    You can then look through the DOM, and get the appropriate data depending on
    the client.

    "Mike" <mraeNOSPAM@NOSPAMATALLcalibrus.com> wrote in message
    news:uKr%23$UASEHA.644@tk2msftngp13.phx.gbl...
    > Here's the story.
    >
    > I have a large database which has a lot of columns. I am creating a web
    > service for clients to use to insert information into this database. All
    > the clients are the same and are identified by a unique 4 digit number.
    > Depending on the client, different information must or must not be
    inserted
    > into the database.
    >
    > Here is my question.
    >
    > With web services which don't support funtion overloading, should I create
    a
    > bunch of webmethods with different names all of which accept different
    > paramerters, or should I create one funtion that accepts all parameters?
    > Based on the id they pass in I can check to see if they are passing in the
    > right parameters.
    >
    > Am I just looking at this the wrong way? Is there a easier or more
    > efficient way I should look at?
    >
    > Any help is greatly appreciated.
    >
    > Mike R.
    >
    >

    Marina Guest

  6. #5

    Default Re: Need a hand with design a question

    I think what he is saying is that based on the user, the data that is
    inserted or updated will vary.

    You should create one method that takes all the parameters and the unique
    "client id". Then, on the server you should have some method that is
    capable of building the correct insert or update statement based on the id
    of the sender. This could be a method that builds a sql string or a call to
    a stored procedure that pretty much does the same thing.

    For your Web Service method, I would probably create an object which could
    be populated by the caller then passed to the handling method on the server
    side.
    charlie@nunya.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139