axis2_wsdl_ext_soap_header.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_HEADER_H
00019 #define AXIS2_WSDL_EXT_SOAP_HEADER_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 
00033 #ifdef __cplusplus
00034 extern "C"
00035 {
00036 #endif
00037 
00038 struct axis2_wsdl_component;    
00039 typedef struct axis2_wsdl_ext_soap_header axis2_wsdl_ext_soap_header_t;
00040 typedef struct axis2_wsdl_ext_soap_header_ops axis2_wsdl_ext_soap_header_ops_t;
00041 
00051  struct axis2_wsdl_ext_soap_header_ops
00052 {
00056    axis2_status_t (AXIS2_CALL *
00057     free)(axis2_wsdl_ext_soap_header_t *ext_soap_header,
00058            const axis2_env_t *env);
00059 
00060     axis2_char_t *(AXIS2_CALL *
00061     get_part) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00062                                     const axis2_env_t *env);
00063 
00064     axis2_status_t (AXIS2_CALL *
00065     set_part) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00066                                     const axis2_env_t *env,
00067                                     axis2_char_t *part);
00068 
00069     axis2_qname_t *(AXIS2_CALL *
00070     get_msg_qname) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00071                                     const axis2_env_t *env);
00072 
00073     axis2_status_t (AXIS2_CALL *
00074     set_msg_qname) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00075                                     const axis2_env_t *env,
00076                                     axis2_qname_t *msg_qname);
00077      
00078     axis2_qname_t *(AXIS2_CALL *
00079     get_qelement) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00080                                     const axis2_env_t *env);
00081 
00082     axis2_status_t (AXIS2_CALL *
00083     set_qelement) (axis2_wsdl_ext_soap_header_t *ext_soap_header,
00084                                     const axis2_env_t *env,
00085                                     axis2_qname_t *qelement);
00086      
00087 };
00088 
00093  struct axis2_wsdl_ext_soap_header
00094 {
00095    axis2_wsdl_ext_soap_header_ops_t *ops;
00096     struct axis2_wsdl_ext_soap_body *ext_soap_body;
00097 };
00098 
00103 AXIS2_EXTERN axis2_wsdl_ext_soap_header_t * AXIS2_CALL 
00104 axis2_wsdl_ext_soap_header_create (const axis2_env_t *env,
00105                                     axis2_qname_t *qtype);
00106 
00107 /*************************** Function macros **********************************/
00108 
00109 #define AXIS2_WSDL_EXT_SOAP_HEADER_FREE(ext_soap_header, env) \
00110       ((ext_soap_header)->ops->free (ext_soap_header, env))
00111 
00112 #define AXIS2_WSDL_EXT_SOAP_HEADER_GET_PART(ext_soap_header, env) \
00113       ((ext_soap_header)->ops->get_part (ext_soap_header, env))
00114 
00115 #define AXIS2_WSDL_EXT_SOAP_HEADER_SET_PART(ext_soap_header, env, part) \
00116       ((ext_soap_header)->ops->set_part (ext_soap_header, env, part))
00117         
00118 #define AXIS2_WSDL_EXT_SOAP_HEADER_GET_MSG_QNAME(ext_soap_header, env) \
00119       ((ext_soap_header)->ops->get_msg_qname (ext_soap_header, env))
00120 
00121 #define AXIS2_WSDL_EXT_SOAP_HEADER_SET_MSG_QNAME(ext_soap_header, env, msg_qname) \
00122       ((ext_soap_header)->ops->set_msg_qname (ext_soap_header, env, msg_qname))        
00123 
00124 #define AXIS2_WSDL_EXT_SOAP_HEADER_GET_QELEMENT(ext_soap_header, env) \
00125       ((ext_soap_header)->ops->get_qelement (ext_soap_header, env))
00126 
00127 #define AXIS2_WSDL_EXT_SOAP_HEADER_SET_QELEMENT(ext_soap_header, env, qelement) \
00128       ((ext_soap_header)->ops->set_qelement (ext_soap_header, env, qelement))        
00129 
00130 /*************************** End of function macros ***************************/
00131 
00134 #ifdef __cplusplus
00135 }
00136 #endif
00137 #endif  /* AXIS2_WSDL_EXT_SOAP_HEADER_H */

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