Need a hand with design a question

M

Mike

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.
 
B

Bojidar Alexandrov

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
 
M

Mike

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.
 
M

Marina

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.
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top