From: valer_crisan at yahoo dot com Operating system: Linux/Windows PHP version: 5.2.6 PHP Bug Type: SOAP related Bug description: Can't define a header without namespaces
Description: ------------ I am unable to create a header that doesn't have a namespace. I need to create a header in the form: <SOAP-ENV:Header> <SessionHeader><sessionId> ... </sessionId></SessionHeader> </SOAP-ENV:Header> but the API forces me to specify a namespace for the header in the SOAPHeader constructor and it doesn't accept null or empty string. You can find the related WSDL here: http://www2.openair.com/wsdl.pl?wsdl Reproduce code: --------------- $header = new SoapHeader('', 'SessionHeader', $sessVar); Expected result: ---------------- The header <SessionHeader><sessionId> ... </sessionId></SessionHeader> is created. Actual result: -------------- Error: "SoapHeader::SoapHeader(): Invalid parameters. Invalid namespace" is thrown. -- Edit bug report at http://bugs.php.net/?id=46424&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46424&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46424&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46424&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46424&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46424&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46424&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46424&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46424&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46424&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46424&r=support Expected behavior: http://bugs.php.net/fix.php?id=46424&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46424&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46424&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46424&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46424&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46424&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46424&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46424&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46424&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46424&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46424&r=mysqlcfg