HIERARCHY_REQUEST_ERR and Spring-WS
Stuck on a issue for longer than 1 hour!
if you are using Spring-WS 1.5.x WebServiceTemplate
and having issues combining your content using JAXB binding. Do not use
org.springframework.ws.soap.axiom.saaj.SaajSoapMessageFactory
use the Axiom factory instead.
org.springframework.ws.soap.axiom.AxiomSoapMessageFactory]
There is a bug in the SAAJ factory that will produce the annoying exception:
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
Hope this helps someone!
Labels: HIERARCHY_REQUEST_ERR, Spring-WS
2 Comments:
Thanks for this post; it kept a couple of us from becoming insomniacs as well :)
I came across this link: https://issues.apache.org/jira/browse/AXIS2-3808
which indicates that the bug was created in 2008, so I initially assumed the bug was fixed. I haven't the time to investigate the underlying issue deeper to determine if the bug had been fixed or not, but switching to AxiomSoapMessageFactory *did* address the issue. We are using Spring 2.5.6 if that matters to anyone.
September 2, 2010 at 12:23 PM
Your welcome! :) Glad you did not have to overdose on redbull energy drink like I almost had to :)
October 10, 2010 at 12:02 PM
Post a Comment
Subscribe to Post Comments [Atom]
<< Home