php - 未捕获的 SoapFault 异常 : [WSDL] SOAP-ERROR: Parsing WSDL Couldn't load from 'http://88. XXX.XXX.XXX:8080/

标签 php soap wsdl

我在从 php 调用网络服务时遇到问题。 使用我的个人网站,没有错。但是当我从我的专用服务器尝试时:

fatal error :未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法从“http://88.XXX.XXX.XXX:8080/SongBoxServeur/GestionSongBox?wsdl”加载':无法加载外部实体“http://88.XXX.XXX.XXX:8080/SongBoxServeur/GestionSongBox?wsdl

我的网站和专用服务器上的相同 .php :

 function __construct( $_ip, $_num_serie) {
 $this->ip = $_ip;
$this->num_serie = $_num_serie;
$this->soap = new SoapClient("http://".$this->ip.":8080/SongBoxServeur/GestionSongBox?wsdl",array(
                                    'trace' => true,
                                    'exceptions' => true));
                                    }

可能是什么问题? (两者都启用了 SOAP )提前致谢

最佳答案

我发现我的问题:php.ini。

 default_socket_timeout = 0

更改方式:

default_socket_timeout =300

现在,它的作品!!!

关于php - 未捕获的 SoapFault 异常 : [WSDL] SOAP-ERROR: Parsing WSDL Couldn't load from 'http://88. XXX.XXX.XXX:8080/,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17284735/

相关文章:

java - 如何 stub wsdl 服务端点?

xsd - 单个 WSDL 中的多个 XML 模式是否需要使用 xsd :import or not?

php - 错误 500 : Premature end of script headers

javascript/php 不会加载依赖下拉列表中第一个选项的数据

java - Spring @AutoWired 始终为 null

wcf - dot.net3.5中带有附件的 SOAP

xml - jax-ws 如何在 wsdl 中包含 xml 模式而不是 xsd 导入?

php - preg_grep 搜索不区分大小写

php - Yii 框架 : Controller/Action url & parameters

WCF OperationContract-Action和ReplyAction的意义是什么?