Hello,
I am trying to upgrade an existing SOAP2.2 installation to use the new JDOM
b7 release and am running into problems with the header parsing inside the
SOAP code. It seems that as the XML is being parsed, it is writing the same
node element twice, which causes a problem on the read.
With the old jdom, by the time it came to the DOM2Writer.print method, for
the case statement Node.ELEMENT_NODE, either elPrefix or elNameSpacePrefix
(don't remember which one) was coming out as null. Therefore,
printNameSpaceDecl was never invoked. With the new jdom, it is not null and
printNameSpaceDecl gets invoked (a few lines down in the code) which adds
the attribute again (for username and password). I just hacked it to set
prefixIsDeclared to be true by default instead of false so that
printNameSpaceDecl would never get invoked.
My quick solution was a very messy hack and I was wondering if anyone else
had tried SOAP 2.2 and the newer jdoms together. This was also happening
with jdom b6 as well.
Any information or ideas as to what I am doing incorrectly or a better
approach to resolve this would be appreciated.
Thanks,
Kevin Gerl