axis2_wsdl_svc.h

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

Generated on Wed Dec 20 20:14:10 2006 for Axis2/C by  doxygen 1.5.1