00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef WODEN_WSDL_COMPONENT_H
00019 #define WODEN_WSDL_COMPONENT_H
00020
00029 #include <axis2_allocator.h>
00030 #include <axis2_env.h>
00031 #include <axis2_error.h>
00032 #include <axis2_string.h>
00033 #include <axis2_utils.h>
00034 #include <axis2_hash.h>
00035 #include <axis2_uri.h>
00036 #include <woden.h>
00037
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042
00043 typedef struct woden_wsdl_component woden_wsdl_component_t;
00044 typedef struct woden_wsdl_component_ops woden_wsdl_component_ops_t;
00045 struct woden_component_exts;
00046
00052 struct woden_wsdl_component_ops
00053 {
00058 axis2_status_t (AXIS2_CALL *
00059 free) (
00060 void *wsdl_component,
00061 const axis2_env_t *env);
00062
00063 axis2_status_t (AXIS2_CALL *
00064 to_wsdl_component_free) (
00065 void *wsdl_component,
00066 const axis2_env_t *env);
00067
00068 woden_obj_types_t (AXIS2_CALL *
00069 type) (
00070 void *wsdl_component,
00071 const axis2_env_t *env);
00072
00073 void *(AXIS2_CALL *
00074 get_component_exts_for_namespace) (
00075 void *wsdl_component,
00076 const axis2_env_t *env,
00077 axis2_uri_t *namespc);
00078
00079 };
00080
00081 struct woden_wsdl_component
00082 {
00083 woden_wsdl_component_ops_t *ops;
00084 };
00085
00086
00087 axis2_status_t AXIS2_CALL
00088 woden_wsdl_component_resolve_methods(
00089 woden_wsdl_component_t *wsdl_component,
00090 const axis2_env_t *env,
00091 axis2_hash_t *methods);
00092
00093
00094 #define WODEN_WSDL_COMPONENT_FREE(wsdl_component, env) \
00095 (((woden_wsdl_component_t *) wsdl_component)->ops->\
00096 free (wsdl_component, env))
00097
00098 #define WODEN_WSDL_COMPONENT_TO_WSDL_COMPONENT_FREE(wsdl_component, env) \
00099 (((woden_wsdl_component_t *) wsdl_component)->ops->\
00100 to_wsdl_component_free (wsdl_component, env))
00101
00102 #define WODEN_WSDL_COMPONENT_TYPE(wsdl_component, env) \
00103 (((woden_wsdl_component_t *) wsdl_component)->ops->\
00104 type (wsdl_component, env))
00105
00106 #define WODEN_WSDL_COMPONENT_GET_COMPONENT_EXTS_FOR_NAMESPACE(\
00107 wsdl_component, env, namespc) \
00108 (((woden_wsdl_component_t *) wsdl_component)->ops->\
00109 get_component_exts_for_namespace(wsdl_component, env, namespc))
00110
00112 #ifdef __cplusplus
00113 }
00114 #endif
00115 #endif