This content has been marked as final. Show 3 replies
look at the fault event of HTTPSerive class.
This topic may be of particular interest:
Handling result and fault events
I use web services a lot. I have found a couple ways to do what your trying to do. The easiest way would be to declare a result handler and fault handler in the web service declaration. Here is some sample mxml code :
useProxy = "false"
showBusyCursor = "true"
<mx:operation name="yourWebServiceMethod()" >
In your script code you will define the two handlers. In your handers you can grab the data as needed. Typically using the lastResult of the web service . method. For example. wsSomeWebServiceID.yourWebServiceMethod.lastResult......
You can do all of this in Action Script as well. I don't have any short examples of this to show you as all my Action Script code is in the Cairngorm framework.
Hope this helps.