Error in SoapClient with php 7.1 on shared server

0

I have the following code that works perfectly on host location:

$wsdl ='http://ws.portaledu.com.br:8051/wsConsultaSQL/MEX?wsdl';

$client = new SoapClient($wsdl,array(
    'trace' => true,
    'exceptions' => true,
    'login' => $login,
    'password' => $password
));

When I put in the hosting, this code returns the error 500:

  

[24-May-2018 09:57:01 America / Sao_Paulo] PHP Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: WSDL parsing: Could not load from ' link ': failed to load external entity" link "    in /home/estiloso/public_html/fametro/resultado/teste.php:16   Stack trace:

     

0 /home/estiloso/public_html/fametro/result/teste.php(16): SoapClient-> SoapClient (' link .. . ', Array)

     

1 {main}     thrown in /home/estiloso/public_html/fametro/resultado/teste.php on line 16

What will be missing from the server, I'm using PHP 7.1

    
asked by anonymous 24.05.2018 / 14:59

1 answer

0

Your problem is probably happening from the file php.ini

On the server with error, uncomment the line:

;extension=php_openssl.dll

Removing ;

    
24.05.2018 / 15:27