You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Manjula Peiris (JIRA)" <ji...@apache.org> on 2008/10/14 14:25:44 UTC

[jira] Created: (AXIS2C-1275) Axiom default namespace serialization and deserialization are not compatible

Axiom default namespace serialization and deserialization are not compatible
----------------------------------------------------------------------------

                 Key: AXIS2C-1275
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1275
             Project: Axis2-C
          Issue Type: Bug
          Components: xml/om
    Affects Versions: Current (Nightly)
            Reporter: Manjula Peiris


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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Updated: (AXIS2C-1275) Axiom default namespace serialization and deserialization are not compatible

Posted by "Manjula Peiris (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2C-1275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manjula Peiris updated AXIS2C-1275:
-----------------------------------

    Fix Version/s: 1.6.0

> Axiom default namespace serialization and deserialization are not compatible
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2C-1275
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1275
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: xml/om
>    Affects Versions: Current (Nightly)
>            Reporter: Manjula Peiris
>             Fix For: 1.6.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.