Can someone please post an example of making and handling a WS call in Cairngorm 2? Is a Delegate required?
Thanks, Ben --- In [email protected], "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote: > > I am also having trouble with Web Services in Cairngorm 2. The execute > method of my command is being called, but the WS call is not being > made, much less handled correctly. Can someone tell me what I am > missing here? > > From Services.xml: > > <mx:WebService id="industryAndSizeIdsService" makeObjectsBindable="false" > > wsdl="{TestModel.getInstance()[EMAIL PROTECTED] > + '?WSDL'}" > showBusyCursor="true" useProxy="false" > result="event.token.resultHandler(event)" > fault="event.token.faultHandler(event)"> > > <mx:operation name="GetDataByGrouping" resultFormat="e4x"> > <mx:request> > <GroupingRequests> > <GroupName> > RPRToolStaticData > </GroupName> > </GroupingRequests> > </mx:request> > </mx:operation> > </mx:WebService> > > And here is the call in my command class: > > public class LoadIndustryAndSizeIdsCommand implements Command, Responder > { > public function execute(event:CairngormEvent):void > { > var service:AbstractService = > ServiceLocator.getInstance().getService("industryAndSizeIdsService"); > var call:AsyncToken = service.GetDataByGrouping.send(); > call.addEventListener(mx.rpc.events.FaultEvent.FAULT, > onFault); > call.addEventListener(mx.rpc.events.ResultEvent.RESULT, > onResult); > trace("execute"); > } > > public function onResult(event:* = null):void > { > trace("result"); > } > > public function onFault(event:* = null):void > { > trace("fault"); > } > } > > Thanks, > Ben > ------------------------ 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/

