实例: "Any", "password"=>"Any", "ticker"=>$symbol); // Call the webservice "doCompanyInfo" method with the arguments. $results = $client->call("doCompanyInfo", $args); /* $results is an array with the following structure Array ( [symbol] =>
要用到 SoapClient, new 了一个提示 Class ‘SoapClient’ not found, 检查了下 phpinfo, 原因是当初没有编译这个扩展, 只好现在再加上了。
php在调用webservice时,报告如下类似错误:
( ! ) Fatal error: Class ‘SoapClient’ not found in E:/WebSrv/CI/system/libraries/WebService.php on line 17
解决方法:
打开php.ini,找到ph