note 85634 rejected from function.soap-soapserver-construct by thiago
| From: | thiago@php.net | Date: | Wed, 10 Sep 2008 20:53:52 +0000 |
| Subject: | note 85634 rejected from function.soap-soapserver-construct by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144312@lists.php.net to get a copy of this message | ||
Note Submitter: artmakaroff at gmail dot com
----
There is an annoying bug with SoapServer::_construct(), when use a https URL as first parameter: php
crashes with fatal error.
Known workaround is to save wsdl locally and use local path as first parameter. I mean:
<?php
$wsdlFile = '/path/to/temp/dir/server.wsdl';
file_put_contents($wsdlFile, file_get_contents('https://your.url'));
$server = new SoapServer($wsdlFile);
?>
This bug doesn't appear when use a http URL.