Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#36 Incorrect computation of namespace

open
nobody
None
5
2007-06-28
2007-06-28
Anonymous
No

The DOMUtils.getNamespaceURIFromPrefix() method does an incorrect namespace computation when the prefix is null.

For null prefix it should never return "null" if there is no "xmlns" declaration in the parents but return "" (empty string) which is NO_NAMESPACE so that the parser does not break with an WSDLException saying it could not compute the namespace.

The workaround for now is to specify "xmlns=''" in the root element which should not be necessary to do.

Discussion