I'm fairly new to php and am struggling a but. I am trying to do a SOAP call and the php file works on a CentOS 7
installation but on CentOS 8
, the same php file returns and error.
I don't know what I'm missing but I have tried using the IP address instead of api.learningassistant.com
and I've also tried adding libxml_disable_entity_loader(false);
to the php file before calling SoapClient
.
I have also added ['trace' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY]
to the end of the SoapClient
call but none of the above have worked.
This is the error that I receive in /var/log/php-fpm/www-error.log:
PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.learningassistant.com/webservices/soap/authenticate.cfc?wsdl' : failed to load external entity "https://api.learningassistant.com/webservices/soap/authenticate.cfc?wsdl"
in /var/www/html/la_companies.php:38
Stack trace:
#0 /var/www/html/la_companies.php(38): SoapClient->SoapClient('https://api.lea...', Array)
#1 /var/www/html/la_companies.php(28): las_api->la_auth()
#2 /var/www/html/la_companies.php(81): las_api->__construct('https://api.lea...', 'zzz', '12345678')