You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by da...@apache.org on 2008/06/13 12:07:48 UTC

svn commit: r667454 - /webservices/sandesha/trunk/c/src/util/ack_mgr.c

Author: damitha
Date: Fri Jun 13 03:07:48 2008
New Revision: 667454

URL: http://svn.apache.org/viewvc?rev=667454&view=rev
Log:
Working on security with Sandesha2/C

Modified:
    webservices/sandesha/trunk/c/src/util/ack_mgr.c

Modified: webservices/sandesha/trunk/c/src/util/ack_mgr.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/ack_mgr.c?rev=667454&r1=667453&r2=667454&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/ack_mgr.c (original)
+++ webservices/sandesha/trunk/c/src/util/ack_mgr.c Fri Jun 13 03:07:48 2008
@@ -48,7 +48,7 @@
     sandesha2_seq_property_bean_t *acks_to_bean = NULL;
     axis2_endpoint_ref_t *acks_to = NULL;
     axis2_char_t *acks_to_str = NULL;
-    axis2_op_t *ack_op = NULL;
+    /*axis2_op_t *ack_op = NULL;*/
     axis2_op_t *ref_op = NULL;
     axis2_msg_ctx_t *ack_msg_ctx = NULL;
     axutil_property_t *property = NULL;
@@ -78,10 +78,10 @@
         AXIS2_ERROR_SET(env->error, SANDESHA2_ERROR_INVALID_EPR, AXIS2_FAILURE);
         return NULL;
     }
-    ack_op = axis2_op_create(env);
-    axis2_op_set_msg_exchange_pattern(ack_op, env, AXIS2_MEP_URI_OUT_ONLY);
+    /*ack_op = axis2_op_create(env);
+    axis2_op_set_msg_exchange_pattern(ack_op, env, AXIS2_MEP_URI_OUT_ONLY);*/
     ref_op = axis2_msg_ctx_get_op(ref_msg, env);
-    if(ref_op)
+    /*if(ref_op)
     {
         axutil_array_list_t *out_flow = NULL;
         axutil_array_list_t *out_fault_flow = NULL;
@@ -95,9 +95,10 @@
             axis2_op_set_out_flow(ack_op, env, new_out_flow);
         if(new_out_fault_flow)
             axis2_op_set_fault_out_flow(ack_op, env, new_out_fault_flow);
-    }
-    ack_msg_ctx = sandesha2_utils_create_new_related_msg_ctx(env, ref_rm_msg,
-        ack_op);
+    }*/
+
+    ack_msg_ctx = sandesha2_utils_create_new_related_msg_ctx(env, ref_rm_msg, ref_op);
+
     property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST, 
         AXIS2_FALSE, 0, AXIS2_VALUE_TRUE);
     if(property)
@@ -106,6 +107,7 @@
             SANDESHA2_APPLICATION_PROCESSING_DONE, property);
         property = NULL;
     }
+
     ack_rm_msg = sandesha2_msg_init_init_msg(env, ack_msg_ctx);
     sandesha2_msg_ctx_set_rm_ns_val(ack_rm_msg, env, 
         sandesha2_msg_ctx_get_rm_ns_val(ref_rm_msg, env));
@@ -115,18 +117,22 @@
         axis2_msg_ctx_get_soap_envelope(ref_msg, env)));
     axis2_msg_ctx_set_soap_envelope(ack_msg_ctx, env, soap_env);
     axis2_msg_ctx_set_to(ack_msg_ctx, env, acks_to);
+
     /* Adding the sequence acknowledgement part */
     sandesha2_msg_creator_add_ack_msg(env, ack_rm_msg, seq_id, seq_prop_mgr);
     axis2_msg_ctx_set_property(ack_msg_ctx, env, AXIS2_TRANSPORT_IN, NULL);
     op_ctx = axis2_msg_ctx_get_op_ctx(ref_msg, env);
-    if(!op_ctx)
+    axis2_msg_ctx_set_op_ctx(ack_msg_ctx, env, op_ctx);
+    axis2_op_ctx_increment_ref(op_ctx, env);
+
+    /*if(!op_ctx)
     {
         axis2_op_t *op = axis2_op_create(env);
         axis2_op_set_msg_exchange_pattern(op, env, AXIS2_MEP_URI_IN_OUT);
         op_ctx = axis2_op_ctx_create(env, op, NULL);
         axis2_msg_ctx_set_op(ref_msg, env, op);
         axis2_msg_ctx_set_op_ctx(ref_msg, env, op_ctx);            
-    }
+    }*/
     axis2_op_ctx_set_response_written(op_ctx, env, AXIS2_TRUE);
     
     property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST, 



---------------------------------------------------------------------
To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org