Adding a new Header to an Envelope without building it.
-------------------------------------------------------

                 Key: WSCOMMONS-552
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-552
             Project: WS-Commons
          Issue Type: Bug
          Components: AXIOM
    Affects Versions: Axiom 1.2.8
         Environment: Java 1.5
            Reporter: Lorenzo


If i create an Envelope that hasn't Header and try to add it without building 
the envelope, it won't works.

After a few debugging i find that the new Header element isn't added to the 
envelope properly. 
So i fixed adding those lines:

((SOAPHeaderImpl) header).setParent(envelope);
((SOAPEnvelopeImpl)envelope).setLastChild(body);
((SOAPEnvelopeImpl)envelope).setFirstChild(header);
((NodeImpl)header).setNextOMSibling(body);

Check the TEST in attachment.

Cheers,
Lorenzo

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to