Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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

1
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

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.

0