NonStop SOAP 4.1 User's Manual

env
is an input parameter and is a pointer to the environment structure. It cannot have a NULL
value.
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 name specified.
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 the pointer to the parent of the element node to be created. It
cannot have a NULL value.
localname
is an input parameter and is the pointer to the local name of the element. It cannot have a
NULL value.
ns
is an input parameter and is the pointer to the namespace, if any, of the attribute. It can have
a NULL value.
node
is an output parameter and is a pointer to the parameter that returns the node corresponding
to the element created.
Return Values:
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 )
92 NonStop SOAP 4 Service APIs