0 Replies Latest reply on Feb 26, 2015 2:51 AM by rajus.singh@adobe

    I am geting following error please help

    rajus.singh@adobe Level 1

      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://www.nature.com/principles/webservice/login" errorID=2032]. URL: http://www.nature.com/principles/webservice/login"]

       

      code-

      operation = new Operation(null, "login");

        operation.url = "login";

        argsArray = new Array("login_id", "login_password", "unique_machine_id");

        operation.argumentNames = argsArray;

        operation.method = "POST";

        operation.serializationFilter = filter;

        operations.push(operation);

       

        public function login(loginId:String, loginPassword:String, uniqueMachineId:String):AsyncToken

             {

             trace(loginId, loginPassword, uniqueMachineId);

             var _internal_operation:AbstractOperation = _service.getOperation("login");

             var _internal_token:AsyncToken = _internal_operation.send(loginId, loginPassword, uniqueMachineId);

             return _internal_token;

             }

       

      login service is being called from server that is in java-

       

      package com.nature.ebook.components.auth

      {

        import com.nature.ebook.data.UserInfo;

        import com.nature.ebook.services.CallStatus;

        import com.nature.ebook.services.IEBookService;

        import com.nature.ebook.services.XMLServiceParser;

       

        import flash.events.EventDispatcher;

        import flash.events.IEventDispatcher;

       

        import mx.controls.Alert;

        import mx.rpc.AsyncToken;

        import mx.rpc.Fault;

       

       

        [ManagedEvents("authSuccess, authFail")]

       

        public class AuthCommand extends EventDispatcher

        {

        public function AuthCommand(target:IEventDispatcher=null)

        {

        }

       

        [Inject]

        public var service:IEBookService;

       

        [Inject]

        public var auth:AuthModel;

       

       

        //-------------------------------------------------------------------------

        //

        //  Methods

        //

        //-------------------------------------------------------------------------

        /**

        * This command dispatches  event AuthenticationEvent.AUTH_FAIL when the service return failt

        * @param fault Fault

        */

        public function error(fault:Fault):void

        {

        trace(fault);

       

        var e:AuthenticationEvent = new AuthenticationEvent(AuthenticationEvent.AUTH_FAIL, null, null, CallStatus.getServerFaultCall());

        dispatchEvent(e);

        }

       

        /**

        * This command dispatches event when the service return rezult Array

        * @param result Array

        * if cs.success <code>true </code> dispatch AuthenticationEvent.AUTH_SUCCESS

        * if cs.success <code>false</code> dispatch AuthenticationEvent.AUTH_FAIL

        */

        public function result(result:*):void

        {

        if (result)

        {

        var cs:CallStatus = XMLServiceParser.getCallStatus(result);

        if (cs.success)

        {

        var us:UserInfo = XMLServiceParser.getUserInfo(result);

        var e:AuthenticationEvent = new AuthenticationEvent(AuthenticationEvent.AUTH_SUCCESS, us, null, cs);

        dispatchEvent(e);

        }

        else

        {

        e = new AuthenticationEvent(AuthenticationEvent.AUTH_FAIL, null, null, cs);

        dispatchEvent(e);

        }

       

        }

        }

       

        public function execute(event:AuthenticationEvent):AsyncToken

        {

        return service.login(event.user.loginId, event.magicWord, event.user.uniqueMachineId);

        }

        }

      }