2 Replies Latest reply on Oct 28, 2009 10:50 PM by flexprad09

    Web Service, e4x, and my results, HELP!


      I'm a .NET guy, have been for about 9 years now. I've got a web service that returns a string of XML. I'm calling that webservice and getting myresponse through FLEX (of which I'm very new). The problem is that I can't get the XML back out like I'm expecting. I'm hopingmy code sample will help you help me out here. I've copied and pasted various pieces but it's not quite there. I get zilch on the as XML line:


      My webservice area:

      <mx:WebService id="photos" wsdl="http://localhost:3833/WebServices/GalleryService.asmx?WSDL" fault="faultHandler(event)" >
               <mx:operation name="getPhotos" result="xmlQuery(event)" resultFormat="e4x" fault="mx.controls.Alert.show(event.fault.faultString)" >





      My result area:


      private function xmlQuery(event:ResultEvent):void
                  //myXML = event.result as XML;
                  myXML = new XML(event.result);
                  mainImage.source = myXML.pic[0].image;


      event.result has the following:



      myXML is always NULL!


      Thanks in advance for any help you can offer!