今天使用php soap实现两个系统之间的互通
在写好php的soapserver后,client端调用一直报 looks like we got no XML document,尝试好久后无法解决
最后在soapclien的"trace" => true,然后使用__getLastResponse方法发现响应了一个错误提示
Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning
set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
按要求在php.ini中设置always_populate_raw_post_data = -1后,重启apache,之后一切正常