I think at least you need to change:
checkJobs.lastResult.jobs.job to: checkJobs.lastResult.jobs the DataGrid is expecting a list of jobs, not just a single job. Jeff ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clinton D. Judy Sent: Monday, May 19, 2008 12:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Grr, HTTPService doesn't work when it should This may be a simple problem, but Flex shuts down hard when I try this code: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" horizontalAlign="center" verticalAlign="top" width="100%" height="100%" creationComplete="checkJobs.send()"> <mx:Script> <![CDATA[ import mx.controls.Alert; import mx.rpc.events.ResultEvent; ]]> </mx:Script> <mx:HTTPService id="checkJobs" url="http://127.0.0.1:3001/jobs.xml" useProxy="false" contentType="application/xml" method="POST" /> <mx:DataGrid id="jobs" width="100%" height="60%" dataProvider="{checkJobs.lastResult.jobs.job}"> <mx:columns> <mx:DataGridColumn headerText="Name" dataField="name" /> <mx:DataGridColumn headerText="ECMS" dataField="ecms" /> </mx:columns> </mx:DataGrid> <mx:Button label="check jobs" click="checkJobs.send()" /> </mx:Application> And the accompanying XML file: <jobs type="array"> <job> <created-at type="datetime">2008-05-19T10:35:48-04:00</created-at> <display-order type="integer" nil="true"/> <ecms>1923</ecms> <id type="integer">1</id> <job-id nil="true"/> <name>199238GAME</name> <updated-at type="datetime">2008-05-19T10:35:48-04:00</updated-at> </job> <job> <created-at type="datetime">2008-05-19T14:20:52-04:00</created-at> <display-order type="integer" nil="true"/> <ecms>1553</ecms> <id type="integer">2</id> <job-id nil="true"/> <name>asdgggd</name> <updated-at type="datetime">2008-05-19T14:20:52-04:00</updated-at> </job> </jobs> Why isn't the datagrid being populated? Clinton Judy Web Developer Glenn O. Hawbaker, Inc.