A few ways this could be done. If the service is defined in an mxml tag, its simply:
<mx:WebService id="ws" wsdl="{wsdl}">
<mx:operation name="MethodName" result="functionToCall(event.result)"/>
</mx:WebService>


If it was just defined in code, you can simply bind to ws.yourMethod.result, or you can use addEventListener() to define the result handler.


At 03:17 PM 2/21/2005, you wrote:

Does anyone know how to create a listener for a Web service?

To be more precise:

I have a web service called WS.

When I call a method WS.MethodName.send() I want to be able to listen
to WS.MethodName.result. When the result is returned I want to
executre a function.

Thanks,
Goran




Yahoo! Groups Sponsor <http://us.ard.yahoo.com/SIG=129d1pa33/M=324658.6070095.7083352.3001176/D=groups/S=1705007207:HM/EXP=1109103521/A=2343726/R=0/SIG=12i0chavi/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109017121592963> []

<http://us.ard.yahoo.com/SIG=129d1pa33/M=324658.6070095.7083352.3001176/D=groups/S=1705007207:HM/EXP=1109103521/A=2343726/R=1/SIG=12i0chavi/*http://clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=1109017121592963>

Get unlimited calls to

U.S./Canada


----------
Yahoo! Groups Links
* To visit your group on the web, go to:
* <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/


*
* To unsubscribe from this group, send an email to:
* <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]


*
* Your use of Yahoo! Groups is subject to the <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.

<<inline: a5ad2c.jpg>>

Reply via email to