00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_WSDL10_SVC_ELEMENT_H
00019 #define WODEN_WSDL10_SVC_ELEMENT_H
00020
00028 #include <axis2_allocator.h>
00029 #include <axis2_env.h>
00030 #include <axis2_error.h>
00031 #include <axis2_string.h>
00032 #include <axis2_utils.h>
00033 #include <axis2_hash.h>
00034 #include <axis2_qname.h>
00035 #include <axis2_uri.h>
00036 #include <woden.h>
00037 #include <woden_documentable_element.h>
00038 #include <woden_configurable_element.h>
00039 #include <woden_nested_element.h>
00040 #include <woden_nc_name.h>
00041
00042 #ifdef __cplusplus
00043 extern "C"
00044 {
00045 #endif
00046
00047 typedef struct woden_wsdl10_svc_element woden_wsdl10_svc_element_t;
00048 typedef struct woden_wsdl10_svc_element_ops woden_wsdl10_svc_element_ops_t;
00049 typedef union woden_wsdl10_svc_element_base woden_wsdl10_svc_element_base_t;
00050
00056 struct woden_wsdl10_svc_element_ops
00057 {
00062 axis2_status_t (AXIS2_CALL *
00063 free) (
00064 void *svc_el,
00065 const axis2_env_t *env);
00066
00067 woden_obj_types_t (AXIS2_CALL *
00068 type) (
00069 void *svc_el,
00070 const axis2_env_t *env);
00071
00072 axis2_status_t (AXIS2_CALL *
00073 set_qname) (
00074 void *svc_el,
00075 const axis2_env_t *env,
00076 axis2_qname_t *qname);
00077
00078 axis2_qname_t *(AXIS2_CALL *
00079 get_qname) (
00080 void *svc_el,
00081 const axis2_env_t *env);
00082
00083 axis2_status_t (AXIS2_CALL *
00084 set_interface_qname) (
00085 void *svc_el,
00086 const axis2_env_t *env,
00087 axis2_qname_t *qname);
00088
00089 axis2_qname_t *(AXIS2_CALL *
00090 get_interface_qname) (
00091 void *svc_el,
00092 const axis2_env_t *env);
00093
00094 void *(AXIS2_CALL *
00095 get_interface_element) (
00096 void *svc_el,
00097 const axis2_env_t *env);
00098
00099 axis2_status_t (AXIS2_CALL *
00100 add_endpoint_element) (
00101 void *svc_el,
00102 const axis2_env_t *env,
00103 void *endpoint);
00104
00105 axis2_array_list_t *(AXIS2_CALL *
00106 get_endpoint_elements) (
00107 void *svc_el,
00108 const axis2_env_t *env);
00109
00110 };
00111
00112 union woden_wsdl10_svc_element_base
00113 {
00114 woden_documentable_element_t documentable_element;
00115 woden_configurable_element_t configurable_element;
00116 woden_nested_element_t nested_element;
00117 };
00118
00119 struct woden_wsdl10_svc_element
00120 {
00121 woden_wsdl10_svc_element_base_t base;
00122 woden_wsdl10_svc_element_ops_t *ops;
00123 };
00124
00125
00126 axis2_status_t AXIS2_CALL
00127 woden_wsdl10_svc_element_resolve_methods(
00128 woden_wsdl10_svc_element_t *svc_element,
00129 const axis2_env_t *env,
00130 axis2_hash_t *methods);
00131
00132
00133 #define WODEN_WSDL10_SVC_ELEMENT_FREE(svc_el, env) \
00134 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00135 free (svc_el, env))
00136
00137 #define WODEN_WSDL10_SVC_ELEMENT_TYPE(svc_el, env) \
00138 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00139 type (svc_el, env))
00140
00141 #define WODEN_WSDL10_SVC_ELEMENT_SET_QNAME(svc_el, env, qname) \
00142 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00143 set_qname(svc_el, env, qname))
00144
00145 #define WODEN_WSDL10_SVC_ELEMENT_GET_QNAME(svc_el, env) \
00146 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00147 get_qname(svc_el, env))
00148
00149 #define WODEN_WSDL10_SVC_ELEMENT_SET_INTERFACE_QNAME(svc_el, env, qname) \
00150 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00151 set_interface_qname(svc_el, env, qname))
00152
00153 #define WODEN_WSDL10_SVC_ELEMENT_GET_INTERFACE_QNAME(svc_el, env) \
00154 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00155 get_interface_qname(svc_el, env))
00156
00157 #define WODEN_WSDL10_SVC_ELEMENT_GET_INTERFACE_ELEMENT(svc_el, env) \
00158 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00159 get_interface_element(svc_el, env))
00160
00161 #define WODEN_WSDL10_SVC_ELEMENT_ADD_ENDPOINT_ELEMENT(svc_el, env, endpoint) \
00162 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00163 add_endpoint_element(svc_el, env, endpoint))
00164
00165 #define WODEN_WSDL10_SVC_ELEMENT_GET_ENDPOINT_ELEMENTS(svc_el, env) \
00166 (((woden_wsdl10_svc_element_t *) svc_el)->ops->\
00167 get_endpoint_elements(svc_el, env))
00168
00170 #ifdef __cplusplus
00171 }
00172 #endif
00173 #endif