Forum Discussion

geeko_85254's avatar
geeko_85254
Icon for Altostratus rankAltostratus
Jul 18, 2016
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));

2 Replies

  • Hamish's avatar
    Hamish
    Icon for Cirrocumulus rankCirrocumulus

    What's the error? Preferably debug output of SOAP request and response... SSLDump may be required to show that if you can't get PHP to dump the conversation.

     

  • 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));