Get DataSet from ASP.net web service
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> <mx:TraceTarget includeDate="true" includeTime="true"/> <mx:Script> import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] private var myData:ArrayCollection; private function dataHandler(event:ResultEvent):void { myData = event.result.Tables.Table.Rows; } </mx:Script> <mx:WebService id="dataService" wsdl="Service.asmx?wsdl" showBusyCursor="true"> <mx:operation name="getData" result="dataHandler(event)"/> </mx:WebService> <mx:Button label="Get DataSet" click="dataService.getData()"/> <mx:DataGrid dataProvider="{myData}"/> </mx:Application>