0 Replies Latest reply: Jan 5, 2013 3:47 PM by DenaliCreative RSS

    HTTPService Error

    DenaliCreative Community Member

      When I am activating my HTTPService POST, I am getting this 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/server/secondPHP.php" errorID=2032]. URL: http://localhost/server/secondPHP.php"]

                at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:345]

                at mx.rpc::Responder/fault()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\Responder.as:68]

                at mx.rpc::AsyncRequest/fault()[E:\dev\4.y\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.a s:113]

                at DirectHTTPMessageResponder/errorHandler()[E:\dev\4.y\frameworks\projects\rpc\src\mx\messa ging\channels\DirectHTTPChannel.as:410]

                at flash.events::EventDispatcher/dispatchEventFunction()

                at flash.events::EventDispatcher/dispatchEvent()

                at flash.net::URLLoader/onComplete()

       

      I am POSTing to a PHP file that looks like this:

       

      <?php

      $method = $_POST["method"];

       

      if ($method == "ADD_FRIEND") {

        $xml = new SimpleXMLElement('http://localhost/server/myxml.xml', null, true);

       

        $xml->Users->addChild("Friend", "friend");

                $xml->asXML('http://localhost/server/myxml.xml');

       

                $returnValue = "Friend Added";

                print($returnValue);

      }

      ?>

       

      I have no idea what the error message means. If anyone could help that would be great!