00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef AXIS2_WSDL_MSG_REF_H
00018 #define AXIS2_WSDL_MSG_REF_H
00019
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_qname.h>
00031 #include <axis2_wsdl_extensible_component.h>
00032
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037
00038 struct axis2_wsdl_extensible_component;
00039 typedef struct axis2_wsdl_msg_ref axis2_wsdl_msg_ref_t;
00040 typedef struct axis2_wsdl_msg_ref_ops axis2_wsdl_msg_ref_ops_t;
00041
00051 struct axis2_wsdl_msg_ref_ops
00052 {
00056 axis2_status_t (AXIS2_CALL *
00057 free)(axis2_wsdl_msg_ref_t *wsdl_msg_ref,
00058 const axis2_env_t *env);
00059
00065 axis2_char_t * (AXIS2_CALL *
00066 get_direction) (axis2_wsdl_msg_ref_t *msg_ref,
00067 const axis2_env_t *env);
00068
00074 axis2_status_t (AXIS2_CALL *
00075 set_direction) (axis2_wsdl_msg_ref_t *msg_ref,
00076 const axis2_env_t *env,
00077 const axis2_char_t *direction);
00078
00084 axis2_char_t * (AXIS2_CALL *
00085 get_msg_label) (axis2_wsdl_msg_ref_t *msg_ref,
00086 const axis2_env_t *env);
00087
00093 axis2_status_t (AXIS2_CALL *
00094 set_msg_label) (axis2_wsdl_msg_ref_t *msg_ref,
00095 const axis2_env_t *env,
00096 const axis2_char_t *msg_label);
00097
00104 axis2_qname_t * (AXIS2_CALL *
00105 get_element) (axis2_wsdl_msg_ref_t *msg_ref,
00106 const axis2_env_t *env);
00107
00113 axis2_status_t (AXIS2_CALL *
00114 set_element) (axis2_wsdl_msg_ref_t *msg_ref,
00115 const axis2_env_t *env,
00116 axis2_qname_t *element);
00117 };
00118
00122 struct axis2_wsdl_msg_ref
00123 {
00124 axis2_wsdl_msg_ref_ops_t *ops;
00125 struct axis2_wsdl_extensible_component *extensible_component;
00126 };
00127
00132 AXIS2_EXTERN axis2_wsdl_msg_ref_t * AXIS2_CALL
00133 axis2_wsdl_msg_ref_create (const axis2_env_t *env);
00134
00135
00136
00137 #define AXIS2_WSDL_MSG_REF_FREE(wsdl_msg_ref, env) \
00138 ((wsdl_msg_ref)->ops->free (wsdl_msg_ref, env))
00139
00140 #define AXIS2_WSDL_MSG_REF_GET_DIRECTION(wsdl_msg_ref, env) \
00141 ((wsdl_msg_ref)->ops->get_direction (wsdl_msg_ref, env))
00142
00143 #define AXIS2_WSDL_MSG_REF_SET_DIRECTION(wsdl_msg_ref, env, direction) \
00144 ((wsdl_msg_ref)->ops->set_direction (wsdl_msg_ref, env, direction))
00145
00146 #define AXIS2_WSDL_MSG_REF_GET_MSG_LABEL(wsdl_msg_ref, env) \
00147 ((wsdl_msg_ref)->ops->get_msg_label (wsdl_msg_ref, env))
00148
00149 #define AXIS2_WSDL_MSG_REF_SET_MSG_LABEL(wsdl_msg_ref, env, msg_label) \
00150 ((wsdl_msg_ref)->ops->set_msg_label (wsdl_msg_ref, env, msg_label))
00151
00152 #define AXIS2_WSDL_MSG_REF_GET_ELEMENT(wsdl_msg_ref, env) \
00153 ((wsdl_msg_ref)->ops->get_element (wsdl_msg_ref, env))
00154
00155 #define AXIS2_WSDL_MSG_REF_SET_ELEMENT(wsdl_msg_ref, env, element) \
00156 ((wsdl_msg_ref)->ops->set_element (wsdl_msg_ref, env, element))
00157
00158
00159
00162 #ifdef __cplusplus
00163 }
00164 #endif
00165 #endif