From: snovak7 at gmail dot com Operating system: All PHP version: 5.2.3 PHP Bug Type: Feature/Change Request Bug description: Add SoapServer header support
Description: ------------ When I send a SOAP Request to a server, I want to authenticate first for a Response, I have to send credentials to "log" in. Normally this is part of Header. Since client has support to add Header to a Request, there's lack of it on the server side. My suggestion is since normally when you send a Request is a one time request that calls a function with argument, that there should be added argument to that same function as the first argument, but only with header data and if there's no header information then this argument should be null. Reproduce code: --------------- function server_code( $body, $header ) { return $back; } $server = new SoapServer( 'somefile.wsdl' ); $server->addFunction( "server_code" ); $server->handle(); Expected result: ---------------- usable $header -- Edit bug report at http://bugs.php.net/?id=41804&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41804&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41804&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41804&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41804&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41804&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41804&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41804&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41804&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41804&r=support Expected behavior: http://bugs.php.net/fix.php?id=41804&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41804&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41804&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41804&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41804&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41804&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41804&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41804&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41804&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41804&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41804&r=mysqlcfg