Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.91
-
None
-
None
-
Linux
Description
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