try{
$client = new SoapClient("http://x.x.x.x/WebService.asmx?wsdl");
}
catch ( Exception $e ) { return $e->getMessage ();exit; }只是最后返回的,仍然是ThinkPHP默认的错误页面,部分错误内容如下:[14-07-24 13:22:07] /var/www/html/app/ThinkPHP/Lib/Core/Think.class.php (277) halt(SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://x.x.x.x/WebService.asmx?wsdl' : failed to load external entity "http://x.x.x.x/WebService.asmx?wsdl" /var/www/html/app/Common/common.php 第 545 行.)
[14-07-24 13:22:07] /var/www/html/app/ThinkPHP/Lib/Core/Think.class.php (292) Think::appError(1, SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://x.x.x.x/WebService.asmx?wsdl' : failed to load external entity "http://x.x.x.x/WebService1.asmx?wsdl", /var/www/html/app/Common/common.php, 545)
[14-07-24 13:22:07] () Think::fatalError()请问是我的异常处理代码有问题吗?该如何解决这个问题。 最佳答案