我无法在PHP块中捕获SoapFault异常。我的代码也耗尽了等待服务器响应的max_execution_time ( 120秒)。
我看到消息了
D:\wamp\www\dev6\application\libraries\Search.php:161 .警告: SoapFault异常: HTTP
我的密码
try {
$oClient = new SoapClient( $this->CI->config->item('indexing_wsdl_url'),
array(
"trace" => true,
"exceptions" => true,
)
);
$result = $oClient->add(
array(
// Application specific parameters goes here
)
);// (this is line number 161 as seen in the warning)
} catch (SoapFault $fault) {
log_message('error', $fault->getMessage());
}
我正在使用Codeignit3.0框架,这个特定的代码驻留在一个库中。
这里有什么问题?
问候
发布于 2016-01-10 22:00:47
问题是时间到了。
当我给脚本更多的执行时间时,错误被捕获了。
https://stackoverflow.com/questions/34576382
复制相似问题