折雨的天空
soap报错:error cannot find parameter soap
2018-9-15 我好笨


非常的郁闷,soap协议不太明白







后来也没能解决,但是有个方法,就是在PHP的server端,handle()之前







把内容写到文件中,或者数据出来







public static function soaputils_autoFindSoapRequest()
{
global $HTTP_RAW_POST_DATA;
if($HTTP_RAW_POST_DATA)
{
return $HTTP_RAW_POST_DATA;
}
else
{
$f = file("php://input");
return implode(" ", $f);
}
}



然后在handle之前,调用;







$request=MessageServer::soaputils_autoFindSoapRequest();
file_put_contents(__SITEROOT.'AAAA.xml',$request);



这样至少可以获取到原始的soap请求。

发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容