|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-03 11:22 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Aug 09 01:00:02 2026 UTC |
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);