[ 
https://issues.apache.org/jira/browse/WSCOMMONS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen updated WSCOMMONS-552:
--------------------------------------

             Assignee: Andreas Veithen
        Fix Version/s: Axiom 1.2.10
    Affects Version/s: Axiom 1.2.9

Confirmed. Looks like a problem specific to DOOM. LLOM works fine.

> 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, Axiom 1.2.9
>         Environment: Java 1.5
>            Reporter: Lorenzo
>            Assignee: Andreas Veithen
>             Fix For: Axiom 1.2.10
>
>         Attachments: TEST.java
>
>
> 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