ZF-11273: Zend_Soap_Client via HTTPS does not work, cannot load WSDL

Issue Type: Bug Created: 2011-04-08T06:31:39.000+0000 Last Updated: 2011-06-28T16:29:53.000+0000 Status: Closed Fix version(s): Reporter: Thomas Rauers (thomas.rauers) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Soap_Client

Related issues: Attachments:


Reference to Zend support case 00035125, "Zend_Soap_Client via HTTPS" [ ref:00D2FyX.5007GD4q4:ref ] Supervised by Mr Shlomo Vanunu, Zend Global Support

There is no problem to access webservices via http, but it seems to be impossible via httpS. We always get the error message

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://[soapurl]?wsdl' : failed to load external entity "https://[soapurl]?wsdl" in /usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client/Common.php:51 Stack trace: #0 /usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client/Common.php(51): SoapClient->SoapClient('https://integra...', Array) #1 /usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client.php(1024): Zend_Soap_Client_Common->__construct(Array, 'https://integra...', Array)


/usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client.php(1180): Zend_Soap_Client->_initSoapClientObject() #3 /usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client.php(1104): Zend_Soap_Client->getSoapClient() #4 /www/zendsvr/htdocs/test/g210_test_zendsoap.php(204): Zend_Soap_Client->__call('AnfragePerson', Array) #5 /www/ze in /usr/local/zendsvr/share/ZendFramework/library/Zend/Soap/Client/Common.php on line 51

The weird thing is that it works perfectly with the external package "nuSOAP"!

Unfortunately, nuSOAP seems to be quite slow, so we wanted to compare it with the standard PHP soapClient and Zend_Soap_Client.

Finally, we found this comment:

"BTW, PHP 5.3 version of Zend Server 5.0.2 on iSeries does not support Zend_Soap_Client to access web service over the SSL."…

Is this true? What about PHP 5.3.3 and Zend Server 5.0.4?


Posted by Adam Lundrigan (adamlundrigan) on 2011-04-29T18:37:21.000+0000

At my workplace our development and production platforms run PHP v5.3.3 and Zend Framework v1.11.5 on Apache v2.2.16 (not Zend Server) and we've had no issues using Zend_Soap_Client to access SOAP web services over HTTPS.

Could you provide the code sample from your application which triggers this error?

Posted by Thomas Rauers (thomasrauers) on 2011-05-02T07:53:51.000+0000


here is the code sample:

'UTF-8', 'soap\_version' => SOAP\_1\_1)); // Standard PHP would look like // $SoapClient = new soapclient($wsdl); // nuSoap would like // $SoapClient = new nusoap\_client($wsdl, 'wsdl'); $SoapClient->soap\_defencoding = 'UTF-8'; } catch (Exception $e) { echo 'Exception ',$e->getCode(),' caught: ', $e->getMessage(), "\\n"; } $element\_name = 'Anfrage\_Person\_A\_Anfrage'; $operation\_name = 'AnfragePerson'; $header = ""; $footer = "".$element\_name.">"; // $param = array(...) $xml = new arr2xml($param); $xmlstring=$xml->get\_xml(); $result = $SoapClient->AnfragePerson(utf8\_encode(str\_replace('&', '&', $header.$xmlstring.$footer))); // Standard PHP does not work either // $result = $SoapClient->\_\_call($operation\_name, utf8\_encode(str\_replace('&', '&', $header.$xmlstring.$footer)), $soapoptions); // nuSoap will work: // $result = $SoapClient->call($operation\_name, utf8\_encode(str\_replace('&', '&', $header.$xmlstring.$footer)), '', '', false, true, 'rpc'); ?>

Posted by Shlomo Vanunu (shlomov) on 2011-06-28T14:54:19.000+0000

Any news on this issue?

Posted by Adam Lundrigan (adamlundrigan) on 2011-06-28T16:28:53.000+0000

I'm fairly certain this has nothing to do with Zend_Soap. The stacktrace shows that the error originates in Zend_Soap_Client_Common, but since it merely extends PHP's built-in SoapClient class, there isn't much that can be done for you from the Zend Framework side.

That said, my totally awesome googling skills have revealed a number of posts on the Zend Forums in which users of Zend Server complain about the same issue (ie: works with nuSOAP but not with SoapClient/Zend_Soap). None of them appear to be resolved:

That last one backs up what the OP mentioned at the end of their post: PHP 5.3 version of Zend Server 5.0.2 on iSeries does not support Zend_Soap_Client to access web service over SSL. Apparently it was supposed to be fixed in 5.0.3, but I don't use Zend Server and so can't comment on that.

My summation: This is an issue with Zend Server and not Zend Framework. Please contact Zend Support, or ask the Zend Server CE community for help.

Posted by Adam Lundrigan (adamlundrigan) on 2011-06-28T16:29:53.000+0000

Closing ticket. Not a Zend Framework issue.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.