I assume you mean set the resultFormat in the <operation>. I have set that as well as makeObjectsBindable="false" in the <webservice> and <operation> but I still comes back as an array of complex strings. If I look at the last result in the debugger it looks like this.
item=Array(@12345) [0]=mx.rpc.xml.ComplexString(@23423) [1]=mx.rpc.xml.ComplexString(@745545) I am expecting something like item=Object(@12345) [0]=category(@23423) [1]=categoryid(@745545) Then I will be able to reference it by lastResult.items.item.category instead of lastResult.items.item[0]. Any ideas on why I am getting complex strings? Is this something to do with how my wsdl is structured? Thanks --- In flexcoders@yahoogroups.com, "Kelly Birr" <[EMAIL PROTECTED]> wrote: > > 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" <TimHoff@> 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 --------------------~--> See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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/