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 SANDESHA2_IOM_RM_PART_H 00018 #define SANDESHA2_IOM_RM_PART_H 00019 00025 #include <axutil_utils_defines.h> 00026 #include <axutil_env.h> 00027 #include <axiom_soap_envelope.h> 00028 #include <sandesha2_iom_rm_element.h> 00029 00030 00031 #ifdef __cplusplus 00032 extern "C" 00033 { 00034 #endif 00035 00041 typedef struct sandesha2_iom_rm_part_ops sandesha2_iom_rm_part_ops_t; 00042 typedef struct sandesha2_iom_rm_part sandesha2_iom_rm_part_t; 00047 AXIS2_DECLARE_DATA struct sandesha2_iom_rm_part_ops 00048 { 00049 axis2_status_t (AXIS2_CALL * 00050 to_soap_env) 00051 (sandesha2_iom_rm_part_t *part, 00052 const axutil_env_t *env, 00053 axiom_soap_envelope_t *envelope); 00054 }; 00055 00060 AXIS2_DECLARE_DATA struct sandesha2_iom_rm_part 00061 { 00062 sandesha2_iom_rm_element_t element; 00063 sandesha2_iom_rm_part_ops_t *ops; 00064 }; 00065 00066 axis2_status_t AXIS2_CALL 00067 sandesha2_iom_rm_part_free( 00068 sandesha2_iom_rm_part_t *part, 00069 const axutil_env_t *env); 00070 00071 axis2_status_t AXIS2_CALL 00072 sandesha2_iom_rm_part_to_soap_envelope( 00073 sandesha2_iom_rm_part_t *part, 00074 const axutil_env_t *env, 00075 axiom_soap_envelope_t *envelope); 00076 00078 #ifdef __cplusplus 00079 } 00080 #endif 00081 00082 #endif /*SANDESHA2_IOM_RM_PART_H*/