Forum Discussion
keegan_morrison
Nimbostratus
Oct 10, 2007ssl error when connecting from with php
Hi all. I'm working on writing an interface to display host information on our F5 in our company wiki. I'm trying to set up php to conenct to the f5, and i'm not having much luck.
I followed...
keegan_morrison
Nimbostratus
Oct 11, 2007Edit: This issue has been resolved, please see the bottom of the next post
Hi Joe,
I haven't fixed the problem, but i've found something out. I'm still using the local wsdl files, and I think there might be a problem in there somewhere. I did some troubleshooting, and here's what I've found:
the URL in my wsdl file is correct (copying & pasting it into my browser takes me to the appropriate location on my F5) so that isn't the problem. The location to that wsdl file in my php script is correct (i can also copy that url and visit it in my browser, and it prints out the wsdl file just fine.)
So, I was curious and I changed the URL location to my F5 in the wsdl file (the part $location="https://$hostname/iControl/iControlPortal.cgi?";
require_once 'SOAP/Client.php';
$soapoptions = array('namespace' => 'urn:iControl');
$proxy_parms = array( 'user' => $username, 'pass' => $password);
$params = array();
$client = new SOAP_Client($wsdl_url, true, '', $proxy_parms );
$client->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0);
$client->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0);
$response = $client->call('get_list', $params, $soapoptions);
if (PEAR::isError($response))
{
print "an error occurred in the call
";
echo $response->message;
}
Now, when i visit the php page, i get the following error:
"Unable to retrieve WSDL https://hostname/iControl/iControlPortal.cgi?WSDL=LocalLB.Pool"
However, I know that url is correct, as again it pulls up in my browser. I know this isn't a firewall issue, bevause i can telnet to the server on the apropriate ports from the host.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects