Warning: SoapClient::SoapClient() expects parameter 2 to be
array, boolean given in login\login.php on line
4
Fatal error: Uncaught SoapFault
exception: [Client] SoapClient::SoapClient() [<a
href=‘soapclient.soapclient‘>soapclient.soapclient</a>]: Invalid
parameters in login\login.php:4 Stack trace: #0 ogin\login.php(4):
SoapClient->SoapClient(‘http://server1....‘, true) #1 {main} thrown in
login\login.php on line 4
原因是nusoap的SoapClient类和php5内置的SOAP类有冲突。
解决方案
1. 修改php.ini不加载php5内置的soap扩展(windows下是php_soap.dll)。
2. 也有给nusoap的SoapClient类改名的。