0 Replies Latest reply on Jul 11, 2012 12:11 PM by Hermes_F

    XML service won't invoke on debug

    Hermes_F

      I am developing a mobile app, using FB 4.5 with PHP, that requires a connection to a XML list. I followed the turtorial exactly as he did in "ADC Presents - Remote XML Services in Flex Mobile Applications" (http://youtu.be/Cksp7IyVNk4).

       

      I created the service view the services dialog, url invoked properly and I was able set up the service without issues. When I go to run the application in the desktop emulator no data is loaded. I am able to test the connection and the data loads, but in debug no connection is made. In the network monitor I can see that there is no activity.

       

      Here is the view that is using the data connection.

       

      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

                          xmlns:s="library://ns.adobe.com/flex/spark"

                          xmlns:barlistingservice="services.barlistingservice.*"

                          title="HomeView">

       

                <fx:Script>

                          <![CDATA[

                                    import mx.events.FlexEvent;

                                    protected function getData():void

                                    {

                                              getDataResult.token = barListingService.getData();

                                    }

       

                                    protected function list_creationCompleteHandler(event:FlexEvent):void

                                    {

                                              getDataResult2.token = barListingService.getData();

                                    }

       

                          ]]>

                </fx:Script>

       

       

                <fx:Declarations>

                          <s:CallResponder id="getDataResult"/>

                          <barlistingservice:BarListingService id="barListingService"/>

                          <s:CallResponder id="getDataResult2"/>

       

                </fx:Declarations>

                <s:List id="list" left="0" right="0" top="0" bottom="0"

                                    creationComplete="list_creationCompleteHandler(event)" labelField="barName">

                          <s:AsyncListView list="{getDataResult2.lastResult}"/>

                </s:List>

       

       

      </s:View>

       

      What am I missing?