ASP.NET Web Service - Passing a base object with list/collection?
Posted
by schooner
on Stack Overflow
See other posts from Stack Overflow
or by schooner
Published on 2010-04-09T10:58:28Z
Indexed on
2010/04/09
11:43 UTC
Read the original article
Hit count: 347
ASP.NET
|web-services
We need to create a simple web service in ASP.NET that can be called from PHP or other languages. This in turn will be used to update records in a database for an item submission.
The core part is fairly simple, we have a base set of fields for the object - first name, last name, birth date, city, etc. In addition however we need to accept a list of items associated with that object that can range from 0-n. Jan 1 2009, ABC May 1 2010, 123 Jun 30 2010, XXXXX
What would be the best way to structure this so it can be easily passed to the ASP.NET web service and processed as a single call for the entire object? Would passing the list of items as a single delimted string be a wise approach? Ex: Jan 1 2009, ABC|May 1 2010, 123|Jun 30 2010, XXXXX
© Stack Overflow or respective owner