• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question uncaught soapfault exception Couldn't load from

questlovejc

New Pleskian
Hi

Sorry for my english

I have installed a web site in Plesk.
I have used Soap Client to call services. But i have this error:

AH01071: Got error 'PHP message: PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://mer3-ws.aleda.fr:443/MeR3_Soap/?wsdl' : failed to load external entity "https://mer3-ws.aleda.fr:443/MeR3_Soap/?wsdl"\n in /var/www/vhosts/zanex.masteredition.net/httpdocs/call2coin/api_aleda/Core.php:44\nStack trace:\n#0 /var/www/vhosts/zanex.masteredition.net/httpdocs/call2coin/api_aleda/Core.php(44): SoapClient->__construct()\n#1 /var/www/vhosts/zanex.masteredition.net/httpdocs/call2coin/supply.php(7): include('...')\n#2 {main}\n thrown in /var/www/vhosts/zanex.masteredition.net/httpdocs/call2coin/api_aleda/Core.php on line 44'

Since SSH terminal, i cannot reach the wsdl with curl and wget (timeout).

Below my php code:

// Initialize WS with the WSDL
$context = stream_context_create([
'ssl' => [
// set some SSL/TLS specific options
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => false,
'cafile' => '/etc/ssl/certs/cacert.pem'
],
]);
$client = new SoapClient($configs['url'], ['cache_wsdl' => 0,
'trace' => 1,
'stream_context' => $context,
'cache_wsdl' => WSDL_CACHE_NONE
]);


Thank you for your help
 
I recommend to post this question to stackoverflow.com, because it is not related to Plesk, but a question on how to properly do SOAP requests.
 
Back
Top