Files | |
file | axis2_callback.h |
Typedefs | |
typedef struct axis2_callback | axis2_callback_t |
typedef axis2_status_t | axis2_on_complete_func_ptr (axis2_callback_t *, const axutil_env_t *) |
typedef axis2_status_t | axis2_on_error_func_ptr (axis2_callback_t *, const axutil_env_t *, int) |
Functions | |
AXIS2_EXTERN axis2_status_t | axis2_callback_invoke_on_complete (axis2_callback_t *callback, const axutil_env_t *env, axis2_async_result_t *result) |
AXIS2_EXTERN axis2_status_t | axis2_callback_report_error (axis2_callback_t *callback, const axutil_env_t *env, const int exception) |
AXIS2_EXTERN axis2_bool_t | axis2_callback_get_complete (const axis2_callback_t *callback, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axis2_callback_set_complete (axis2_callback_t *callback, const axutil_env_t *env, const axis2_bool_t complete) |
AXIS2_EXTERN axiom_soap_envelope_t * | axis2_callback_get_envelope (const axis2_callback_t *callback, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axis2_callback_set_envelope (axis2_callback_t *callback, const axutil_env_t *env, axiom_soap_envelope_t *envelope) |
AXIS2_EXTERN int | axis2_callback_get_error (const axis2_callback_t *callback, const axutil_env_t *env) |
AXIS2_EXTERN axis2_status_t | axis2_callback_set_error (axis2_callback_t *callback, const axutil_env_t *env, const int error) |
AXIS2_EXTERN axis2_status_t | axis2_callback_set_data (axis2_callback_t *callback, void *data) |
AXIS2_EXTERN void * | axis2_callback_get_data (const axis2_callback_t *callback) |
AXIS2_EXTERN void | axis2_callback_set_on_complete (axis2_callback_t *callback, axis2_on_complete_func_ptr f) |
AXIS2_EXTERN void | axis2_callback_set_on_error (axis2_callback_t *callback, axis2_on_error_func_ptr f) |
AXIS2_EXTERN void | axis2_callback_free (axis2_callback_t *callback, const axutil_env_t *env) |
AXIS2_EXTERN axis2_callback_t * | axis2_callback_create (const axutil_env_t *env) |
typedef struct axis2_callback axis2_callback_t |
Type name for axis2_callback
typedef axis2_status_t axis2_on_complete_func_ptr(axis2_callback_t *, const axutil_env_t *) |
Type name for function pointer to be called on complete of callback
typedef axis2_status_t axis2_on_error_func_ptr(axis2_callback_t *, const axutil_env_t *, int) |
Type name for function pointer to be called on error of callback
AXIS2_EXTERN axis2_callback_t* axis2_callback_create | ( | const axutil_env_t * | env | ) |
Creates a callback struct.
env | pointer to environment struct |
AXIS2_EXTERN void axis2_callback_free | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env | |||
) |
Frees callback struct.
callback | pointer to callback struct | |
env | pointer to environment struct |
AXIS2_EXTERN axis2_bool_t axis2_callback_get_complete | ( | const axis2_callback_t * | callback, | |
const axutil_env_t * | env | |||
) |
Gets the complete status for the callback. This method is useful for polling (busy waiting). e.g.
while(!AXIS2_CALL
BACK_GET_COMPLETE(callback, env)
{
sleep(10);
}
do whatever you need here
callback | pointer to callback struct | |
env | pointer to environment struct |
AXIS2_EXTERN void* axis2_callback_get_data | ( | const axis2_callback_t * | callback | ) |
Gets the callback data.
callback | pointer to callback struct |
AXIS2_EXTERN axiom_soap_envelope_t* axis2_callback_get_envelope | ( | const axis2_callback_t * | callback, | |
const axutil_env_t * | env | |||
) |
Gets the resulting SOAP envelope.
callback | pointer to callback struct | |
env | pointer to environment struct |
AXIS2_EXTERN int axis2_callback_get_error | ( | const axis2_callback_t * | callback, | |
const axutil_env_t * | env | |||
) |
Gets error code representing the error.
callback | pointer to callback struct | |
env | pointer to environment struct |
AXIS2_EXTERN axis2_status_t axis2_callback_invoke_on_complete | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env, | |||
axis2_async_result_t * | result | |||
) |
This function is called once the asynchronous operation is successfully completed and the result is available.
callback | pointer to callback struct | |
env | pointer to environment struct | |
result | pointer to async result |
AXIS2_EXTERN axis2_status_t axis2_callback_report_error | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env, | |||
const int | exception | |||
) |
This function is called once the asynchronous operation fails and the failure code returns.
callback | pointer to callback struct | |
env | pointer to environment struct | |
exception | error code representing the error |
AXIS2_EXTERN axis2_status_t axis2_callback_set_complete | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env, | |||
const axis2_bool_t | complete | |||
) |
Sets the complete status.
callback | pointer to callback struct | |
env | pointer to environment struct | |
complete | bool value representing the status |
AXIS2_EXTERN axis2_status_t axis2_callback_set_data | ( | axis2_callback_t * | callback, | |
void * | data | |||
) |
Sets the callback data.
callback | pointer to callback struct | |
data | pointer to data |
AXIS2_EXTERN axis2_status_t axis2_callback_set_envelope | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env, | |||
axiom_soap_envelope_t * | envelope | |||
) |
Sets the SOAP envelope.
callback | pointer to callback struct | |
env | pointer to environment struct | |
envelope | pointer to SOAP envelope |
AXIS2_EXTERN axis2_status_t axis2_callback_set_error | ( | axis2_callback_t * | callback, | |
const axutil_env_t * | env, | |||
const int | error | |||
) |
Sets the error code.
callback | pointer to callback struct | |
env | pointer to environment struct | |
error | error code representing the error |
AXIS2_EXTERN void axis2_callback_set_on_complete | ( | axis2_callback_t * | callback, | |
axis2_on_complete_func_ptr | f | |||
) |
Sets the on complete callback function.
callback | pointer to callback struct | |
f | on complete callback function pointer |
AXIS2_EXTERN void axis2_callback_set_on_error | ( | axis2_callback_t * | callback, | |
axis2_on_error_func_ptr | f | |||
) |
Sets the on error callback function.
callback | pointer to callback struct | |
f | on error callback function pointer |