axis2_wsdl_ext_soap_address.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_EXT_SOAP_ADDRESS_H
00019 #define AXIS2_WSDL_EXT_SOAP_ADDRESS_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_wsdl_ext.h>
00033 
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif
00038 
00039 struct axis2_wsdl_component;    
00040 typedef struct axis2_wsdl_ext_soap_address axis2_wsdl_ext_soap_address_t;
00041 typedef struct axis2_wsdl_ext_soap_address_ops axis2_wsdl_ext_soap_address_ops_t;
00042 
00052  struct axis2_wsdl_ext_soap_address_ops
00053 {
00057    axis2_status_t (AXIS2_CALL *
00058     free)(axis2_wsdl_ext_soap_address_t *ext_soap_address,
00059            const axis2_env_t *env);
00060 
00061     axis2_char_t *(AXIS2_CALL *
00062     get_location_uri) (axis2_wsdl_ext_soap_address_t *ext_soap_address,
00063                                     const axis2_env_t *env);
00064 
00068     axis2_status_t (AXIS2_CALL *
00069     set_location_uri) (axis2_wsdl_ext_soap_address_t *ext_soap_address,
00070                                     const axis2_env_t *env,
00071                                     axis2_char_t *location_uri);
00072  
00073 };
00074 
00081  struct axis2_wsdl_ext_soap_address
00082 {
00083     axis2_wsdl_ext_t base;
00084    axis2_wsdl_ext_soap_address_ops_t *ops;
00085     struct axis2_wsdl_extensible_element *ext_element;
00086 };
00087 
00092 AXIS2_EXTERN axis2_wsdl_ext_soap_address_t * AXIS2_CALL 
00093 axis2_wsdl_ext_soap_address_create (const axis2_env_t *env,
00094                                     axis2_qname_t *qtype);
00095 
00096 /*************************** Function macros **********************************/
00097 
00098 #define AXIS2_WSDL_EXT_SOAP_ADDRESS_FREE(ext_soap_address, env) \
00099       ((ext_soap_address)->ops->free (ext_soap_address, env))
00100 
00101 #define AXIS2_WSDL_EXT_SOAP_ADDRESS_GET_LOCATION_URI(ext_soap_address, env) \
00102       ((ext_soap_address)->ops->get_location_uri (ext_soap_address, env))
00103 
00104 #define AXIS2_WSDL_EXT_SOAP_ADDRESS_SET_LOCATION_URI(ext_soap_address, env, location_uri) \
00105       ((ext_soap_address)->ops->set_location_uri (ext_soap_address, env, location_uri))        
00106 
00107 /*************************** End of function macros ***************************/
00108 
00111 #ifdef __cplusplus
00112 }
00113 #endif
00114 #endif  /* AXIS2_WSDL_EXT_SOAP_ADDRESS_H */

Generated on Wed Dec 20 20:34:50 2006 for Axis2/C by  doxygen 1.5.1