ID: 31953
Updated by: [EMAIL PROTECTED]
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