Hello,
I have SOAP web services URLs to do CRUD (create/read/update/delete) operations with the data, but can't access none of them via PHP. I used following article for a guide, doing same as described there:
<?php $soapWsdl = 'http://{IP}:{PORT}/TEST/WS/SystemService'; try { $options = [ 'cache_wsdl' => 0, 'trace' => 1, 'stream_context' => stream_context_create(array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true ) )), 'proxy_host' => "{MY SERVER IP WHICH WAS WHITELISTED}", 'soap_version' => SOAP_1_1, 'connection_timeout' => 120, 'login' => 'username', 'password' => 'password', ]; $client = new SoapClient($soapWsdl, $options); $result = $client->Companies(); print_r($result); } catch (Exception $e){ echo $e->getMessage(); }
?>
but I still see following error:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://{IP}:{PORT}/TEST/WS/SystemService' : failed to load external entity "http://{IP}:{PORT}/TEST/WS/SystemService"
Services are running in a browser. I also tried to enable NTLM Authentication for using NTLMSoapClient but no luck. Tried so many other variants but still see "Connection timeout" error. What's going on please? I need urgent help on this matter. Can someone help me to figure this out?
Thanks