过去几个月我一直面临类似的问题.
事后我发现问题是当我使用非wsdl模式时
http://php.net/manual/en/soapclient.soapclient.php
有时,远程服务器不会响应wsdl的位置请求.
初始非wsdl模式
$soapx = new SoapClient(null,
array(
"trace" => true,
'cache_wsdl' => WSDL_CACHE_NONE,
'location' => 'http://remote_wsdl_url',
'uri' => 'http://necessary_uri',
'use' => SOAP_LITERAL,
'style' => SOAP_DOCUMENT,));
转向wsdl模式
$soapx = new SoapClient('http://remote_wsdl_url_turned_to_local',
array(
"trace" => true,
'cache_wsdl' => WSDL_CACHE_NONE,));