发送xml数据PHP的接收方式是
$fileContent = file_get_contents("php://input");
$xmlResult = simplexml_load_string($fileContent ,'SimpleXMLElement', LIBXML_NOCDATA);
$data = json_decode(json_encode($xmlResult),true);
p($data);die;
发送xml数据PHP的接收方式是
$fileContent = file_get_contents("php://input");
$xmlResult = simplexml_load_string($fileContent ,'SimpleXMLElement', LIBXML_NOCDATA);
$data = json_decode(json_encode($xmlResult),true);
p($data);die;