Or, if you are committed to WebService:

ResultFormat = "object" causes Flex to convert the WebService SOAP xml
into a tree of dynamic objects.  This has many drawbacks and few
benefits.

 

Set resultFormat="e4x" and either use the XML directly, or wrap the
desired XMLList in an XMLListCollection, or loop over the XMLList and
build an ArrayCollection of strongly typed value objects.

 

If you go this way, be sure to inspect the result xml.  SOAP adds
several layers you will need to navigat through to get to your real
data.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Amy
Sent: Wednesday, January 28, 2009 11:47 AM
To: [email protected]
Subject: [flexcoders] Re: Setting data from web service to
ArrayCollection.

 

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Wally Kolcz" <wko...@...> wrote:
>
> Well, since this is question only contains a single example, the 
issue of not knowing is going to be more for other items in this 
project such as a list of ALL the projects, or ALL the teams, or ALL 
the users, etc. I suppose returning a single object with the logged in 
user's information is the best way to approach my login, but when it 
comes to the next items, I am still going to have the issue with not 
knowing how to capture all the information. Guess I'll have to wait and 
see.

I think you said that your resultFormat was set to "Object". That 
being the case, Flex isn't going to take that one Object and make an 
ArrayCollection out of it.

Why are you bothering with the extra hassle of WebServices anyway? Why 
not use Remoting?

 

Reply via email to