Mickael was right. I figured it out using the debugger in Flex Builder. It
works great now. This Flex thing is really amazingly simple. Thanks guys.
2007/4/28, André Rodrigues Pena <[EMAIL PROTECTED]>:
Man.... I had a bad time time trying to fit the SOAP response of a SQL
SERVER 2005 WEBMETHOD in a DataGrid. I gave up!
On 4/28/07, Mickael RUELLAN <[EMAIL PROTECTED]> wrote:
>
> What's going on if you replace your dataProvider by :
>
> dataProvider="{
> basementIssues.getAllIssues.lastResult.getAllIssuesReturn.issueListItem}
>
> Mika
>
> sebastien_arbogast a écrit :
>
> >
> > After reading the "Use Webservices" lesson, I tried to prototype an
> > application with a DataGrid to display items retrieved from a
> > webservice of my own.
> > Here is my Flex application:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
> > layout="absolute" creationComplete="basementIssues.getAllIssues.send
> ()">
> > <mx:WebService id="basementIssues"
> >
> > wsdl=" http://localhost:8080/basement-ws/services/IssuesService?wsdl"
> > useProxy="false">
> > <mx:operation name="getAllIssues">
> > <mx:request>
> > </mx:request>
> > </mx:operation>
> > <mx:operation name="createIssue">
> > <mx:request>
> > <description>{issueDescription.text}</description>
> > <title>{issueTitle.text}</title>
> > </mx:request>
> > </mx:operation>
> > </mx:WebService>
> > <mx:Panel layout="absolute" right="10" left="10" top="10"
> > bottom="10" title="Basement Issues">
> > <mx:DataGrid right="0" left="0" top="0" height="265"
> > dataProvider="{basementIssues.getAllIssues.lastResult.issueListItem}">
> > <mx:columns>
> > <mx:DataGridColumn headerText="Title" dataField="title"/>
> > <mx:DataGridColumn headerText="Creation Date"
> > dataField="creationDate"/>
> > <mx:DataGridColumn headerText="Status"
> > dataField="status"/>
> > </mx:columns>
> > </mx:DataGrid>
> > <mx:Button label="New issue"
> > click=" basementIssues.createIssue.send();
> > basementIssues.getAllIssues.send();" bottom="10" right="10"/>
> > <mx:RichTextEditor right="10" id="issueDescription"
> > bottom="40" top="303" left="91">
> > </mx:RichTextEditor>
> > <mx:TextInput right="10" left="91" id="issueTitle" top="273"/>
> > <mx:Label x="10" y="275" text="Title"/>
> > <mx:Label x="10" y="304" text="Description"/>
> > </mx:Panel>
> > </mx:Application>
> >
> > The creation works great (which I can see in my server log), meaning
> > that the service is correctly accessible, with a crossdomain.xml set
> > up and everything.
> > And it seems I have a problem mapping the results of getAllIssues
> > call. Here is the SOAP response I typically get from the webservice.
> >
> > <soapenv:Envelope
> > xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema "
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> > <soapenv:Body>
> > <getAllIssuesResponse
> > xmlns="http://org.epseelon.basement.issues.business ">
> > <getAllIssuesReturn>
> > <issueListItem>
> > <creationDate>vendredi 27 avril 2007 18 h 46
> > CEST</creationDate>
> > <id>1</id>
> > <status>Nouvelle</status>
> > <title>Issue 1</title>
> > </issueListItem>
> > </getAllIssuesReturn>
> > </getAllIssuesResponse>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> > There must be something wrong in my dataProvider because nothing is
> > displayed.
> >
> >
>
>
--
André Rodrigues Pena
LOCUS
www.locus.com.br
Blog
www.techbreak.org
--
Sébastien Arbogast
http://www.sebastien-arbogast.com