0

I am using a php SOAP client, my code:

<?php 
try{
$soapclient = new SoapClient('https://...?wsdl',
    array(
        'login'    => '...',
        'password' => '...',
    ));
$param=array('uet:testMsj1'=>'Hello');
$response =$soapclient->servisTest($param);
var_dump($response);
echo '<br><br><br>';
$array = json_decode(json_encode($response), true);
print_r($array);
 echo '<br><br><br>';
      echo '<br><br><br>';
    foreach($array as $item) {
        echo '<pre>'; var_dump($item);
    }  
}catch(Exception $e){
    echo $e->getMessage();
}   
?>

And I am getting this error:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://...?wsdl' : failed to load external entity "https://...?wsdl"

I can only edit my php code because I don't have access to the API's. Note that it was working perfectly, suddenly without changing anything in the code I started to get this error.

Muradi98
  • 13
  • 2
  • 4
  • what is the response you got while manually trying to access the url ? – jeyanthinath Jan 31 '20 at 07:48
  • When manually trying to access the url, I get some xml code, so the problem is not with the url. Plus, this code was working perfectly like two days ago, I was getting a response, and suddenly without changing anything in the code, this happened – Muradi98 Jan 31 '20 at 09:26
  • will this be any help https://stackoverflow.com/questions/12875409/soap-php-fault-parsing-wsdl-failed-to-load-external-entity – jeyanthinath Jan 31 '20 at 09:28

0 Answers0