Zend_Soap_Client - Ignore HTTPS verification
Posted
by Vincent
on Stack Overflow
See other posts from Stack Overflow
or by Vincent
Published on 2010-05-11T17:43:02Z
Indexed on
2010/05/11
17:44 UTC
Read the original article
Hit count: 459
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
© Stack Overflow or respective owner