RE: [flexcoders] Examining web service results structure
Sure. Are you using e4x? Post your WebService tag declaration. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Tuesday, January 02, 2007 2:30 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Examining web service results structure Hey Tracy, Can you elaborate more on exactly how you would do this ? sample snippet. You gave me the same advice in my attempt to count the records returned from a request. Thanks Ben Marchbanks Tracy Spratt wrote: > Don't bind directly to lastResult. Instead, use a result handler > function, to which you have passed the event object. In that fuction, > you can examine event.result at will. > > > > If you are using resultFormat="e4x", use toXMLString(). If you are using > the default object resultFormat, then you need to find out how to dump > the object. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of fgwenger > Sent: Tuesday, January 02, 2007 1:37 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] Examining web service results structure > > > > I wondered if there was a way in Flex debug or somewhere in Flex to > see how it sees the object returned from a web service call. I am > consuming a web service that I don't have control of and it is sending > back some structure. I can't tell what it looks like to Flex, so I > can't get the DataGrid's DataProvider path correct, e.g. > MyWS.MyMethod.LastResult then what? > > Thanks. > > > >
Re: [flexcoders] Examining web service results structure
Hey Tracy, Can you elaborate more on exactly how you would do this ? sample snippet. You gave me the same advice in my attempt to count the records returned from a request. Thanks Ben Marchbanks Tracy Spratt wrote: > Don't bind directly to lastResult. Instead, use a result handler > function, to which you have passed the event object. In that fuction, > you can examine event.result at will. > > > > If you are using resultFormat="e4x", use toXMLString(). If you are using > the default object resultFormat, then you need to find out how to dump > the object. > > > > Tracy > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of fgwenger > Sent: Tuesday, January 02, 2007 1:37 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Examining web service results structure > > > > I wondered if there was a way in Flex debug or somewhere in Flex to > see how it sees the object returned from a web service call. I am > consuming a web service that I don't have control of and it is sending > back some structure. I can't tell what it looks like to Flex, so I > can't get the DataGrid's DataProvider path correct, e.g. > MyWS.MyMethod.LastResult then what? > > Thanks. > > > >
RE: [flexcoders] Examining web service results structure
Don't bind directly to lastResult. Instead, use a result handler function, to which you have passed the event object. In that fuction, you can examine event.result at will. If you are using resultFormat="e4x", use toXMLString(). If you are using the default object resultFormat, then you need to find out how to dump the object. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 1:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Examining web service results structure I wondered if there was a way in Flex debug or somewhere in Flex to see how it sees the object returned from a web service call. I am consuming a web service that I don't have control of and it is sending back some structure. I can't tell what it looks like to Flex, so I can't get the DataGrid's DataProvider path correct, e.g. MyWS.MyMethod.LastResult then what? Thanks.