ID: 46424 Updated by: [EMAIL PROTECTED] Reported By: valer_crisan at yahoo dot com -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Linux/Windows PHP Version: 5.2.6 New Comment:
Please see: http://bugs.php.net/bug.php?id=31755 dmitry: "SOAP specification doesn't allow non-namespace-qualified headers." In fact, this is a specific test case for SOAP conformance. Refer to: http://www.w3.org/2000/xp/Group/2/03/11/soap-1.2-conformance.html Test:non-nsqualified-attr-test Previous Comments: ------------------------------------------------------------------------ [2008-10-29 21:55:01] valer_crisan at yahoo dot com 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 this bug report at http://bugs.php.net/?id=46424&edit=1