axis2_wsdl_endpoint.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_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 /*************************** Function macros **********************************/
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 /*************************** End of function macros ***************************/
00138 
00141 #ifdef __cplusplus
00142 }
00143 #endif
00144 #endif  /* AXIS2_WSDL_ENDPOINT_H */

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