NonStop SOAP 4.1 User's Manual
child
is an input parameter and is a pointer to the child node of type axiom_node_t. It cannot
have a NULL value.
Return values:
• AXIS2_SUCCESS on success.
• AXIS2_FAILURE on failure.
The axiom_element_create()Function
The axiom_element_create()function creates an AXIOM element using the specified name.
Synopsis:
AXIS2_EXTERN axiom_element_t* axiom_element_create
( const axutil_env_t * env,
axiom_node_t * parent,
const axis2_char_t * localname,
axiom_namespace_t * ns,
axiom_node_t ** node )
Parameters:
env
is an input parameter and is a pointer to the environment structure. It cannot have a NULL
value.
parent
is an input parameter and is a pointer to the parent of the element node to be created. It cannot
have a NULL value.
localname
is an input parameter and is a pointer to the local name of the element. It cannot have a NULL
value.
ns
is an input parameter and is a pointer to the namespace, if any, of the element. It can have a
NULL value.
node
is an output parameter and is a pointer to the node corresponding to the created element.
Return value:
Pointer to the newly created element structure. If an error occurs, it returns NULL.
The axiom_element_add_attribute()Function
The axiom_element_add_attribute() function adds an attribute to the current element.
Synopsis:
AXIS2_EXTERN axis2_status_t axiom_element_add_attribute
( axiom_element_t * om_element,
const axutil_env_t * env,
axiom_attribute_t * attribute,
axiom_node_t * node )
Parameters:
om_element
is an input parameter and is a pointer to the element to which the attribute is added. It cannot
have a NULL value.
env
is an input parameter and is a pointer to the environment structure. It cannot have a NULL
value.
108 NonStop SOAP 4 Client APIs










