如何阅读来自android的发布的xml数据/响应,发布在Yii控制器/动作中

I am trying to read xml response that is posted by android application for my webservices.

I am trying the code as below

if (isset($GLOBALS['HTTP_RAW_POST_DATA']) && !empty($GLOBALS['HTTP_RAW_POST_DATA'])) {
            $input = $GLOBALS['HTTP_RAW_POST_DATA'];
        } else {
            $input = "hello";
        }

but i got null to value input,

please help me out, if you have any solution or example over the internet.

Did you check if your application post data based on the request? Better call that url through curl and then var_dump( curl response) , that will make sure you are getting back something. If still having problem let me know.

thanks