PHP 连接soapServer返回“SOAP: looks like we got no XML document”

  1. 写了个soapServer
$server = new SoapServer('xxoo.wsdl');
$server->setClass('URClassName');
$server->handle();
  • 新建clientServer去连接
$client = new SoapClient("xxoo.wsdl");
$client->__call($function_name,$arguments);
  • server端返回“SOAP: looks like we got no XML document”
  • 查看nginx error日志
PHP message: PHP 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”
  • 使用的是php56,按照报错信息提示设置php.ini
always_populate_raw_post_data = -1
  • 重启php-fpm
  • 连接正常

你可能感兴趣的:(PHP 连接soapServer返回“SOAP: looks like we got no XML document”)