You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/20 05:21:30 UTC
svn commit: r639155 - in /webservices/axis2/trunk/c: include/axis2_options.h
src/core/clientapi/options.c
Author: senaka
Date: Wed Mar 19 21:21:30 2008
New Revision: 639155
URL: http://svn.apache.org/viewvc?rev=639155&view=rev
Log:
Adding ability to add custom headers in Client Side
Modified:
webservices/axis2/trunk/c/include/axis2_options.h
webservices/axis2/trunk/c/src/core/clientapi/options.c
Modified: webservices/axis2/trunk/c/include/axis2_options.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_options.h?rev=639155&r1=639154&r2=639155&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_options.h (original)
+++ webservices/axis2/trunk/c/include/axis2_options.h Wed Mar 19 21:21:30 2008
@@ -783,6 +783,20 @@
const axis2_char_t * http_method);
/**
+ * Sets the Additional HTTP Headers to be sent.
+ * @param options pointer to options struct
+ * @param env pointer to environment struct
+ * @param http_header_list array list containing
+ * HTTP Headers.
+ * @return AXIS2_SUCCESS on success, else AXIS2_FAILURE
+ */
+ AXIS2_EXTERN axis2_status_t AXIS2_CALL
+ axis2_options_set_http_headers(
+ axis2_options_t * options,
+ const axutil_env_t * env,
+ axutil_array_list_t * http_header_list);
+
+ /**
* Creates the options struct.
* @param env pointer to environment struct
* @return a pointer to newly created options struct, or NULL on error
@@ -801,7 +815,6 @@
* or NULL on error with error code set in environment's error.
*/
AXIS2_EXTERN axis2_options_t *AXIS2_CALL
-
axis2_options_create_with_parent(
const axutil_env_t * env,
axis2_options_t * parent);
Modified: webservices/axis2/trunk/c/src/core/clientapi/options.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/clientapi/options.c?rev=639155&r1=639154&r2=639155&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/clientapi/options.c (original)
+++ webservices/axis2/trunk/c/src/core/clientapi/options.c Wed Mar 19 21:21:30 2008
@@ -1010,6 +1010,24 @@
}
AXIS2_EXTERN axis2_status_t AXIS2_CALL
+axis2_options_set_http_headers(
+ axis2_options_t * options,
+ const axutil_env_t * env,
+ axutil_array_list_t * http_header_list)
+{
+ axutil_property_t *headers_property = NULL;
+
+ headers_property = axutil_property_create(env);
+ axutil_property_set_value(headers_property, env,
+ http_header_list);
+ axis2_options_set_property(options, env, AXIS2_TRANSPORT_HEADER_PROPERTY,
+ headers_property);
+ axutil_property_set_free_func(headers_property, env,
+ axutil_array_list_free_void_arg);
+ return AXIS2_SUCCESS;
+}
+
+AXIS2_EXTERN axis2_status_t AXIS2_CALL
axis2_options_set_proxy_auth_info(
axis2_options_t * options,
const axutil_env_t * env,
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org