1 Reply Latest reply: Aug 26, 2009 7:19 AM by SimonSolomon RSS

    Error opening URL "http://localhost/OESExamSWF/GetString.aspx"

    SimonSolomon Community Member

      Hi! I want to get connected to my asp page where I am returning a string to flash.

      I did exactly what was given in the samples of Flash Remoting. Also refered to the .pdf which was supported in docs folder. Well my question for now is I am getting

       

      Error opening URL "http://localhost/OESExamSWF/GetString.aspx"

       

      Where this link is provided as URL to   NetServices.setDefaultGatewayUrl("http://localhost/OESExamSWF/GetString.aspx");

      My code in AS 2.0 goes in this fashion.

       

      import mx.remoting.NetServices;
      import mx.remoting.NetDebug;
      function init()
      {
      if (this.inited != undefined)
      {
        _root.txtInput.text =" The Code did not went there."
        // * TRAP: If this function has already been invoked, break out and continue.
        return;
      }
      else
      {
         NetServices.setDefaultGatewayUrl("http://localhost/OESExamSWF/GetString.aspx");
        gatewayConnection = NetServices.createGatewayConnection(); 
        classService = gatewayConnection.getService("FlashRemoting.EllipseOES.OES");
        classService.GetOESXML();
      }

      }

      function GetOESXML_Result(result)
      {
      _root.txtInput.text = result;
      }
      function GetOESXML_Status(result)
      {
      _root.txtInput.text = error.description;
      }
      init();