Then trace out event.result.toXMLString() to see what you really got.
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Sunday, December 16, 2007 12:20 PM To: [email protected] Subject: RE: [flexcoders] Simple application is not working The first thing to determine is whether the data isn't arriving or whether it's there and isn't getting displayed. Does resultHandler() get called when you click the button? Gordon Smith Adobe Flex SDK Team ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of maylam18 Sent: Saturday, December 15, 2007 1:04 PM To: [email protected] Subject: [flexcoders] Simple application is not working Hi Everyone, How come the following code is not working. I mean why the datagrid shows nothing when I click on the Button. Please help. Thanks. May <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="vertical" creationComplete="WS.getMembers.send()"> <mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.XMLListCollection; [Bindable] private var myMembers:XMLList; private function resultHandler(event:ResultEvent):void { myMembers = event.result.Member; } ]]> </mx:Script> <mx:WebService id="WS" wsdl="http://localhost:58940/Jimmy_WS_Testing/Service.asmx?wsdl <http://localhost:58940/Jimmy_WS_Testing/Service.asmx?wsdl> "> <mx:operation name="getMembers" resultFormat="e4x" result="resultHandler(event)" /> </mx:WebService> <mx:Button id="test0" x="225" y="10" label="Button" click=" WS.getMembers.send()"/> <mx:DataGrid dataProvider="{myMembers}"/> </mx:Application>

