Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-357

createImmediateChild() and createChild() APIs in the IHeaderBlock does not create namespace declaration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • current (nightly)
    • SOAP
    • None

    Description

      createImmediateChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix, AxisChar *pachUri, AxisChar *pachValue)=0 and
      createChild (NODE_TYPE eNODE_TYPE, AxisChar *pachLocalName, AxisChar *pachPrefix, AxisChar *pachUri, AxisChar *pachValue)=0
      APIs does not create namespace declaration.

      BasicNode *bn=phb->createImmediateChild (ELEMENT_NODE,"Name","np","http://axis.com",NULL);
      creates the following element without namespace declaration for prefix "np"

      <SOAP-ENV:Header><ns2:Test xmlns:ns2="http://apache.com">
      <np:Name></np:Name></ns2:Test></SOAP-ENV:Header>
      <SOAP-ENV:Body>

      Attachments

        Activity

          People

            dicka Adrian Dick
            james James Jose
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: