00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_SOAP_FAULT_CODE_H
00019 #define WODEN_SOAP_FAULT_CODE_H
00020
00035 #include <axis2_allocator.h>
00036 #include <axis2_env.h>
00037 #include <axis2_error.h>
00038 #include <axis2_string.h>
00039 #include <axis2_utils.h>
00040 #include <axis2_hash.h>
00041 #include <axis2_qname.h>
00042 #include <woden.h>
00043
00044 #ifdef __cplusplus
00045 extern "C"
00046 {
00047 #endif
00048
00049 typedef struct woden_soap_fault_code woden_soap_fault_code_t;
00050 typedef struct woden_soap_fault_code_ops woden_soap_fault_code_ops_t;
00051 struct woden_ext_element;
00052
00058 struct woden_soap_fault_code_ops
00059 {
00064 axis2_status_t (AXIS2_CALL *
00065 free) (
00066 void *soap_fault_code,
00067 const axis2_env_t *env);
00068
00069 axis2_bool_t (AXIS2_CALL *
00070 is_qname) (
00071 void *soap_fault_code,
00072 const axis2_env_t *env);
00073
00074 axis2_bool_t (AXIS2_CALL *
00075 is_token) (
00076 void *soap_fault_code,
00077 const axis2_env_t *env);
00078
00079 axis2_qname_t *(AXIS2_CALL *
00080 get_qname) (
00081 void *soap_fault_code,
00082 const axis2_env_t *env);
00083
00084 axis2_char_t *(AXIS2_CALL *
00085 get_token) (
00086 void *soap_fault_code,
00087 const axis2_env_t *env);
00088
00089
00090 };
00091
00092 struct woden_soap_fault_code
00093 {
00094 woden_soap_fault_code_ops_t *ops;
00095
00096 };
00097
00098 AXIS2_EXTERN woden_soap_fault_code_t * AXIS2_CALL
00099 woden_soap_fault_code_create(
00100 const axis2_env_t *env,
00101 axis2_char_t *token,
00102 axis2_qname_t *code_qn);
00103
00104 AXIS2_EXTERN void * AXIS2_CALL
00105 woden_soap_fault_code_get_soap_fault_code_any(
00106 const axis2_env_t *env);
00107
00108 #define WODEN_SOAP_FAULT_CODE_FREE(soap_fault_code, env) \
00109 (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00110 free (soap_fault_code, env))
00111
00112 #define WODEN_SOAP_FAULT_CODE_IS_QNAME(soap_fault_code, env) \
00113 (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00114 is_qname (soap_fault_code, env))
00115
00116 #define WODEN_SOAP_FAULT_CODE_IS_TOKEN(soap_fault_code, env) \
00117 (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00118 is_token (soap_fault_code, env))
00119
00120 #define WODEN_SOAP_FAULT_CODE_GET_QNAME(soap_fault_code, env) \
00121 (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00122 get_qname (soap_fault_code, env))
00123
00124 #define WODEN_SOAP_FAULT_CODE_GET_TOKEN(soap_fault_code, env) \
00125 (((woden_soap_fault_code_t *) soap_fault_code)->ops->\
00126 get_token (soap_fault_code, env))
00127
00128
00130 #ifdef __cplusplus
00131 }
00132 #endif
00133 #endif