Required, no, encouraged, yes.

You have a public webservice I can call?  I can make an example, but don't 
know of a public one.

----- Original Message ----- 
From: "ben.clinkinbeard" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, July 05, 2006 1:51 PM
Subject: [flexcoders] Re: Handle result/fault from webservice call in 
Cairngorm 2


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
>








--
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 --------------------~--> 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/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/
 



Reply via email to