Re: Big-Picture Question (Web Services, RegNow)
- From: Laurent Bugnion <galasoft-lb@xxxxxxxxxx>
- Date: Sat, 18 Nov 2006 21:06:55 +0100
Hi,
Jonathan Wood wrote:
Thanks for the input. I'm contacting RegNow to see why this is not an option.
BTW, does anyone know of a way to return multiple fields from a Web service? I'm only able to see how to return a single field (the function's return value).
Thanks.
The constraints for web methods are exactly the same as for "normal" methods: One return value only, but it can be anything including array (if you have many "fields" of the same type), or an object including different properties.
All public properties/attributes of the returned object will be serialized and transmitted.
However, if you can, I recommend to keep it simple. First you'll avoid serialization problems, and second, remember that web services clients are not only C#, but could be anything, including JavaScript (it's quite easy to make a web service call using JavaScript). For example, instead of transmitting a DateTime object, why not transmit a string representation of that DateTime... you get the idea.
HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
.
- Follow-Ups:
- Re: Big-Picture Question (Web Services, RegNow)
- From: Jonathan Wood
- Re: Big-Picture Question (Web Services, RegNow)
- References:
- Big-Picture Question (Web Services, RegNow)
- From: Jonathan Wood
- Re: Big-Picture Question (Web Services, RegNow)
- From: Mark Rae
- Re: Big-Picture Question (Web Services, RegNow)
- From: Jonathan Wood
- Big-Picture Question (Web Services, RegNow)
- Prev by Date: Inline
- Next by Date: Re: Inline
- Previous by thread: Re: Big-Picture Question (Web Services, RegNow)
- Next by thread: Re: Big-Picture Question (Web Services, RegNow)
- Index(es):
Relevant Pages
|
Loading