#46424 [Opn->Bgs]: Can't define a header without namespaces
| From: | hradtke@php.net | Date: | Mon, 24 Nov 2008 23:59:23 +0000 |
| Subject: | #46424 [Opn->Bgs]: Can't define a header without namespaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131277@lists.php.net to get a copy of this message | ||
ID: 46424
Updated by: hradtke@php.net
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