axis2_wsdl_soap_op.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_SOAP_OP_H
00019 #define AXIS2_WSDL_SOAP_OP_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_qname.h>
00032 #include <axis2_wsdl_extensible_element.h>
00033 #include <axis2_wsdl.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C"
00037 {
00038 #endif
00039 
00040 typedef struct axis2_wsdl_soap_op axis2_wsdl_soap_op_t;
00041 typedef struct axis2_wsdl_soap_op_ops axis2_wsdl_soap_op_ops_t;
00042 
00052  struct axis2_wsdl_soap_op_ops
00053 {
00057    axis2_status_t (AXIS2_CALL *free)(
00058                     axis2_wsdl_soap_op_t *wsdl_soap_op,
00059                  const axis2_env_t *env);
00060 
00061     axis2_char_t *(AXIS2_CALL *
00062     get_style) (axis2_wsdl_soap_op_t *soap_op,
00063                                         const axis2_env_t *env);
00064         
00065     axis2_status_t (AXIS2_CALL *
00066     set_style) (axis2_wsdl_soap_op_t *soap_op,
00067                                         const axis2_env_t *env,
00068                                         axis2_char_t *style);
00069     
00070     axis2_char_t * (AXIS2_CALL *
00071     get_soap_action) (axis2_wsdl_soap_op_t *soap_op,
00072                                         const axis2_env_t *env);
00073     
00074     axis2_status_t (AXIS2_CALL *
00075     set_soap_action) (axis2_wsdl_soap_op_t *soap_op,
00076                                         const axis2_env_t *env,
00077                                         axis2_char_t *soap_action);
00078 };
00079 
00084  struct axis2_wsdl_soap_op
00085 {
00086    axis2_wsdl_soap_op_ops_t *ops;
00087     axis2_wsdl_extensible_element_t *extensible_element;
00088 };
00089 
00094 AXIS2_EXTERN axis2_wsdl_soap_op_t * AXIS2_CALL 
00095 axis2_wsdl_soap_op_create (const axis2_env_t *env);
00096 
00102 AXIS2_EXTERN axis2_wsdl_soap_op_t * AXIS2_CALL 
00103 axis2_wsdl_soap_op_create_with_type (const axis2_env_t *env, axis2_qname_t *type);
00104 
00105 /*************************** Function macros **********************************/
00106 
00107 #define AXIS2_WSDL_SOAP_OP_FREE(soap_op, env) \
00108       ((soap_op)->ops->free (soap_op, env))
00109 
00110 #define AXIS2_WSDL_SOAP_OP_GET_STYLE(soap_op, env) \
00111       ((soap_op)->ops->get_style (soap_op, env))
00112 
00113 #define AXIS2_WSDL_SOAP_OP_SET_STYLE(soap_op, env, style) \
00114       ((soap_op)->ops->set_style (soap_op, env, style))
00115 
00116 #define AXIS2_WSDL_SOAP_OP_GET_SOAP_ACTION(soap_op, env) \
00117       ((soap_op)->ops->get_soap_action (soap_op, env))
00118 
00119 #define AXIS2_WSDL_SOAP_OP_SET_SOAP_ACTION(soap_op, env, soap_action) \
00120       ((soap_op)->ops->set_soap_action (soap_op, env, soap_action))       
00121 
00122 /*************************** End of function macros ***************************/
00123 
00126 #ifdef __cplusplus
00127 }
00128 #endif
00129 #endif  /* AXIS2_WSDL_SOAP_OP_H */

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