Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-132

<env:Header> is not always the first child of <env:Envelope>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.91
    • None
    • xml/soap
    • 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

      Attachments

        Activity

          People

            nandika Korale Gamaralalage Nandika Chandrasiri Jayawardana
            nabeel_yoosuf Nabeel Yoosuf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: