00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef AXIS2_WSDL_ENDPOINT_H
00019 #define AXIS2_WSDL_ENDPOINT_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_wsdl_component.h>
00032 #include <axis2_qname.h>
00033 #include <axis2_wsdl_binding.h>
00034
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039
00040 struct axis2_wsdl_component;
00041 struct axis2_wsdl_binding;
00042 typedef struct axis2_wsdl_endpoint axis2_wsdl_endpoint_t;
00043 typedef struct axis2_wsdl_endpoint_ops axis2_wsdl_endpoint_ops_t;
00044
00054 struct axis2_wsdl_endpoint_ops
00055 {
00059 axis2_status_t (AXIS2_CALL *free)(axis2_wsdl_endpoint_t *wsdl_endpoint,
00060 const axis2_env_t *env);
00061
00067 axis2_qname_t *(AXIS2_CALL *
00068 get_name) (axis2_wsdl_endpoint_t *wsdl_endpoint,
00069 const axis2_env_t *env);
00070
00076 axis2_status_t (AXIS2_CALL *
00077 set_name) (axis2_wsdl_endpoint_t *wsdl_endpoint,
00078 const axis2_env_t *env,
00079 axis2_qname_t *qname);
00080
00081
00087 struct axis2_wsdl_binding *(AXIS2_CALL *
00088 get_binding) (axis2_wsdl_endpoint_t *wsdl_endpoint,
00089 const axis2_env_t *env);
00090
00096 axis2_status_t (AXIS2_CALL *
00097 set_binding) (axis2_wsdl_endpoint_t *wsdl_endpoint,
00098 const axis2_env_t *env,
00099 struct axis2_wsdl_binding *wsdl_binding);
00100
00101
00102 };
00103
00107 struct axis2_wsdl_endpoint
00108 {
00109 axis2_wsdl_endpoint_ops_t *ops;
00110 struct axis2_wsdl_component *wsdl_component;
00111 };
00112
00117 AXIS2_EXTERN axis2_wsdl_endpoint_t * AXIS2_CALL
00118 axis2_wsdl_endpoint_create (const axis2_env_t *env);
00119
00120
00121
00122 #define AXIS2_WSDL_ENDPOINT_FREE(wsdl_endpoint, env) \
00123 ((wsdl_endpoint)->ops->free (wsdl_endpoint, env))
00124
00125 #define AXIS2_WSDL_ENDPOINT_GET_NAME(wsdl_endpoint, env) \
00126 ((wsdl_endpoint)->ops->get_name (wsdl_endpoint, env))
00127
00128 #define AXIS2_WSDL_ENDPOINT_SET_NAME(wsdl_endpoint, env, qname) \
00129 ((wsdl_endpoint)->ops->set_name (wsdl_endpoint, env, qname))
00130
00131 #define AXIS2_WSDL_ENDPOINT_GET_BINDING(wsdl_endpoint, env) \
00132 ((wsdl_endpoint)->ops->get_binding (wsdl_endpoint, env))
00133
00134 #define AXIS2_WSDL_ENDPOINT_SET_BINDING(wsdl_endpoint, env, wsdl_binding) \
00135 ((wsdl_endpoint)->ops->set_binding (wsdl_endpoint, env, wsdl_binding))
00136
00137
00138
00141 #ifdef __cplusplus
00142 }
00143 #endif
00144 #endif