Axis2-C
  1. Axis2-C
  2. AXIS2C-1275

Axiom default namespace serialization and deserialization are not compatible

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Current (Nightly)
    • Fix Version/s: 1.7.0
    • Component/s: xml/om
    • Labels:
      None

      Description

      For the following code axiom generates the xml given below.

      ns1 = axiom_namespace_create (env, "http://example.org/", NULL);

      ping_ele = axiom_element_create(env, NULL, "PingResponse", ns1, &ping_node);
      echo_om_ele = axiom_element_create(env, ping_node, "echoStringResponse", NULL, &echo_om_node);
      text_om_ele = axiom_element_create(env, echo_om_node, "EchoStringReturn", NULL, &text_om_node);
      axiom_element_set_text(text_om_ele, env, text, text_om_node);

      <PingResponse xmlns="http://example.org/" >
      <echoStringResponse>
      <EchoStringReturn>text</EchoStringReturn>
      </echoStringResponse>
      </PingResponse>

      But when signing this om the child elements are not canonicalized with the namaspaces because those elements are created with NULL namespaces. But the the child elements inherit the default namespaces. So signature verification fails.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Manjula Peiris
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development