@Tom
>Why not use a delegate ?
The delegate class is not longer available in the flex framework, so I
can't use it.
@Jester
I've got still an error. Here my code how I've build
it.
Service.mxml - subclass from ServiceLocator
<?xml version="1.0"
encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:cairngorm="com.adobe.cairngorm.business.*"> <mx:WebService id = "webservice" wsdl = "http://123.456.78.90/webservice/webservice.asmx?wsdl" result = "event.token.resultHandler(event)" fault = "event.token.faultHandler(event)" /> </cairngorm:ServiceLocator> index.mxml
- Main App
private
function init():void
{ var call:AsyncToken = ServiceLocator.getInstance().getService("webservice").getData(); call.addEventListener(mx.rpc.events.ResultEvent.RESULT, resultHandler); } When I use
it this way I've got still an error from the debug player: "resultHandler is no
function".
Any other
ideas?
Artur
__._,_.___
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- [flexcoders] Handle result/fault from webservice call in ... Artur Kordowski
- Re: [flexcoders] Handle result/fault from webservice... Tom Chiverton
- Re: [flexcoders] Handle result/fault from webservice... JesterXL
- RE: [flexcoders] Handle result/fault from webser... Stacey Mulcahy
- RE: [flexcoders] Handle result/fault from webser... Artur Kordowski
- [flexcoders] Re: Handle result/fault from webservice... ben.clinkinbeard
- [flexcoders] Re: Handle result/fault from webser... ben.clinkinbeard
- Re: [flexcoders] Re: Handle result/fault fro... JesterXL
- [flexcoders] Re: Handle result/fault fro... ben.clinkinbeard
- RE: [flexcoders] Handle result/fault from webservice... Artur Kordowski
- Re: [flexcoders] Handle result/fault from webser... Tom Chiverton
- [flexcoders] Re: Handle result/fault from we... ben.clinkinbeard
- Re: [flexcoders] Re: Handle result/fault... slangeberg
- [flexcoders] Re: Handle result/faul... ben.clinkinbeard
- Re: [flexcoders] Re: Handle res... Tom Chiverton
- [flexcoders] Re: Handle res... ben.clinkinbeard
- Re: [flexcoders] Re: Handle... Tom Chiverton
- [flexcoders] Re: Handle res... ben.clinkinbeard
- Re: [flexcoders] Re: Handle... Tom Chiverton
- [flexcoders] Re: Handle res... ben.clinkinbeard