Forum Discussion
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
Cirrocumulus
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.
- geeko_85254
Altostratus
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));
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com