Bug #60481 [Com]: Can't send cookies when retrieving WSDL with SoapClient
| From: | jille at hexon dot cx | Date: | Fri, 09 Dec 2011 14:50:06 +0000 |
| Subject: | Bug #60481 [Com]: Can't send cookies when retrieving WSDL with SoapClient | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-165779@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60481&edit=1
ID: 60481
Comment by: jille at hexon dot cx
Reported by: jille at hexon dot cx
Summary: Can't send cookies when retrieving WSDL with
SoapClient
Status: Open
Type: Bug
Package: SOAP related
Operating System: n/a
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
We could also add cookies to stream-contexts (proposed it in https://bugs.php.net/bug.php?id=60482)
Previous Comments:
------------------------------------------------------------------------
[2011-12-09 14:38:30] jille at hexon dot cx
Description:
------------
When you construct a SoapClient it immediatly fetches the WSDL, before you have the chance to set
cookies. Our setup requires some cookie to be sent when fetching the WSDL which is currently
impossible.
It should be possible to give cookies to the SoapClient constructor which should be sent along with
the request for the WSDL.
Test script:
---------------
$soap = new SoapClient('http://webservice/wsdl', array('username'
=> 'x', 'password' => 'y'));
$soap->__setCookie('extra_thing', 'z');
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60481&edit=1