Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Wed, 02 Jul 2008 11:19:33 -0400,    group: microsoft.public.xml        back       


Deserialize an ArrayList   
I have a Web Service which returns an ArrayList. According to 
http://forums.msdn.microsoft.com/en-US/asmxandxml/thread/9b6c1f9d-7021-437e-8bc0-b3e9bcfe834e/
Deserialize won't work on an ArrayList.

Any suggestions how to get around this?
date: Wed, 02 Jul 2008 11:19:33 -0400   author:   sh

Re: Deserialize an ArrayList   
"sh"  wrote in message 
news:Qd6dnaeCZcwbAfbVnZ2dnUVZ_vudnZ2d@earthlink.com...
> I have a Web Service which returns an ArrayList. According to 
> http://forums.msdn.microsoft.com/en-US/asmxandxml/thread/9b6c1f9d-7021-437e-8bc0-b3e9bcfe834e/
> Deserialize won't work on an ArrayList.
>
> Any suggestions how to get around this?
It can serialise/deserialise an ArrayList. It cannot cope with an Array of 
ArrayLists.

-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name
date: Thu, 3 Jul 2008 10:22:58 +0100   author:   Joe Fawcett am

Re: Deserialize an ArrayList   
It can't cope with the following. Is this an Array of ArrayLists?

<?xml version="1.0" encoding="utf-8" ?>
  <ArrayOfOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://aaa.com/">
   <Order>
     <OrderNo>505913</OrderNo>
     <Carrier>WC</Carrier>
     <Rush>false</Rush>
     <Pack>true</Pack>
   </Order>
   <Order>
     <OrderNo>505983</OrderNo>
     <Carrier>PIT</Carrier>
     <Rush>false</Rush>
     <Pack>true</Pack>
   </Order>
   <Order>
     <OrderNo>506017</OrderNo>
     <Carrier>NEP</Carrier>
     <Rush>false</Rush>
     <Pack>true</Pack>
   </Order>
</ArrayOfOrder>

If it is, is there a way around it?

Joe Fawcett wrote:
> 
> 
> "sh"  wrote in message 
> news:Qd6dnaeCZcwbAfbVnZ2dnUVZ_vudnZ2d@earthlink.com...
>> I have a Web Service which returns an ArrayList. According to 
>> http://forums.msdn.microsoft.com/en-US/asmxandxml/thread/9b6c1f9d-7021-437e-8bc0-b3e9bcfe834e/ 
>>
>> Deserialize won't work on an ArrayList.
>>
>> Any suggestions how to get around this?
> It can serialise/deserialise an ArrayList. It cannot cope with an Array 
> of ArrayLists.
>
date: Thu, 03 Jul 2008 11:38:10 -0400   author:   sh

Re: Deserialize an ArrayList   
No, and I have certainly coded similar serialisations. For example I have a 
user class that contains an ArrayList of Address objects. You just need to 
use the correct attributes on the members.
I will go and dig out the code.


-- 

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

"sh"  wrote in message 
news:XsGdndJXqdz-b_HVnZ2dnUVZ_uWdnZ2d@earthlink.com...
> It can't cope with the following. Is this an Array of ArrayLists?
>
> <?xml version="1.0" encoding="utf-8" ?>
>  <ArrayOfOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://aaa.com/">
>   <Order>
>     <OrderNo>505913</OrderNo>
>     <Carrier>WC</Carrier>
>     <Rush>false</Rush>
>     <Pack>true</Pack>
>   </Order>
>   <Order>
>     <OrderNo>505983</OrderNo>
>     <Carrier>PIT</Carrier>
>     <Rush>false</Rush>
>     <Pack>true</Pack>
>   </Order>
>   <Order>
>     <OrderNo>506017</OrderNo>
>     <Carrier>NEP</Carrier>
>     <Rush>false</Rush>
>     <Pack>true</Pack>
>   </Order>
> </ArrayOfOrder>
>
> If it is, is there a way around it?
>
> Joe Fawcett wrote:
>>
>>
>> "sh"  wrote in message 
>> news:Qd6dnaeCZcwbAfbVnZ2dnUVZ_vudnZ2d@earthlink.com...
>>> I have a Web Service which returns an ArrayList. According to 
>>> http://forums.msdn.microsoft.com/en-US/asmxandxml/thread/9b6c1f9d-7021-437e-8bc0-b3e9bcfe834e/
>>> Deserialize won't work on an ArrayList.
>>>
>>> Any suggestions how to get around this?
>> It can serialise/deserialise an ArrayList. It cannot cope with an Array 
>> of ArrayLists.
>>
I
date: Thu, 3 Jul 2008 18:03:41 +0100   author:   Joe Fawcett am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us