You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Lorenzo (JIRA)" <ji...@apache.org> on 2010/07/23 17:25:19 UTC
[jira] Updated: (WSCOMMONS-552) Adding a new Header to an Envelope
without building it.
[ https://issues.apache.org/jira/browse/WSCOMMONS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lorenzo updated WSCOMMONS-552:
------------------------------
Attachment: TEST.java
Test that reproduce the bug.
> 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
> 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.