axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franz Fehringer" <...@isogmbh.de>
Subject undeclared xml namespaces
Date Tue, 17 Jan 2006 14:09:48 GMT
Hello,

For me AxisC (both 1.5 and 1.6) generates invalid SOAP messages referring to
undeclared namespaces.
The problem occurs only if i set soap:header elements for inclusion in the
SOAP message.
Possibility 1
IHeaderBlock* phb = pegs->createSOAPHeaderBlock("Token",
"http://www.pegs-pegstour.com/API/XMLSchema/1.0.1");
i.e. no namespace explicitely given.
In this case a correct soap:body containing only ns1 as prefix and declaring
it beforehand is created.
But the soap:header is wrong using the ns1 prefix without declaring it.
Possibility 2
IHeaderBlock* phb = pegs->createSOAPHeaderBlock("Token",
"http://www.pegs-pegstour.com/API/XMLSchema/1.0.1", "ns1");
i.e. namespace explicitely given.
In this case a correct soap:header containing ns1 as prefix and declaring it
beforehand is created.
But the soap:body is wrong using an additional ns2 prefix without declaring
it.
I vaguely remember this being discussed already.
Can anyone help?

Thanks

Franz

Dr. Franz Fehringer (Dipl. Math.)
____________________________________
ISO Software Systeme
Eichendorffstrasse 29
90491 N├╝rnberg
Deutschland

Tel. : +49/(911) - 99594-0
Fax  : +49/(911) - 99594-580

mailto:feh@isogmbh.de
http://www.isogmbh.de


Mime
View raw message