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

From: Date: Sat, 12 Mar 2005 12:21:54 +0000
Subject: #31953 [Opn->Asn]: SoapClient::setHeader
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75246@lists.php.net to get a copy of this message
ID: 31953 Updated by: andrey@php.net Reported By: wico at cnh dot nl -Status: Open +Status: Assigned Bug Type: Feature/Change Request Operating System: * PHP Version: 5.0.3 -Assigned To: +Assigned To: dmitry 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 (#75246) next »