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:22:49 UTC

[jira] Created: (WSCOMMONS-552) Adding a new Header to an Envelope without building it.

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.


[jira] Updated: (WSCOMMONS-552) Adding a new Header to an Envelope without building it.

Posted by "Lorenzo (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WSCOMMONS-552) Adding a new Header to an Envelope without building it.

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WSCOMMONS-552) DOOM's SOAPFactory#createSOAPHeader fails to add header if envelope not built

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (WSCOMMONS-552) DOOM's SOAPFactory#createSOAPHeader fails to add header if envelope not built

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen resolved WSCOMMONS-552.
---------------------------------------

    Resolution: Fixed

Fixed by synchronizing DOOM's SOAPEnvelopeImpl#addChild method with that of LLOM.

> 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.