#include <axis2_callback.h>
Public Attributes | |
axis2_status_t(* | invoke_on_complete )(axis2_callback_t *callback, const axis2_env_t *env, axis2_async_result_t *result) |
axis2_status_t(* | on_complete )(axis2_callback_t *callback, const axis2_env_t *env) |
axis2_status_t(* | report_error )(axis2_callback_t *callback, const axis2_env_t *env, const int exception) |
axis2_status_t(* | on_error )(axis2_callback_t *callback, const axis2_env_t *env, const int exception) |
axis2_bool_t(* | get_complete )(const axis2_callback_t *callback, const axis2_env_t *env) |
axis2_status_t(* | set_complete )(axis2_callback_t *callback, const axis2_env_t *env, const axis2_bool_t complete) |
axiom_soap_envelope_t *(* | get_envelope )(const axis2_callback_t *callback, const axis2_env_t *env) |
axis2_status_t(* | set_envelope )(axis2_callback_t *callback, const axis2_env_t *env, axiom_soap_envelope_t *envelope) |
int(* | get_error )(const axis2_callback_t *callback, const axis2_env_t *env) |
axis2_status_t(* | set_error )(axis2_callback_t *callback, const axis2_env_t *env, const int error) |
axis2_status_t(* | set_data )(axis2_callback_t *callback, void *data) |
void *(* | get_data )(const axis2_callback_t *callback) |
void(* | set_on_complete )(axis2_callback_t *callback, axis2_on_complete_func_ptr f) |
void(* | set_on_error )(axis2_callback_t *callback, axis2_on_error_func_ptr f) |
axis2_status_t(* | free )(axis2_callback_t *callback, const axis2_env_t *env) |
axis2_status_t( * axis2_callback_ops::free)(axis2_callback_t *callback, const axis2_env_t *env) |
Frees callback struct.
callback | pointer to callback struct | |
env | pointer to environment struct |
axis2_bool_t( * axis2_callback_ops::get_complete)(const axis2_callback_t *callback, const axis2_env_t *env) |
Gets the complete status for the callback. This method is useful for polling (busy waiting). e.g.
while(!AXIS2_CALLBACK_GET_COMPLETE(callback, env))
{
sleep(10);
}
// do whatever you need here
callback | pointer to callback struct | |
env | pointer to environment struct |
void*( * axis2_callback_ops::get_data)(const axis2_callback_t *callback) |
Gets the callback data.
callback | pointer to callback struct |
axiom_soap_envelope_t*( * axis2_callback_ops::get_envelope)(const axis2_callback_t *callback, const axis2_env_t *env) |
Gets the resulting SOAP envelope.
callback | pointer to callback struct | |
env | pointer to environment struct |
int( * axis2_callback_ops::get_error)(const axis2_callback_t *callback, const axis2_env_t *env) |
Gets error code representing the error.
callback | pointer to callback struct | |
env | pointer to environment struct |
axis2_status_t( * axis2_callback_ops::invoke_on_complete)(axis2_callback_t *callback, const axis2_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_status_t( * axis2_callback_ops::on_complete)(axis2_callback_t *callback, const axis2_env_t *env) |
This function is called by invoke_on_complete. Users could provide this method so that they can define what to be done when the callback returns on completion.
callback | pointer to callback struct | |
env | pointer to environment struct |
axis2_status_t( * axis2_callback_ops::on_error)(axis2_callback_t *callback, const axis2_env_t *env, const int exception) |
This function is called by report_error. Users could provide this method so that they can define what to be done when the callback returns an error.
callback | pointer to callback struct | |
env | pointer to environment struct | |
exception | error code representing the error |
axis2_status_t( * axis2_callback_ops::report_error)(axis2_callback_t *callback, const axis2_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_status_t( * axis2_callback_ops::set_complete)(axis2_callback_t *callback, const axis2_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_status_t( * axis2_callback_ops::set_data)(axis2_callback_t *callback, void *data) |
Sets the callback data.
callback | pointer to callback struct | |
data | pointer to data |
axis2_status_t( * axis2_callback_ops::set_envelope)(axis2_callback_t *callback, const axis2_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_status_t( * axis2_callback_ops::set_error)(axis2_callback_t *callback, const axis2_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 |
void( * axis2_callback_ops::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 |
void( * axis2_callback_ops::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 |