axis2_wsdl_svc.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef AXIS2_WSDL_SVC_H
00018 #define AXIS2_WSDL_SVC_H
00019 
00025 #include <axis2_const.h>
00026 #include <axis2_error.h>
00027 #include <axis2_defines.h>
00028 #include <axis2_env.h>
00029 #include <axis2_allocator.h>
00030 #include <axis2_string.h>
00031 #include <axis2_hash.h>
00032 #include <axis2_qname.h>
00033 #include <axis2_wsdl_interface.h>
00034 #include <axis2_wsdl_component.h>
00035 #include <axis2_wsdl_endpoint.h>
00036 
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041    
00047 struct axis2_wsdl_endpoint; 
00048 struct axis2_wsdl_interface; 
00049 struct axis2_wsdl_component;    
00050 typedef struct axis2_wsdl_svc_ops axis2_wsdl_svc_ops_t;
00051 typedef struct axis2_wsdl_svc axis2_wsdl_svc_t;
00052 
00053 #define AXIS2_STYLE_RPC  "rpc"
00054 #define AXIS2_STYLE_DOC  "doc"
00055 #define AXIS2_STYLE_MSG  "msg"
00056 
00060 struct axis2_wsdl_svc_ops
00061 {
00065    axis2_status_t (AXIS2_CALL *
00066    free) (axis2_wsdl_svc_t *wsdl_svc, 
00067            const axis2_env_t *env);
00068 
00073     const axis2_qname_t * (AXIS2_CALL *
00074    get_qname)(axis2_wsdl_svc_t *wsdl_svc,
00075                const axis2_env_t *env);
00076 
00081     axis2_status_t (AXIS2_CALL *
00082    set_qname) (axis2_wsdl_svc_t *wsdl_svc,
00083                 const axis2_env_t *env,
00084                 const axis2_qname_t *qname);
00085     
00091     axis2_hash_t *(AXIS2_CALL *
00092     get_endpoints) (axis2_wsdl_svc_t *wsdl_svc,
00093                     const axis2_env_t *env);
00094     
00100     axis2_status_t (AXIS2_CALL *
00101     set_endpoints) (axis2_wsdl_svc_t *wsdl_svc,
00102                     const axis2_env_t *env,
00103                     axis2_hash_t *endpoints);
00104     
00110     axis2_status_t (AXIS2_CALL *
00111     set_endpoint) (axis2_wsdl_svc_t *wsdl_svc,
00112                                     const axis2_env_t *env,
00113                                     struct axis2_wsdl_endpoint *endpoint);
00114     
00121     struct axis2_wsdl_endpoint * (AXIS2_CALL *
00122     get_endpoint) (axis2_wsdl_svc_t *wsdl_svc,
00123                                     const axis2_env_t *env,
00124                                     const axis2_qname_t *qname);
00125 
00132     axis2_char_t *(AXIS2_CALL *
00133     get_namespace) (axis2_wsdl_svc_t *wsdl_svc,
00134                                     const axis2_env_t *env);
00135 
00141     struct axis2_wsdl_interface * (AXIS2_CALL *
00142     get_svc_interface) (axis2_wsdl_svc_t *wsdl_svc,
00143                                         const axis2_env_t *env);
00144     
00150     axis2_status_t (AXIS2_CALL *
00151     set_svc_interface) (axis2_wsdl_svc_t *wsdl_svc,
00152                                         const axis2_env_t *env,
00153                                         struct axis2_wsdl_interface *svc_interface);
00154 
00155 };
00156 
00161 struct axis2_wsdl_svc
00162 {
00163    axis2_wsdl_svc_ops_t *ops;
00164     struct axis2_wsdl_component *wsdl_component;
00165 };
00166 
00170 AXIS2_EXTERN axis2_wsdl_svc_t * AXIS2_CALL 
00171 axis2_wsdl_svc_create (const axis2_env_t *env);
00172 
00173 /**************************** Start of function macros ************************/
00174 
00175 #define AXIS2_WSDL_SVC_FREE(wsdl_svc, env) ((wsdl_svc)->ops->free (wsdl_svc, \
00176       env))
00177 
00178 #define AXIS2_WSDL_SVC_GET_QNAME(wsdl_svc, env) \
00179         ((wsdl_svc)->ops->get_qname (wsdl_svc, env))
00180 
00181 #define AXIS2_WSDL_SVC_SET_QNAME(wsdl_svc, env, qname) \
00182         ((wsdl_svc)->ops->set_qname (wsdl_svc, env, qname))
00183 
00184 #define AXIS2_WSDL_SVC_GET_ENDPOINTS(wsdl_svc, env) \
00185         ((wsdl_svc)->ops->get_endpoints(wsdl_svc, env))
00186 
00187 #define AXIS2_WSDL_SVC_SET_ENDPOINTS(wsdl_svc, env, endpoints) \
00188         ((wsdl_svc)->ops->set_endpoints(wsdl_svc, env, endpoints))
00189 
00190 #define AXIS2_WSDL_SVC_SET_ENDPOINT(wsdl_svc, env, endpoint) \
00191         ((wsdl_svc)->ops->set_endpoint(wsdl_svc, env, endpoint))
00192 
00193 #define AXIS2_WSDL_SVC_GET_ENDPOINT(wsdl_svc, env, qname) \
00194         ((wsdl_svc)->ops->get_endpoint(wsdl_svc, env, qname))
00195 
00196 #define AXIS2_WSDL_SVC_GET_NAMESPACE(wsdl_svc, env) \
00197         ((wsdl_svc)->ops->get_namespace(wsdl_svc, env))
00198         
00199 #define AXIS2_WSDL_SVC_GET_SVC_INTERFACE(wsdl_svc, env) \
00200         ((wsdl_svc)->ops->get_svc_interface(wsdl_svc, env))        
00201 
00202 #define AXIS2_WSDL_SVC_SET_SVC_INTERFACE(wsdl_svc, env, svc_interface) \
00203         ((wsdl_svc)->ops->set_svc_interface(wsdl_svc, env, svc_interface))
00204         
00205 /**************************** End of function macros **************************/
00207 #ifdef __cplusplus
00208 }
00209 #endif
00210 #endif /* AXIS2_WSDL_SVC_H  */

Generated on Thu Oct 26 21:11:24 2006 for Axis2/C by  doxygen 1.4.7