无法捕获SoapFault异常.坏网关


Unable to catch SoapFault exception. Bad Gateway

我无法在PHP try-catch块中捕获SoapFault异常。我的代码也用完了等待服务器响应的max_execution_time(120秒)。

我看到消息

警告:未捕获的SoapFault异常:D:''wamp''www''dev6''application''libraries''Search.php中的[HTTP]坏网关:161

我的代码,

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());
} 

我使用的是Codeigniter 3.0框架,这个特定的代码位于一个库中。

这里可能有什么问题?

问候

问题在于超时。

当我给脚本更多的执行时间时,发现了这个错误。