axiom_soap_message.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2004,2005 The Apache Software Foundation.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016  
00017  #ifndef AXIOM_SOAP_MESSAGE_H
00018  #define AXIOM_SOAP_MESSAGE_H
00019  
00025 #include <axis2_env.h>
00026 #include <axiom_soap_envelope.h>
00027 #include <axiom_soap_builder.h>
00028 
00029 #ifdef __cplusplus
00030 extern "C"
00031 {
00032 #endif
00033 
00034     typedef struct axiom_soap_message        axiom_soap_message_t;
00035     typedef struct axiom_soap_message_ops    axiom_soap_message_ops_t;
00036     
00037     
00048     struct axiom_soap_message_ops
00049     {
00058         axis2_status_t (AXIS2_CALL *
00059       free_fn)(axiom_soap_message_t *message,
00060                  const axis2_env_t *env);
00061                                              
00062         axiom_soap_envelope_t* (AXIS2_CALL *
00063       get_soap_envelope)(axiom_soap_message_t *message,
00064                            const axis2_env_t *env);
00065                                              
00066         axis2_status_t (AXIS2_CALL *
00067       serialize)(axiom_soap_message_t *message,
00068                    const axis2_env_t *env,
00069                    axiom_output_t *om_output);
00070                                                        
00071                                                                                             
00072     };
00073 
00078     struct axiom_soap_message
00079     {
00081         axiom_soap_message_ops_t *ops;
00082        
00083     };
00084 
00089 AXIS2_EXTERN axiom_soap_message_t * AXIS2_CALL
00090 axiom_soap_message_create(const axis2_env_t *env,
00091                           axiom_soap_builder_t *soap_builder,
00092                           axiom_document_t *om_doc);
00093 
00094 /******************** Macros **************************************************/
00095     
00096     
00098 #define AXIOM_SOAP_MESSAGE_FREE(message , env) \
00099         ((message)->ops->free_fn(message, env))
00100         
00101 #define AXIOM_SOAP_MESSAGE_GET_SOAP_ENVELOPE(message, env) \
00102         ((message)->ops->get_envelope(message, env))
00103         
00104 #define AXIOM_SOAP_MESSAGE_SERIALIZE(message, env, om_output) \
00105         ((message)->ops->serialize(message, env, om_output))
00106 
00108 #ifdef __cplusplus
00109 }
00110 #endif
00111  
00112  
00113  
00114 #endif /* AXIOM_SOAP_MESSAGE_H */

Generated on Thu Oct 26 21:00:11 2006 for Axis2/C by  doxygen 1.4.7