#31953 [Asn->Csd]: SoapClient::setHeader

From: Date: Mon, 03 Oct 2005 09:22:07 +0000
Subject: #31953 [Asn->Csd]: SoapClient::setHeader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85926@lists.php.net to get a copy of this message
ID: 31953 Updated by: dmitry@php.net Reported By: wico at cnh dot nl -Status: Assigned +Status: Closed Bug Type: Feature/Change Request Operating System: * PHP Version: 5.0.3 Assigned To: dmitry New Comment: SoapClient::__setSoapHeaders() was added into CVS HEAD, PHP_5_1 and PHP_5.0 Previous Comments: ------------------------------------------------------------------------ [2005-02-13 11:35:23] wico at cnh dot nl Description: ------------ I think it's usefull to have a SoapClient::setHeader (or something like that) for soap servers that requires static headers (mostly with authentication parameters) $soapHeader = new SoapHeader($ns, 'AuthHeader', array ( 'Username' => $user, 'Password' => $pass )); $soap = new SoapClient($wsdl, $options); /* so you can do this: */ $soap->setHeader($soapHeader); $soap->function1($parameters); $soap->function2($parameters); $soap->function3($parameters); /*instead of this:*/ $soap = new SoapClient($wsdl, $options); $soap->__soapCall('function1', $parameters, null, $soapHeader); $soap->__soapCall('function2', $parameters, null, $soapHeader); $soap->__soapCall('function3', $parameters, null, $soapHeader); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31953&edit=1

« previous php.bugs (#85926) next »