geeko_85254
Jul 18, 2016Altostratus
Solved
iControl php - soap client broken after 12.1 upgrade
I have a iControl php apps that worked in V11.6 that no longer work in V12.1 due to SoapClient errors.
PHP Code...
global $soapClient;
$location="https://$hostname/iControl/iControlPortal.cgi?";
$wsdl="https://$hostname/iControl/iControlPortal.cgi?WSDL=LocalLB.VirtualServer";
$soapClient = new SoapClient($wsdl,array('location'=>$location,'login'=>$username,'password'=>$password));
If is use a V11 host is works, if I use a V12 host it fails. Any ideas?
I figured out. I was running php 5.3 which does not support tlsv1. V12.1 won't accept "insecure" connections anymore. I upgraded php to 5.4 and added ssl_method to soapclient for tls...
$soapClient = new SoapClient($wsdl,array('location'=>$location,'login'=>$username,'password'=>$password,'ssl_method'=>SOAP_SSL_METHOD_TLS));