Skip navigation
DenaliCreative
Currently Being Moderated

HTTPService Error

Jan 5, 2013 3:47 PM

Tags: #help #error #data #php #flex #post #httpservice

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:34 5]

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

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

          at DirectHTTPMessageResponder/errorHandler()[E:\dev\4.y\frameworks\proje cts\rpc\src\mx\messaging\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!

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points