0 Replies Latest reply on Dec 9, 2009 4:33 PM by learningflex

    Does URLLoader load a List?

    learningflex Level 1



      My request is a WCF service




      request:URLRequest = new URLRequest(http://mvtdev1/mvt/MyService.svc/GetAvailablePeopleListJSON);

      request.method = URLRequestMethod.POST;



      var locationArray:Array = myText.text.split(",");

      request.data =

      '{"locations":'+ locationArray+'}';



      I get

      ioErrorHandler: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://mvtdev1/mvt/MyService.svc/GetAvailablePeopleListJSON"]


      When i debug i see the loader.data is undefined. The method defined is



              [WebInvoke(ResponseFormat = WebMessageFormat.Json)]

              List<int> GetAvailablePeopleListJSON(List<string> locations);


      What can be the problem, I am trying this from 3 days. Please help. Any other way i can acheive this?