Zend_Soap_Client - Ignore HTTPS verification
- by Vincent
All,
I want to use Zend_Soap_Client class to load WSDL from an HTTPS url. Currently, if I call like this, it gives me an error even if the WSDL is perfectly valid:
$wsdlUrl = "https://abc.xyz.com/webservices/WeatherService.php?wsdl";
$soapClient = new Zend_Soap_Client($wsdlUrl);
The error I receive is:
SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://abc.xyz.com/webservices
/WeatherService.php?wsdl' : Start tag expected, '<' not found
If I browse to the WSDL url in the browser, it loads up the WSDL just fine. I think Zend_Soap_Client is trying to validate the certificate and failing. Is there a way to set the SOAP option to ignore the HTTPS verification and just load the WSDL?
Thanks