3 Replies Latest reply on Mar 24, 2008 12:16 PM by Nick201

    webservice call

    Nick201 Level 1
      Hi I am calling webservice using this code and i am getting no data. Any idea??

      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"
      layout="vertical">
      <mx:Script>
      <![CDATA[
      import mx.rpc.events.ResultEvent;
      import mx.collections.ArrayCollection;
      import mx.controls.Alert;

      [Bindable]
      private var directors:Array;

      private function directorHandler(event:ResultEvent):void{
      directors = event.result as Array;
      }
      ]]>
      </mx:Script>

      <mx:WebService id="PubDataRPC"
      useProxy="false"
      wsdl=" http://127.0.0.1:8500/test/components/web.cfc?wsdl" showBusyCursor="true" >
      <mx:operation name="getMedia" result="directorHandler(event)" fault="Alert.show(event.fault.message)"/>
      </mx:WebService>

      <mx:DataGrid dataProvider="{directors}">
      <mx:columns>
      <mx:Array>
      <mx:DataGridColumn dataField="mediatype"/>
      </mx:Array>
      </mx:columns>
      </mx:DataGrid>