SoapClient https bug xampp 1.7.7
Posted: 21. March 2012 20:20
On my linux workstation this code works
however the same code on my windows machine under xampp 1.7.7 returns the error
"Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.example.com/service.php?wsdl' failed to load external entity ... "
I have verified that this soap end point works properly using soapUI.
previous versions of xampp required php_openssl extension to be uncommented in php.ini
this does not seem to be the cause anymore as my installation does not even contain that extension commented out as previous xampp version have.
How do I properly configure xampp so that a simple soap connection over https will work properly?
Thanks,
Lance
- Code: Select all
<?php
$url = "https://www.example.com/service.php?wsdl";
$client = new SoapClient($url);
$result = $client->authenticate('username','password');
var_dump($result);
however the same code on my windows machine under xampp 1.7.7 returns the error
"Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.example.com/service.php?wsdl' failed to load external entity ... "
I have verified that this soap end point works properly using soapUI.
previous versions of xampp required php_openssl extension to be uncommented in php.ini
this does not seem to be the cause anymore as my installation does not even contain that extension commented out as previous xampp version have.
How do I properly configure xampp so that a simple soap connection over https will work properly?
Thanks,
Lance