Claudiu! Thanks again for your help...

I think what I'll do is set up a test web service with 1, 2, 3, 4, 5 levels
of nested data making sure the data is basic and correct and will test it to
see.


Thanks! :)

Nick

p.s. What country are you in?




2010/1/7 claudiu ursica <the_bran...@yahoo.com>

>
>
> It is not normal to get a good xml for 2 levels and nor for 3 or 4 levels,
> and here a really doubt that flex has an issue. So than it has to be a
> server issue. The server needs to return valid xml no matter how many nested
> levels are there. It can be an error on the server side logic or
> something... I don't know because I am not able to run cod against your
> server.
>
> C
>
> PS.
> I believe there are 2 version of that utilities. If the link I gave you
> does not work, buzz me and I'll look through my sources and try to find the
> other one. However I use that utility to talk to a web service which return
> plane objects to me. You should be able to parse that result as xml anytime.
>
> ------------------------------
> *From:* Nick Middleweek <n...@middleweek.co.uk>
> *To:* flexcoders@yahoogroups.com
> *Sent:* Thu, January 7, 2010 1:53:38 PM
> *Subject:* Re: [Spam] Re: [Spam] Re: [flexcoders] Problem Casting an
> Object to a known type
>
>
>
> Hi Claudiu, thanks for your reply.
>
> I'm not sure what you mean proper data? It is real data that we want
> returned.
>
> I will certainly look into using that Utility, thanks.
>
>
> But is this a bug in Flex? has anyone else come across this? It seems odd
> that it works with 3 levels of nested data but not 4 or 5...
>
>
> Thanks,
> Nick
>
>
>
>
>
> 2010/1/7 claudiu ursica <the_braniak@ yahoo.com <the_bran...@yahoo.com>>
>
>>
>>
>> Still you can try the utility I mentioned (http://www.darronsc hall.com/
>> weblog/2006/ 10/convert- generic-objects- into-class- instances. 
>> cfm<http://www.darronschall.com/weblog/2006/10/convert-generic-objects-into-class-instances.cfm>)
>> or fix the service on the backend to answer with proper data.
>>
>> TH,
>> Claudiu
>>
>> ------------------------------
>> *From:* Nick Middleweek <n...@middleweek. co.uk <n...@middleweek.co.uk>>
>> *To:* flexcod...@yahoogro ups.com <flexcoders@yahoogroups.com>
>> *Sent:* Wed, January 6, 2010 5:13:46 PM
>> *Subject:* Re: [Spam] Re: [flexcoders] Problem Casting an Object to a
>> known type
>>
>>
>>
>> Hi,
>>
>> Thanks for your reply...
>>
>> Our problem is that the http service isn't returning e4x or xml (even
>> though the returnResult is set to that) if the data levels are 4 or more.
>> It's coming back as untyped Objects.
>>
>> Normally we would call the HTTP Service asking for e4x, get the data back
>> in the response and pass the XML through a parser so it returns a type
>> Object.
>>
>>
>> Cheers,
>> Nick
>>
>>
>>
>>
>> 2010/1/6 claudiu ursica <the_braniak@ yahoo.com <the_bran...@yahoo.com>>
>>
>>>
>>>
>>> You should have parser/unmarshaller for the e4x/xml returned by the
>>> service and handle this situation in there. On the other hand what you are
>>> trying to achieive doesn't work like that out of the box I mean the
>>> conversion. Google for the ObjectTranslator utility for flex/as3 and use
>>> that to convert your object.
>>>
>>> HTH,
>>> C
>>>
>>
>>
>  
>

Reply via email to