2 Replies Latest reply on Jan 12, 2010 3:44 AM by eliblow

    Problem converting RPC event results to XMLList

    eliblow

      Hello everyone,

       

      I have hard time converting Dictionary Service into XMLList. Below I included the code and the web service details. I hope someone can direct me to my mistakes.

       

      Happy new year.

       

      eboraks

       

       

      FLEX CODE

      <mx:HTTPService result="handleXML(event);" fault="handleFault(event);" id="xmlRPC" resultFormat="e4x"
              method="POST" contentType="application/x-www-form-urlencoded"  headers="HTTP 1.1"
              url="http://services.aonaware.com/DictService/DictService.asmx/Match" useProxy="false">
                  <mx:request xmlns="">
                      <word>{inputSearch.text}</word>
                      <strategy>prefix</strategy>
                  </mx:request>
              </mx:HTTPService>

       

      [Bindable]
             public var wordsList:XMLList = new XMLList();

       

                  public function handleXML(event:ResultEvent):void
                  {
                      wordsList = event.result.DictionaryWord as XMLList;
                     
                      trace(wordsList.length());
                                  
                  }


      The above code wordsList.length() = 0, but as the screen shot shows event.result does return XML.

         event.result.PNG