You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Srinath Perera (JIRA)" <ji...@apache.org> on 2005/07/28 16:00:26 UTC

[jira] Commented: (AXIS2-55) Children order in SOAPElements

    [ http://issues.apache.org/jira/browse/AXIS2-55?page=comments#action_12317086 ] 

Srinath Perera commented on AXIS2-55:
-------------------------------------

Do you need to add Header/Body at all?

I see two ways to fix this
1) add the SOAPHeader and SOAPBody once the SOAPEnvelope is created and we do not need the add them at all. Only down side is there will be a Header element created all the time. 

2) Add the Body by default and create the Header when getHeader() called. it will add a additional if statement

If we can not fix it .. or we are redy to live with this let us colse the issue saying it. I see no point keeping this open.

Thanks
Srinath

> Children order in SOAPElements
> ------------------------------
>
>          Key: AXIS2-55
>          URL: http://issues.apache.org/jira/browse/AXIS2-55
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: om
>     Reporter: Eran Chinthaka

>
> All the SOAPElements uses the children methods of the OMElement. So ordering of elements are not according to the spec, if they are not added properly. For example, if one add a body and then a header to the soap envelope, the serialisation and the chidlren order within the envelope is the order it was added. Not header first and then body.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira