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