Menu

#48 getQName method of DOMUtils return QName without prefix

open
nobody
None
5
2009-06-10
2009-06-10
Anonymous
No

The class com.ibm.wsdl.util.xml.DOMUtils has a method:

public static QName getQName(String prefixedValue,
Element contextEl,
Definition def)
throws WSDLException

but the QName instance returned lack prefix. because it use two parameter constructor of QName:

return new QName(namespaceURI, localPart, prefix);

This prefix is lost and information provided is not sufficient for analysing the WSDL. For example, the elementName attribute of wsdl:part element.

Discussion