axis2_http_sender.h

Go to the documentation of this file.
00001 
00002 /*
00003  * Licensed to the Apache Software Foundation (ASF) under one or more
00004  * contributor license agreements.  See the NOTICE file distributed with
00005  * this work for additional information regarding copyright ownership.
00006  * The ASF licenses this file to You under the Apache License, Version 2.0
00007  * (the "License"); you may not use this file except in compliance with
00008  * the License.  You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
00017  */
00018 
00019 #ifndef AXIS2_HTTP_SENDER_H
00020 #define AXIS2_HTTP_SENDER_H
00021 
00032 #include <axis2_const.h>
00033 #include <axis2_defines.h>
00034 #include <axutil_env.h>
00035 #include <axis2_msg_ctx.h>
00036 #include <axiom_output.h>
00037 #include <axis2_http_simple_response.h>
00038 #include <axiom_soap_envelope.h>
00039 #include <axis2_http_simple_request.h>
00040 
00041 #ifdef AXIS2_LIBCURL_ENABLED
00042 #include <curl/curl.h>
00043 #endif
00044 
00045 #ifdef __cplusplus
00046 extern "C"
00047 {
00048 #endif
00049 
00051     typedef struct axis2_http_sender axis2_http_sender_t;
00052 
00062     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00063     axis2_http_sender_send(
00064         axis2_http_sender_t * sender,
00065         const axutil_env_t * env,
00066         axis2_msg_ctx_t * msg_ctx,
00067         axiom_soap_envelope_t * out,
00068         const axis2_char_t * str_url,
00069         const axis2_char_t * soap_action);
00070 
00071     void AXIS2_CALL
00072     axis2_http_sender_util_add_header(
00073         const axutil_env_t * env,
00074         axis2_http_simple_request_t * request,
00075         axis2_char_t * header_name,
00076         const axis2_char_t * header_value);
00077 
00078 #ifdef AXIS2_LIBCURL_ENABLED
00079     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00080     axis2_libcurl_http_send(
00081         axis2_http_sender_t * sender,
00082         const axutil_env_t * env,
00083         axis2_msg_ctx_t * msg_ctx,
00084         axiom_soap_envelope_t * out,
00085         const axis2_char_t * str_url,
00086         const axis2_char_t * soap_action);
00087 #endif
00088 
00095     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00096     axis2_http_sender_set_chunked(
00097         axis2_http_sender_t * sender,
00098         const axutil_env_t * env,
00099         axis2_bool_t chunked);
00100 
00107     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00108     axis2_http_sender_set_om_output(
00109         axis2_http_sender_t * sender,
00110         const axutil_env_t * env,
00111         axiom_output_t * om_output);
00112 
00119     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00120 
00121     axis2_http_sender_set_http_version(
00122         axis2_http_sender_t * sender,
00123         const axutil_env_t * env,
00124         axis2_char_t * version);
00125 
00131     AXIS2_EXTERN void AXIS2_CALL
00132     axis2_http_sender_free(
00133         axis2_http_sender_t * sender,
00134         const axutil_env_t * env);
00135 
00142     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00143     axis2_http_sender_get_header_info(
00144         axis2_http_sender_t * sender,
00145         const axutil_env_t * env,
00146         axis2_msg_ctx_t * msg_ctx,
00147         axis2_http_simple_response_t * response);
00148 
00155     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00156 
00157     axis2_http_sender_process_response(
00158         axis2_http_sender_t * sender,
00159         const axutil_env_t * env,
00160         axis2_msg_ctx_t * msg_ctx,
00161         axis2_http_simple_response_t * response);
00162 
00168     AXIS2_EXTERN axis2_status_t AXIS2_CALL
00169 
00170     axis2_http_sender_get_timeout_values(
00171         axis2_http_sender_t * sender,
00172         const axutil_env_t * env,
00173         axis2_msg_ctx_t * msg_ctx);
00174 
00175     AXIS2_EXTERN axis2_char_t *AXIS2_CALL
00176     axis2_http_sender_get_param_string(
00177         axis2_http_sender_t * sender,
00178         const axutil_env_t * env,
00179         axis2_msg_ctx_t * msg_ctx);
00180 
00184     AXIS2_EXTERN axis2_http_sender_t *AXIS2_CALL
00185     axis2_http_sender_create(
00186         const axutil_env_t * env);
00187 
00189 #define AXIS2_HTTP_SENDER_SEND(sender, env, msg_ctx, output, url,soap_action)\
00190         axis2_http_sender_send(sender, env, msg_ctx,output, url, soap_action)
00191 
00193 #define AXIS2_HTTP_SENDER_SET_CHUNKED(sender, env, chunked) \
00194                         axis2_http_sender_set_chunked(sender, env, chunked)
00195 
00197 #define AXIS2_HTTP_SENDER_SET_OM_OUTPUT(sender, env, om_output) \
00198                         axis2_http_sender_set_om_output (sender, env, om_output)
00199 
00201 #define AXIOM_SENDER_SET_HTTP_VERSION(sender, env, version)\
00202                         axis2_http_sender_set_http_version (sender, env, version)
00203 
00205 #define AXIS2_HTTP_SENDER_FREE(sender, env) \
00206                         axis2_http_sender_free(sender, env)
00207 
00209 #ifdef __cplusplus
00210 }
00211 #endif
00212 #endif                          /* AXIS2_HTTP_SENDER_H */

Generated on Tue Jan 8 01:23:15 2008 for Axis2/C by  doxygen 1.5.1