axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r954377 - /axis/axis2/c/core/trunk/src/core/context/msg_ctx.c
Date Mon, 14 Jun 2010 09:28:33 GMT
Author: nandika
Date: Mon Jun 14 09:28:33 2010
New Revision: 954377

URL: http://svn.apache.org/viewvc?rev=954377&view=rev
Log:
msg_ctx.c corrected to handle transport url property

Modified:
    axis/axis2/c/core/trunk/src/core/context/msg_ctx.c

Modified: axis/axis2/c/core/trunk/src/core/context/msg_ctx.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/src/core/context/msg_ctx.c?rev=954377&r1=954376&r2=954377&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/src/core/context/msg_ctx.c (original)
+++ axis/axis2/c/core/trunk/src/core/context/msg_ctx.c Mon Jun 14 09:28:33 2010
@@ -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);



Mime
View raw message