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 "Lukas JOSEFIK (JIRA)" <ji...@apache.org> on 2008/02/18 14:08:34 UTC

[jira] Created: (AXIS2C-991) axiom_soap_header_create_with_parent in soap_header doesn't detach body node

axiom_soap_header_create_with_parent in soap_header doesn't detach body node
----------------------------------------------------------------------------

                 Key: AXIS2C-991
                 URL: https://issues.apache.org/jira/browse/AXIS2C-991
             Project: Axis2-C
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Lukas JOSEFIK


if header is added and between soap envelope and soap body is text node, then is detached this text node, not body node.
detach first element node instead of first...

if (axiom_node_get_first_child(parent_node, env))
    {
.....
		body_node = axiom_node_get_first_child(parent_node, env);
		if(AXIOM_ELEMENT == axiom_node_get_node_type(body_node, env))
......
    }



-- 
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] Assigned: (AXIS2C-991) axiom_soap_header_create_with_parent in soap_header doesn't detach body node

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

Senaka Fernando reassigned AXIS2C-991:
--------------------------------------

    Assignee: Senaka Fernando

> axiom_soap_header_create_with_parent in soap_header doesn't detach body node
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2C-991
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-991
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Lukas JOSEFIK
>            Assignee: Senaka Fernando
>
> if header is added and between soap envelope and soap body is text node, then is detached this text node, not body node.
> detach first element node instead of first...
> if (axiom_node_get_first_child(parent_node, env))
>     {
> .....
> 		body_node = axiom_node_get_first_child(parent_node, env);
> 		if(AXIOM_ELEMENT == axiom_node_get_node_type(body_node, env))
> ......
>     }

-- 
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] Resolved: (AXIS2C-991) axiom_soap_header_create_with_parent in soap_header doesn't detach body node

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

Senaka Fernando resolved AXIS2C-991.
------------------------------------

    Resolution: Fixed

Fixed Issue. Thanks Lukas.

The issue here is the body must always go after the header and the body_node is always not the first child but rather is the first element.

Regards,
Senaka

> axiom_soap_header_create_with_parent in soap_header doesn't detach body node
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2C-991
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-991
>             Project: Axis2-C
>          Issue Type: Bug
>    Affects Versions: 1.2.0
>            Reporter: Lukas JOSEFIK
>            Assignee: Senaka Fernando
>
> if header is added and between soap envelope and soap body is text node, then is detached this text node, not body node.
> detach first element node instead of first...
> if (axiom_node_get_first_child(parent_node, env))
>     {
> .....
> 		body_node = axiom_node_get_first_child(parent_node, env);
> 		if(AXIOM_ELEMENT == axiom_node_get_node_type(body_node, env))
> ......
>     }

-- 
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