Parsing an WebService URL in Flex

Posted by theband on Stack Overflow See other posts from Stack Overflow or by theband
Published on 2010-04-26T16:02:32Z Indexed on 2010/04/26 16:03 UTC
Read the original article Hit count: 159

Filed under:
|
[Bindable]public var xmlData:Object = new Object();
    [Bindable]public var headingData:Object = new Object();   

 private function getHeadings(evt:ResultEvent):void{
          //xmlData = ObjectUtil.toString(evt.result);
            //ObjectUtil.toString(evt.result)
          xmlData = evt.result;
          headingData = xmlData.root.survey;
        }

     <mx:WebService id="srv"
                wsdl="http://domainame/Service.asmx?WSDL">
            <mx:operation name="GetClientDetails_ParameterDetails"
                    resultFormat="object"
                    result="getHeadings(event);"
                    />
        </mx:WebService>

I am able to parse an simple XML and create the components, but i am not able to do when i call an webService. The Method name which fetches the XML is the same.

Am i doing something wrong in receiving the XML in Flex.

© Stack Overflow or respective owner

Related posts about flex

Related posts about webservice