php 致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法加载
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12690722/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from
提问by Stanislas Piotrowski
I'm doing some SOAP exercises
我正在做一些 SOAP 练习
But, I cannot get that to work on WAMP.
但是,我不能让它在 WAMP 上工作。
Error which I'm getting is:
我得到的错误是:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL:8080' : failed to load external entity "https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL:8080" in C:\wamp\www\GESTION\add_debiteur.php:128 Stack trace: #0 C:\wamp\www\GESTION\add_debiteur.php(128): SoapClient->SoapClient('https://www.cre...') #1 C:\wamp\www\GESTION\index.php(1360): include('C:\wamp\www\GES...') #2 {main} thrown in C:\wamp\www\GESTION\add_debiteur.php on line 128
致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP 错误:解析 WSDL:无法从“ https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL:8080”加载:无法加载外部实体“ https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL:8080”在 C:\wamp\www\GESTION\add_debiteur.php:128 堆栈跟踪:#0 C:\wamp\www \GESTION\add_debiteur.php(128): SoapClient->SoapClient(' https://www.cre...') #1 C:\wamp\www\GESTION\index.php(1360): include('C :\wamp\www\GES...') #2 {main} 在 C:\wamp\www\GESTION\add_debiteur.php 第 128 行中抛出
$client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?WSDL");
$wsdl = "https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL";
$client = new SoapClient($wsdl);
Google does not know the answer. Any suggestion much appreciated.
谷歌不知道答案。任何建议非常感谢。
回答by Stanislas Piotrowski
The trouble was solved. In fact when I had so errors using WAMP(orange icon) I decided to set it up again.
麻烦就解决了。事实上,当我在使用 WAMP(橙色图标)时出现如此错误时,我决定再次设置它。
So I installed the newest version of WAMP but there was no the same php.ini as I used previously and in fact the trouble was that on the php.ini I had to make active the line ;extension=php_openssl.dll
所以我安装了最新版本的 WAMP 但没有与我以前使用的相同的 php.ini 实际上问题是在 php.ini 上我必须激活该行 ;extension=php_openssl.dll
so I just removed the ;character and this line has become like extension=php_openssl.dll
所以我刚刚删除了这个;角色,这条线变得像extension=php_openssl.dll
Now it works fine.
现在它工作正常。
回答by desarrolla2
you can try this
你可以试试这个
echo file_get_contents($wsdl);
die();
and them you can view if you can access to $wsdl from php.
您可以查看它们是否可以从 php 访问 $wsdl。
回答by BalaNagaPrasad
I have installed wamp server 3.0 and I got the same error (Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load).
我已经安装了 wamp server 3.0 并且遇到了同样的错误(致命错误:未捕获的 SoapFault 异常:[WSDL] SOAP-ERROR:解析 WSDL:无法加载)。
To solve it, I have uncommented in my php.ini file below line of code:
为了解决这个问题,我在我的 php.ini 文件中取消了以下代码行的注释:
;extension=php_openssl.dll
;扩展= php_openssl.dll
After enabling this line, restart your Wamp server. It's working for me.
启用此行后,重新启动 Wamp 服务器。它对我有用。
回答by Emin Kad?o?lu
ini_set("default_socket_timeout", "300");
ini_set("default_socket_timeout", "300");
or php.ini change (default_socket_timeout). Work
或 php.ini 更改(default_socket_timeout)。工作

