Re: return a paired lists or arraylist from a webservice
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
- From: "Deepak Shenoy (TeamB)" <nomail@xxxxxxxxxx>
- Date: Thu, 11 May 2006 22:47:56 -0700
Eveready wrote:
I have a webservice that needs to return a paired list, such as
created by an arraylist. The problem appears to be in serlizing the
xml. Any help on how to return a paired list or arraylist would be
gratly appreciated.
You can see a returned ArrayList on a client application as an object
array. This means there isn't really a problem with the XML - it just
comes through as an array of object.
If you put this object array (object[]) into an ArrayList by running
through it with a ForEach loop you will then have an ArrayList at the
client.
(Not as clean as having an ArrayList pass through of course, but this
is one option)
--
Deepak Shenoy
http://shenoyatwork.blogspot.com
.
Relevant Pages
- Re: return a paired lists or arraylist from a webservice
... The problem appears to be in serlizing the ... You can see a returned ArrayList on a client application as an object ... This means there isn't really a problem with the XML - it just ... comes through as an array of object. ... (microsoft.public.dotnet.framework.webservices) - Re: AJAX without XML
... >> can be re-used on both the client and server. ... An array is a data structure. ... Perhaps you meant returning a DOM subtree ... > with several child elements where XML would be more appropriate. ... (comp.object) - Re: AJAX without XML
... >> can be re-used on both the client and server. ... An array is a data structure. ... Perhaps you meant returning a DOM subtree ... > with several child elements where XML would be more appropriate. ... (comp.lang.javascript) - Re: Properties vs. fields
... >> I've created a web service that sends an array of custom objects to the ... >> XML on the client and instantiate my objects these properties are ... This means that I can't bind the array of objects to a datagrid. ... (microsoft.public.dotnet.framework.aspnet.webservices) - Re: Text terminal rendering design
... it is a fundamental element of the UI design. ... The management of that array's content by the client is quite a ... The array and the terminal are more tightly tied ... to do that because of the need to map into flavors of terminals. ... (comp.object) |
|