You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2006/03/21 02:14:43 UTC
svn commit: r387370 -
/webservices/axis2/trunk/c/modules/core/util/core_utils.c
Author: samisa
Date: Mon Mar 20 17:14:41 2006
New Revision: 387370
URL: http://svn.apache.org/viewcvs?rev=387370&view=rev
Log:
Removed the duplicate creation of axis2_msg_info_headers. Fix for AXIS2C-101
Modified:
webservices/axis2/trunk/c/modules/core/util/core_utils.c
Modified: webservices/axis2/trunk/c/modules/core/util/core_utils.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/util/core_utils.c?rev=387370&r1=387369&r2=387370&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/util/core_utils.c (original)
+++ webservices/axis2/trunk/c/modules/core/util/core_utils.c Mon Mar 20 17:14:41 2006
@@ -63,10 +63,14 @@
{
return NULL;
}
- msg_info_headers = axis2_msg_info_headers_create(env, NULL, NULL);
+ msg_info_headers = AXIS2_MSG_CTX_GET_MSG_INFO_HEADERS(new_msg_ctx, env);
if(!msg_info_headers)
{
- return NULL;
+ /* if there is no msg info header in ew msg ctx, then create one */
+ msg_info_headers = axis2_msg_info_headers_create(env, NULL, NULL);
+ if (!msg_info_headers)
+ return NULL;
+ AXIS2_MSG_CTX_SET_MSG_INFO_HEADERS(new_msg_ctx, env, msg_info_headers);
}
AXIS2_MSG_INFO_HEADERS_SET_MESSAGE_ID(msg_info_headers, env, axis2_uuid_gen(env));
reply_to = AXIS2_MSG_INFO_HEADERS_GET_REPLY_TO(old_msg_info_headers, env);
@@ -85,7 +89,6 @@
action = AXIS2_MSG_INFO_HEADERS_GET_ACTION(old_msg_info_headers, env);
AXIS2_MSG_INFO_HEADERS_SET_ACTION(msg_info_headers, env, action);
- AXIS2_MSG_CTX_SET_MSG_INFO_HEADERS(new_msg_ctx, env, msg_info_headers);
op_ctx = AXIS2_MSG_CTX_GET_OP_CTX(in_msg_ctx, env);
AXIS2_MSG_CTX_SET_OP_CTX(new_msg_ctx, env, op_ctx);