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 "Andreas Veithen (JIRA)" <ji...@apache.org> on 2010/07/23 21:39:51 UTC
[jira] Updated: (WSCOMMONS-552) DOOM's SOAPFactory#createSOAPHeader
fails to add header if envelope not built
[ https://issues.apache.org/jira/browse/WSCOMMONS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen updated WSCOMMONS-552:
--------------------------------------
Summary: DOOM's SOAPFactory#createSOAPHeader fails to add header if envelope not built (was: Adding a new Header to an Envelope without building it.)
> DOOM's SOAPFactory#createSOAPHeader fails to add header if envelope not built
> -----------------------------------------------------------------------------
>
> 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.