gpt4 book ai didi

PHP SoapClient 超时

转载 作者:行者123 更新时间:2023-12-02 15:42:56 35 4
gpt4 key购买 nike

我正在尝试从运行该服务的同一台服务器上调用 Soap 客户端以进行测试。我的 WSDL 在:http://www.installittoday.com/api/server.php?wsdl我正在尝试简单地加载它:


$client = new SoapClient('http://www.installittoday.com/api/server.php?wsdl');

但我得到了错误:


Warning: SoapClient::SoapClient(http://www.installittoday.com/api/server.php?wsdl) [soapclient.soapclient]: failed to open stream: Connection timed out in /home/installi/public_html/api/client.php on line 4

Warning: SoapClient::SoapClient() [soapclient.soapclient]: I/O warning : failed to load external entity "http://www.installittoday.com/api/server.php?wsdl" in /home/installi/public_html/api/client.php on line 4

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://www.installittoday.com/api/server.php?wsdl' : failed to load external entity "http://www.installittoday.com/api/server.php?wsdl" in /home/installi/public_html/api/client.php:4 Stack trace: #0 /home/installi/public_html/api/client.php(4): SoapClient->SoapClient('http://www.inst...') #1 {main} thrown in /home/installi/public_html/api/client.php on line 4

然而,我可以从我的另一个站点很好地设置客户端。这是防火墙问题还是什么?

最佳答案

确保在您的 php.ini

中启用这些扩展
extension=php_curl.dll 
extension=php_openssl.dll
extension=php_soap.dll

关于PHP SoapClient 超时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/800215/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com