本地测试php5.6下soap报错如图:
解决办法:
把php.ini中的 always_populate_raw_post_data = -1 打开
(https://www.php.net/manual/zh/ini.core.php#ini.always-populate-raw-post-data)
或
升级php版本至7
wsdl下的俩函数:
$client->__getTypes()
//Returns an array of types described in the WSDL for the Web service.
返回Web服务的WSDL中描述的类型数组。
$soap->__getFunctions()
//Returns an array of functions described in the WSDL for the Web service.
//返回Web服务的WSDL中描述的函数数组。