2 Replies Latest reply on Feb 4, 2009 1:14 PM by ice9_us

    I am getting  "RPC Fault" at Debugging

      I have attached the followings:
      1- My Flex src code
      2- My .xml data file code
      3- The RPC Fault exception that I am getting whenever I debug.
      I am incapable of sorting this out on my own. I need help.
        • 1. Re: I am getting  "RPC Fault" at Debugging
          levancho Level 3
          two resons I think can cause that
          1) because file is located in restricted domain, say if your app is running in http protocol for example http://localhost/yourapp.xml and you are trying to access thax xml file using file:\ protocole
          in this case you need place xml on webserver and access it via http

          2) file locaiton is invalid, run that url in browser and see if you get a response.
          • 2. Re: I am getting  "RPC Fault" at Debugging
            ice9_us Level 1
            <?xml version="1.0" encoding="utf-8"?>
            <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute"

            import mx.rpc.events.ResultEvent;

            private function resultHandler(event:ResultEvent):void
            var test:XMLList = new XMLList();
            test = event.result.ilungas;
            <mx:HTTPService id="ilungaService" url="c:\testfromweb.xml"
            result="resultHandler(event)" resultFormat="e4x" />

            you need a path... that worked... once i set that..
            2.. if your doing xml give your returned format a "e4x"
            3.. you should have some fault handler....