Bug #60481 [Opn->Nab]: Can't send cookies when retrieving WSDL with SoapClient

From: Date: Fri, 12 Feb 2021 15:55:21 +0000
Subject: Bug #60481 [Opn->Nab]: Can't send cookies when retrieving WSDL with SoapClient
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232096@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 Updated by: cmb@php.net Reported by: jille at hexon dot cx Summary: Can't send cookies when retrieving WSDL with SoapClient -Status: Open +Status: Not a bug Type: Bug Package: SOAP related Operating System: n/a PHP Version: 5.3.8 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: You can add cookies by using a stream context. Previous Comments: ------------------------------------------------------------------------ [2011-12-09 14:50:06] jille at hexon dot cx We could also add cookies to stream-contexts (proposed it in https://bugs.php.net/bug.php?id=60482) ------------------------------------------------------------------------ [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

« previous php.bugs (#232096) next »