If you set makeObjectsBindable="false" and resultFormat="object" in the
webservice tag you should get arrays of objects.

<mx:WebService id="ws" resultFormat="object" makeObjectsBindale="false" />

- Kelly 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of someguy7_7
Sent: Monday, July 03, 2006 2:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Beta 3 WebService Result

I am finally getting back to this issue. I have since moved to Flex 2.0
released version. Is there no way for me to use resultFormat="object" if the
resulting data contains Object Arrays? Or in flex 2.0 are we required to use
e4x?  

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Either way,
> 
> Change the resultFormat:
> 
> <mx:WebService id="ws" resultFormat="e4x"/>
> 
> Or, cast lastResult to an XML var.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "someguy7_7" <bmcpheeters@>
> wrote:
> >
> > Do you mean change the operation.resultFormat to "xml"? Or somehow 
> > cast the lastResult of the operation to a variable typed to "XML"?
> > 
> > Brian
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" <TimHoff@> wrote:
> > >
> > > The default return type from a web service call is object().  If
> you
> > > cast this to XML, you should be able to get the same
> funtionality.
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, "Brian McPheeters" 
> > > <bmcpheeters@> wrote:
> > > >
> > > > We are porting an application from 1.5 to 2.0 Beta 3. The app
> > > connects
> > > > to a couple different web services to populate a ListView. In
> the
> > > 1.5
> > > > version the result from the web service is an object that I
> can
> > > pull
> > > > data for the list view from using the result xml element
> names. 
> > > >  
> > > > Ex: currentitem.category, currentitem.categoryid
> > > >  
> > > > But in 2.0 Beta 3 the result is interpreted by flex as an
> Array.
> > > > currentitem = Array (@38cceb21). This causes me to index into
> the
> > > array
> > > > to get the values. 
> > > >  
> > > > Ex: currentitem[0],currentitem[1]
> > > >  
> > > > Both apps are using the exact same webservices. Do I need to
> > > somehow
> > > > cast the result from the webservice to an object? Any ideas on
> > > what is
> > > > causing this and how to get it so I can reference by element
> name
> > > in 2.0
> > > > Beta 3?
> > > >  
> > > > Thanks
> > > > Brian
> > > >
> > >
> >
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to