Re: Question about webservices
- From: Spam Catcher <spamhoneypot@xxxxxxxxxx>
- Date: Mon, 27 Aug 2007 14:26:44 GMT
Bert VdA <bert.vanderauwera@xxxxxxxxx> wrote in
news:1188222435.446086.287870@xxxxxxxxxxxxxxxxxxxxxxxxxxx:
Is it acceptable to create a webmethod which uses a string as
parameter that contains all the productnumbers and amount ordered,
separated by a delimitter?
I personally prefer using arrays for lists. However, on some platforms a
delimited string might be easier to generate + pass in.
Or should i create an XML Serialized custom Order class, which the
clients can use to store the data in and submit the data by calling a
function, without having to build up that string themselves.
This is my preferred method. Keep the class simple and stick to the
supported web service data types.
What do you guys say? Is it the first method acceptable in a
professional environment ?
I guess either is OK, but the object method will save you a lot of coding
(i.e. string validation, deserialization of the string, etc.)
.
- References:
- Question about webservices
- From: Bert VdA
- Question about webservices
- Prev by Date: Question about webservices
- Next by Date: Re: Securing web service
- Previous by thread: Question about webservices
- Next by thread: Re: Securing web service
- Index(es):
Relevant Pages
|