00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AXIOM_SOAP_FAULT_H
00020 #define AXIOM_SOAP_FAULT_H
00021
00026 #include <axiom_soap_const.h>
00027 #include <axutil_env.h>
00028 #include <axiom_node.h>
00029 #include <axiom_element.h>
00030
00031 #ifdef __cplusplus
00032 extern "C"
00033 {
00034 #endif
00035
00036 typedef struct axiom_soap_fault axiom_soap_fault_t;
00037
00038 struct axiom_soap_fault_reason;
00039 struct axiom_soap_fault_detail;
00040 struct axiom_soap_fault_sub_code;
00041 struct axiom_soap_fault_code;
00042 struct axiom_soap_fault_node;
00043 struct axiom_soap_fault_role;
00044 struct axiom_soap_fault_text;
00045 struct axiom_soap_fault_value;
00046 struct axiom_soap_body;
00047 struct axiom_soap_builder;
00048
00064 AXIS2_EXTERN axiom_soap_fault_t *AXIS2_CALL
00065
00066 axiom_soap_fault_create_with_parent(
00067 const axutil_env_t * env,
00068 struct axiom_soap_body *parent);
00069
00079 AXIS2_EXTERN axiom_soap_fault_t *AXIS2_CALL
00080
00081 axiom_soap_fault_create_with_exception(
00082 const axutil_env_t * env,
00083 struct axiom_soap_body *parent,
00084 axis2_char_t * exception);
00085
00086 AXIS2_EXTERN axiom_soap_fault_t *AXIS2_CALL
00087
00088 axiom_soap_fault_create_default_fault(
00089 const axutil_env_t * env,
00090 struct axiom_soap_body *parent,
00091 const axis2_char_t * code_value,
00092 const axis2_char_t * reason_text,
00093 const int soap_version);
00094
00103 AXIS2_EXTERN void AXIS2_CALL
00104 axiom_soap_fault_free(
00105 axiom_soap_fault_t * fault,
00106 const axutil_env_t * env);
00107
00117 AXIS2_EXTERN struct axiom_soap_fault_code *AXIS2_CALL
00118
00119 axiom_soap_fault_get_code(
00120 axiom_soap_fault_t * fault,
00121 const axutil_env_t * env);
00122
00130 AXIS2_EXTERN struct axiom_soap_fault_reason *AXIS2_CALL
00131
00132 axiom_soap_fault_get_reason(
00133 axiom_soap_fault_t * fault,
00134 const axutil_env_t * env);
00135
00142 AXIS2_EXTERN struct axiom_soap_fault_node *AXIS2_CALL
00143
00144 axiom_soap_fault_get_node(
00145 axiom_soap_fault_t * fault,
00146 const axutil_env_t * env);
00147
00154 AXIS2_EXTERN struct axiom_soap_fault_role *AXIS2_CALL
00155
00156 axiom_soap_fault_get_role(
00157 axiom_soap_fault_t * fault,
00158 const axutil_env_t * env);
00159
00167 AXIS2_EXTERN struct axiom_soap_fault_detail *AXIS2_CALL
00168
00169 axiom_soap_fault_get_detail(
00170 axiom_soap_fault_t * fault,
00171 const axutil_env_t * env);
00172
00179 AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00180 axiom_soap_fault_get_exception(
00181 axiom_soap_fault_t * fault,
00182 const axutil_env_t * env);
00183
00190 AXIS2_EXTERN axis2_status_t AXIS2_CALL
00191 axiom_soap_fault_set_exception(
00192 axiom_soap_fault_t * fault,
00193 const axutil_env_t * env,
00194 axis2_char_t * exception);
00195
00204 AXIS2_EXTERN axiom_node_t *AXIS2_CALL
00205 axiom_soap_fault_get_base_node(
00206 axiom_soap_fault_t * fault,
00207 const axutil_env_t * env);
00208
00210 #ifdef __cplusplus
00211 }
00212 #endif
00213
00214 #endif