You're both correct, but you're talking about different things.
 
If you're accesing the ResultEvent, the the property is definitely event.result. Check the ASDoc for mx.rpc.events.ResultEvent.
 
If you're using data binding as Ben suggests, then you're accessing the last result returned for that operation - and I stress, operation, not an event. Check the ASDoc for mx.rpc.soap.WebService.
 
(To disambiguate between the ResultEvent handler registration property <mx:WebService result="myResultHandler(event)" ... >   and the operation's property representing only the last result that was returned, the operation property name "result" changed to "lastResult" from Beta 2 to Beta 3 (and continues to be so in the final release)).
 
Pete
 
 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of wayne_badu_johnson
Sent: Wednesday, June 07, 2006 8:42 PM
To: [email protected]
Subject: [flexcoders] Re: loadWSDL Webservice result?

Thanks Ben for the resultFormat tip.
lastResult is still throwing an error so I will go with
using 'result'for the moment.

Cheers
Wayne

--- In [EMAIL PROTECTED]ups.com, "ben.clinkinbeard"
<ben.clinkinbeard@...> wrote:
>
> The lastResult vs. result thing is a property of the WS operation
you
> call, not the ResultEvent object that is sent to your result
handler.
> I believe the most common place you would use this would be when
you
> want to bind part of the returned data to something.
>
> myWebService.myWsMethod.lastResult
>
> resultFormat is a property of the AbstractOperation when calling a
WS
> from AS. For some reason it is not recognized by code completion or
> listed in the docs, but I was told this by an Adobe engineer and it
> does work.
>
> myWebService['myWsMethod'].resultFormat = "e4x";
>
> Hope this helps,
> Ben
>

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to