I've spent the last couple of days trying to figure out why my soap client can't connect, any help is appreciated. Very straightforward issue, my soap client;
$soapClient = new SoapClient("AXLAPI.wsdl", array('trace'=>true, 'exceptions'=>true,'location'=>"https://ip_address:8443/axl",
'login' => "username",'password'=> "password"));
Yields this very common error;
Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /var/www/html/axl_test.php:18 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://ip_address...', 'CUCM:DB ver=8.5...', 1, 0) #1 /var/www/html/axl_test.php(18): SoapClient->__call('getLine', Array) #2 /var/www/html/axl_test.php(18): SoapClient->getLine(Array) #3 {main} thrown in /var/www/html/axl_test.php on line 18
I run this exact same code on another server and it runs fine. I'm positive this is related to an SSL issue because a wireshark capture several retransmissions. Also, when I purposefully change the username and password to something false, the error stays the same. So, it must be occuring during the handshake. I can access the remote server from the soap client server with no problems and am able to log in.
The error seems to show that it's trying to connect via HTTP, but my URL specifically calls for HTTPS to be used. I really don't understand where the issue can be.