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

    Does URLLoader load a List?

    learningflex Level 1

      Hi,

       

      My request is a WCF service

      var

       

       

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

      request.method = URLRequestMethod.POST;

      request.requestHeaders.push(header);

       

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

      request.data =

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

      loader.load(request);

       

      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

       

              [OperationContract]

              [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?