0 Replies Latest reply on Jan 7, 2012 1:35 AM by rjorge99

    How to handle the WebService answer.

    rjorge99

      Hi, I have a Web service, the result of this answer is:

       

       

      <ns:getListBooksMySQLResponse xmlns:ns="http://services" xmlns:ax21="http://entities/xsd">
       <ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:Book">
                 <ax21:author>Hagen Graf</ax21:author>
                 <ax21:id>1</ax21:id>
                 <ax21:image>D:\EclipseWorkspaces\Flex\PublishingDemo\assets\images\184719494X.png</ax21:image>
                <ax21:name>Building Websites with Joomla! 1.5</ax21:name>
                <ax21:pages>250</ax21:pages>
                <ax21:price>0.0</ax21:price>
                <ax21:publishable>false</ax21:publishable>
      
           </ns:return>
      
      
           <ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ax21:Book">
                <ax21:author>Matt Butcher</ax21:author>          <ax21:id>2</ax21:id>     
                <ax21:image>D:\EclipseWorkspaces\Flex\PublishingDemo\assets\images\184719494X.png</ax21:image>
                <ax21:name>Drupal 6 JavaScript and jQuery</ax21:name>
                <ax21:pages>250</ax21:pages>
                <ax21:price>0.0</ax21:price>
                <ax21:publishable>false</ax21:publishable>
      
           </ns:return>
      
      
      
      </ns:getListBooksMySQLResponse>
      

       

      The problem is that i dont find the way to handle the data and show that data un a custom component, the codo to handle the result is the next one:

       

       

      private function resultHandler(event:ResultEvent):void {
           listBooks.dataProvider = event.result as ArrayCollection;
           dgGrid.dataProvider = event.result as ArrayCollection;
      }
      

       

      but is impossible to show any information in the controls.. how could I handle the results?

       

      Thanks.