0 Replies Latest reply on Jul 16, 2009 3:13 AM by SunilPadman

    Cannot assign operations into an RPC Service (WSDL)


      Hi All,


      I am in the process of exploring Flex and now I have got stuck when connecting to a webservice


      I get the following error

      Cannot assign operations into an RPC Service (WSDL)



      Please note that I am able to access the web service defined in the URL properly in browser.


      Below is the code






      <?xml version="1.0" encoding="utf-8"?>



      xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">

















      import mx.collections.ArrayCollection;






      import mx.rpc.events.ResultEvent;











      private var myData:ArrayCollection;





      private function getData():void
















      private function resultHandler(event:ResultEvent):void









      myData= event.result.Tables.Table0.Rows

      as ArrayCollection;




























      <mx:WebService id="myService" WSDL="http://localhost/FirstWS/Service1.asmx?WSDL"



      load="getData()" result="resultHandler(event)"














      <mx:DataGrid dataProvider="{myData}"/>