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