0 Replies Latest reply on Nov 29, 2009 8:48 AM by guido_412

    WebService setting xml request

    guido_412

      I'm a .NET developer learning Flex

       

      I'm trying to set the xml request in the flex webservice.  A little background, I'm uploading a file to a third-party and they respond with xml data I want to use.  I want to take that xml and pass it to a .NET webservice.  I have verified the .NET webservice gets called everytime but its not getting the xml data.  What am I missing?  Here is my code.

       

      private function responseHandler( event:DataEvent ) :void{
      var response:XML = XML( event.data );
      var service:WebService = new WebService();
      service.wsdl = "http://localhost/FlashUploadWeb/WebSerivce/Video.asmx?wsdl";
      service.loadWSDL();
      var operation:Operation = new Operation(null, "UpdateVideoFile");
      operation.addEventListener(ResultEvent.RESULT, onWSResult, false, 0, true);
      operation.addEventListener(FaultEvent.FAULT, onWSFault, false, 0, true);
      operation.request = response;
      service.operations = [operation];
      operation.send();
      }