0 Replies Latest reply on Sep 22, 2009 4:26 PM by mudabbasDev

    Having problems with WebService in AS3



      I have decided to connect to my web service directly using action script instead of writing it in mxml. I dont see any error. I am sure my web service response fine. but it is not getting into the bytesRecieved function. Can anyone please tell me if there is a problem in my code?


      public function PWImage(imgId:int)
      var webServ:WebService = new WebService();
      webServ.wsdl = "http://localhost/PWTestWebService/Service.asmx?WSDL";
      var operation:Operation = new Operation(webServ, "ReadBinaryFile");
      operation.addEventListener(FaultEvent.FAULT, faultEvent);
      operation.addEventListener(ResultEvent.RESULT, bytesRecieved);

      private function bytesRecieved(in_event:ResultEvent):void