Ok, I created an example, and posted it here:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=223

Here is the description:

This is an example of how to use the call object to assign an identifier
to the results of a data service call, so that you can access that data
later.

The example uses a free stock quote WebService.  When the call is made,
we store the stock symbol in the call object.  When the call returns, we
put that stored symbol, along with the string xml results and a parsed
XML document containing the results, into an array of objects.

This array is used as the dataProvider for a list.

A DataGrid is used to display the stock information.  Its dataProvider
is the parsed resultxml of the symbol list's selectedItem, using xml
properties to navigate down to the childNodes array that holds the stock
information.  labelFunctions are used to populate the dataProvider.

Be sure to put this webservice into your flex-config.xml file:
<url>http://www.webservicex.net/*</url>

***Sample App Listing***
.....
Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, June 07, 2005 12:49 PM
To: [email protected]
Subject: RE: [flexcoders] Re: Storing Web Service Results in Unique
Arrays/Objects

Dave, where are you stuck?

Are you calling the dataservice from ActionScript? 

Are you successfully getting your data into flex, where you can inspect
it in a result handler?

This is really easier than it sounds, if you are successfully calling
and returning data in ActionScript. I plan to write an example of this,
but I can't commit to a when.


Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave
Sent: Tuesday, June 07, 2005 11:07 AM
To: [email protected]
Subject: [flexcoders] Re: Storing Web Service Results in Unique
Arrays/Objects

Can you give me a specific/realworld example? The examples I've seen 
don't really illustrate the functionality very well (based on my 
skillset).

Thanks much,

-Dave


--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> 
wrote:
> Check out the docs on the Asynchronous Completion Token (ACT) 
pattern.
> You can use the call object to keep track of the appropriate array 
index
> and then in the result handler store the result in the right 
slot.  Or
> something similar...
> 
>  
> 
> Matt
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Dave
> Sent: Tuesday, May 24, 2005 11:28 AM
> To: [email protected]
> Subject: [flexcoders] Storing Web Service Results in Unique
> Arrays/Objects
> 
>  
> 
> I have a sticky situation that seems easy to solve. Each time a 
row 
> of a dataGrid (bound to webserviceA) is selected, a request to web 
> serviceB is made. 
> 
> The sticky part is that each unique result from webserviceB (from 
a 
> unique row selection), must be saved in order to be used by 
another 
> object. I don't want the results to be overwritten each time a 
> request is made (i.e. when a different row of the dataGrid is 
> selected).
> 
> Here is a very rough illustration of what's in my head (very 
scary):
> 
> <dataGrid id="dg" dataProvider="webserviceA" 
change="webserviceB.send
> ()" /> //request will include <Category>{dg.selectedItem.CATEGORY}
> </Category> 
> 
> webserviceB result should be bound to UNIQUE array/object so that 
> each result will be saved for use by other object.
> 
> 
> Thanks for any help,
> 
> -Dave
> 
> 
> 
> 
> 
> 
> 
> ________________________________
> 
> 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]
> <mailto:[EMAIL PROTECTED]
subject=Unsubscribe> 
>         
> *     Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> .





 
Yahoo! Groups Links



 






 
Yahoo! Groups Links



 






 
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