#45308 [Opn->Fbk]: SoapClient() does not use the https cert to fetch the wsdl file
| From: | jani@php.net | Date: | Tue, 28 Apr 2009 18:43:50 +0000 |
| Subject: | #45308 [Opn->Fbk]: SoapClient() does not use the https cert to fetch the wsdl file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136472@lists.php.net to get a copy of this message | ||
ID: 45308
Updated by: jani@php.net
Reported By: edman007 at edman007 dot com
-Status: Open
+Status: Feedback
Bug Type: SOAP related
Operating System: Linux
PHP Version: 5.2.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2008-06-19 02:22:59] edman007 at edman007 dot com
Description:
------------
when using the local_cert/passphrase options to soapclient() soapclient
will not use the https cert specified with local_cert to connect to the
server that contains the wsdl file (it will however use it when making
the actual soap request). I understand that this may not always be
needed, but their should be no reason that a wsdl file need to be
public, so maybe there could be an option to use the
local_cert/passphrase when fetching the wsdl (and automatically disable
wsdl cache for those urls if need be [not sure if you guys consider that
a security issue])
Reproduce code:
---------------
$mailer = new SoapClient(EMAIL_ACCESS_URL, array('classmap',
$wsdl_classmap, 'local_cert' => EMAIL_HTTPS_CERT,'passphrase' =>
EMAIL_CERT_PASS));
Expected result:
----------------
not throw an error
Actual result:
--------------
throws error saying it cannot parse the wsdl...which is very
misleading, it mentions about errors fetching the file
Note: It can be worked around by fetching it with curl and writing to a
temp file and using that to construct the SoapClient() object
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45308&edit=1