NonStop SOAP 4.1 User's Manual

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.
attribute
is an input parameter and is a pointer to the attribute to be added to the element. It cannot
have a NULL value.
node
is an input parameter and is a pointer to the axiom_node_t node that contains om_element.
It cannot have a NULL value.
Return Values:
AXIS2_SUCCESS on success.
AXIS2_FAILURE on failure.
The axiom_attribute_create()Function
The axiom_attribute_create()function creates an AXIOM attribute structure.
Synopsis:
AXIS2_EXTERN axiom_attribute_t* axiom_attribute_create
( const axutil_env_t * env,
const axis2_char_t * localname,
const axis2_char_t * value,
axiom_namespace_t * ns )
Parameters:
env
is an input parameter and is a pointer to the environment structure. It cannot have a NULL
value.
localname
is an input parameter and is a pointer to the local name of the attribute. It cannot have a NULL
value.
value
is an input parameter and is a pointer to the normalized attribute value. It cannot have a NULL
value.
ns
is an input parameter and is a pointer to the namespace, if any, of the attribute. It is an optional
parameter and can have a NULL value.
Return Values:
Pointer to the newly created attribute structure. If an error occurs, it returns NULL.
Creating an AXIOM node from an XML using AXIOM Document APIs
If you create the service response from an XML format, use the AXIOM document APIs to create
the AXIOM node from the response XML.
Basic NonStop SOAP 4 Service APIs 93