[ http://issues.apache.org/jira/browse/AXIS2C-132?page=all ] Nandika Jayawardana resolved AXIS2C-132: ----------------------------------------
Resolution: Fixed added code to test the existance of a soap body as child of envelope and set the newly created soap_header as the first child of soap_envelope . > <env:Header> is not always the first child of <env:Envelope> > ------------------------------------------------------------ > > Key: AXIS2C-132 > URL: http://issues.apache.org/jira/browse/AXIS2C-132 > Project: Axis2-C > Type: Bug > Components: xml/soap > Versions: 0.91 > Environment: Linux > Reporter: Nabeel Yoosuf > Assignee: Nandika Jayawardana > > When I create the soap envelope in the following sequence (i.e. body first > and then header). The header and body elements incorrectly change their > relative positions in the envelope. > soap_envelope = axis2_soap_envelope_create(env, env_ns); > soap_body = axis2_soap_body_create_with_parent(env, soap_envelope); > soap_header = axis2_soap_header_create_with_parent(env, soap_envelope); > When serialized to text: > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"> > <SOAP-ENV:Body></SOAP-ENV:Body> > <SOAP-ENV:Header></SOAP-ENV:Header> > </SOAP-ENV:Envelope> > Irrespective of the sequence with which we create the soap envelope and > fleshing parts, it should always serialize to the following: > <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"> > <SOAP-ENV:Header></SOAP-ENV:Header> > <SOAP-ENV:Body></SOAP-ENV:Body> > </SOAP-ENV:Envelope> > -Nabeel -- 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