0 Replies Latest reply on Sep 10, 2007 6:33 AM by

    Problem in accessing actionscript object in web service

      I have an actionscript which has a list as member.
      the list is populated with the object of another action script.
      the parent actionscript is passed as argument to the server.
      In the server I have tried to retrieve the objects from the list and got the following error :

      [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:8080/axis/services/MyService1" URL: http://localhost:8080/axis/services/MyService1"
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at ::DirectHTTPMessageResponder/errorHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()


      My code in the server side is as following :

      public ArithmeticBean readList(ArithmeticBean ob)
      {
      System.out.println("Reading List.....");
      List lt = new ArrayList();
      lt = ob.getListInnerBean();
      System.out.println("Size : "+lt.size());
      for (Object ib : lt) {
      InnerBean inBean = (InnerBean) ib;
      System.out.println(inBean.getA1());
      System.out.println(inBean.getB1());
      }
      return ob;
      }

      here ArithmeticBean is the parent object under which there is a list and the list is populated with the object of InnerBean.
      But when tried to get the InnerBean objects i got the said error.

      Could anyone please help wheather it is possible to send an actionscript inside a list from client to server or not.
      Thnx in advance....