Reading nonSOAP-XML in Yii, posted from FLEX

I'm developing an Adobe FLEX client to interface with a MySQL database using Yii.

Everything has been grand so far, really enjoying Yii's AR code.

However, I'm really not liking how php parses application/xml. I can't seem to get the raw post data. I've tried several methods with no success. I was hoping Yii could help me with this?

FLEX code



			 private function deleteSelectedPriceQuote(id:Number):void


			 {


			 	var deleteRequest:XML = <PriceQuoteDelete id={id}/>;


			 	


			 	priceQuoteDeleteRequest.request = deleteRequest;


			 	priceQuoteDeleteRequest.send();


			 }


PHP code



  public function actionDeletePriceQuote()


  {


    if ( $_SERVER['REQUEST_METHOD'] === 'POST' )


    {


      echo file_get_contents("php://input");


    }


  }


I end up printing:

Quote

%40id=2

Anyone? I can’t seem to find a solution on the net.  :-[

For any developers that have this problem in the future, this is how I bypassed the issue. php doesn't like application/xml to much. if anyone has a better solution besides SOAP I'm all ears.

	<!-- Request !-->


	<mx:HTTPService id="request"


					url="http://localhost/VStudios_Yii/flex/priceQuotes/add"


					fault="alert.show(event.message.toString());"


					result="alert.show(event.result.toString());"


					method="POST"


					resultFormat="e4x"


					contentType="application/x-www-form-urlencoded">


		<mx:request>


			<xml>{test.toXMLString()}</xml>


		</mx:request>


	</mx:HTTPService>





	<mx:XML id="test">


		<haha id='123'>


			<something id='123'/>


		</haha>


	</mx:XML>