I'm creating connection with WSDL file, which I have on server. Yesterday it worked fine, but today I can't connect to it and getting this error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://myurl/example.asmx?WSDL' : failed to load external entity "https://myurl/example.asmx?WSDL"
It works fine on others PC's.
My code:
//allow go through ssl key
$sslContext = stream_context_create(['ssl' => [
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
]
]);
//create connection with wsdl include auth
$soapclient = new SoapClient('https://myurl/example.asmx?WSDL', [
'stream_context' => $sslContext,
'verify' => false,
'logger' => true,
'login' => $login,
'password' => $pass
]
);