Hi Darren, i havent worked with WebServices and Cairngorm so sorry,
but cant help you.




--- In flexcoders@yahoogroups.com, "Darren Houle" <[EMAIL PROTECTED]> wrote:
>
> I've been messing with the DashboardIteration1 Cairngorm example
from Alex 
> Uhlmann's blog and I have a question about the delegate/webservice
piece.
> 
> The example's source code was missing any real web service code (and
the 
> delegate was missing the code that calls a web service) so I've
added all 
> that in myself.  I wanted the example to actually call a remote
service that 
> generated a rand() instead of generating the rand() in the delegate.
> 
> That works fine, however, while testing I hard-coded the symbol name
into 
> the <mx:request> but... when I changed:
> 
> <mx:operation name="getQuoteForSymbol" resultFormat="object">
>       <mx:request>
>               <symbol>ADBE</symbol>
>       </mx:request>
> </mx:operation>
> 
> to
> 
> <mx:operation name="getQuoteForSymbol" resultFormat="object">
>       <mx:request>
>               <symbol>{symbol}</symbol>
>       </mx:request>
> </mx:operation>
> 
> it didn't work (but... I didn't really expect it to)
> 
> The delegate is calling the service like this:
> 
> var token : AsyncToken = service.getQuoteForSymbol(symbol);
> 
> but how do I reference that "symbol" var in the <mx:request>?
> 
> There are tons of examples in the documentation that show how to use
binding 
> in the request, but only one example of passing a var
"explicitly"... but 
> the code in that example is different enough from Cairngorm that I
can't 
> seem to figure out how to make it work.
> 
> Any examples out there I missed?  Or maybe a flexcoders thread that 
> mentioned this?  I've looked but can't find anything.
> 
> Thanks!!
> Darren
>









--
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