From 6abb37e3a43eee5291c82366da517a9376f8e97c Mon Sep 17 00:00:00 2001 From: nandika Date: Fri, 28 Dec 2012 12:46:32 +0000 Subject: Applied patch AXIS2C-1526 git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1426482 13f79535-47bb-0310-9956-ffa450edef68 --- src/core/clientapi/op_client.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/clientapi/op_client.c b/src/core/clientapi/op_client.c index 86f5608..4b7a90d 100644 --- a/src/core/clientapi/op_client.c +++ b/src/core/clientapi/op_client.c @@ -1138,6 +1138,7 @@ axis2_op_client_two_way_send( long index = -1; axis2_bool_t wait_indefinitely = AXIS2_FALSE; axis2_char_t *mep = NULL; + axis2_char_t *msg_id = NULL; conf_ctx = axis2_msg_ctx_get_conf_ctx(msg_ctx, env); engine = axis2_engine_create(env, conf_ctx); @@ -1200,6 +1201,14 @@ axis2_op_client_two_way_send( axis2_msg_ctx_set_conf_ctx(response, env, axis2_msg_ctx_get_conf_ctx(msg_ctx, env)); axis2_msg_ctx_set_svc_grp_ctx(response, env, axis2_msg_ctx_get_svc_grp_ctx(msg_ctx, env)); + msg_id = (axis2_char_t *)axutil_uuid_gen(env); + axis2_msg_ctx_set_message_id(response, env, msg_id); + if(msg_id) + { + AXIS2_FREE(env->allocator, msg_id); + msg_id = NULL; + } + /* If request is REST we assume the response is REST, so set the variable */ axis2_msg_ctx_set_doing_rest(response, env, axis2_msg_ctx_get_doing_rest(msg_ctx, env)); axis2_msg_ctx_set_status_code(response, env, axis2_msg_ctx_get_status_code(msg_ctx, env)); -- cgit v1.1-32-gdbae