Fatal error: SoapFault exception: [WSDL] SOAP-ERROR: WSDL analysis: Failed to load from

I am doing SOAP exercises

But I can not get this to work with WAMP.

The error I get is:

Fatal error: SoapFault exception: [WSDL] SOAP-ERROR: WSDL analysis: failed load from ' https://www.creditsafe.fr/getdata/service/CSFRServices.asmx?WSDL:8080 ': failed to load external object " 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} selected C: \ wamp \ www \ GESTION \ add_debiteur.php on line 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 is much appreciated.

+10
soap php wamp
source share
4 answers

The problem is resolved. In fact, when I had such errors using WAMP (orange icon), I decided to configure it again.

So, I installed the newest version of WAMP, but there was not the same php.ini as I used before, and in fact the problem was that on php.ini I had to activate the line ;extension=php_openssl.dll

so I just deleted the character ; , and this line became similar to extension=php_openssl.dll

Now it works great.

+23
source share

you can try this

 echo file_get_contents($wsdl); die(); 

and they can be viewed if you can access $ wsdl from php.

+11
source share

I installed wamp server 3.0 and got the same error (Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: WSDL parsing: failed to load).

To solve this problem, I split in the php.ini file below the line of code:

; extension = php_openssl.dll

After enabling this line, restart the Wamp server. This works for me.

0
source share

ini_set ("default_socket_timeout", "300");

or change php.ini (default_socket_timeout). Job

0
source share

All Articles