From 1c811fbdebd430adef8429f774e9d8fe84e13356 Mon Sep 17 00:00:00 2001 From: nandika Date: Mon, 14 Jun 2010 09:28:33 +0000 Subject: msg_ctx.c corrected to handle transport url property git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@954377 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/context/msg_ctx.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/context/msg_ctx.c b/src/core/context/msg_ctx.c index 02bfdf3..4bc5ff7 100644 --- a/src/core/context/msg_ctx.c +++ b/src/core/context/msg_ctx.c @@ -552,6 +552,11 @@ axis2_msg_ctx_free( AXIS2_FREE(env->allocator, msg_ctx->options); } + if(msg_ctx->transport_url) + { + AXIS2_FREE(env->allocator, msg_ctx->transport_url); + } + AXIS2_FREE(env->allocator, msg_ctx); return; @@ -1910,7 +1915,7 @@ axis2_msg_ctx_set_options( axutil_property_t *rest_val = NULL; axis2_char_t *value; axutil_string_t *soap_action = NULL; - ; + axutil_property_t *transport_url_prop = NULL; AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FAILURE); AXIS2_PARAM_CHECK(env->error, options, AXIS2_FAILURE); @@ -1938,6 +1943,15 @@ axis2_msg_ctx_set_options( } } + transport_url_prop = (axutil_property_t*)axis2_msg_ctx_get_property(msg_ctx, env, AXIS2_TRANSPORT_URL); + if(transport_url_prop) + { + if(axutil_property_get_value(transport_url_prop, env)) + { + msg_ctx->transport_url = axutil_strdup(env, (axis2_char_t*)axutil_property_get_value(transport_url_prop, env)); + } + } + if(msg_ctx->soap_action) { axutil_string_free(msg_ctx->soap_action, env); -- cgit v1.1-32-gdbae