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 2007/12/04 09:51:04 UTC

svn commit: r600841 - in /webservices/sandesha/trunk/c: samples/rm_echo_single_1_0/rm_echo_single.c src/storage/sqlite/permanent_storage_mgr.c src/util/msg_init.c

Author: damitha
Date: Tue Dec  4 00:51:03 2007
New Revision: 600841

URL: http://svn.apache.org/viewvc?rev=600841&view=rev
Log:
comment the content of the function add_op_if_null

Modified:
    webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c
    webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
    webservices/sandesha/trunk/c/src/util/msg_init.c

Modified: webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c?rev=600841&r1=600840&r2=600841&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c (original)
+++ webservices/sandesha/trunk/c/samples/rm_echo_single_1_0/rm_echo_single.c Tue Dec  4 00:51:03 2007
@@ -20,7 +20,6 @@
 #include <axis2_client.h>
 #include <axis2_svc_ctx.h>
 #include <axis2_op_client.h>
-#include <axis2_listener_manager.h>
 #include <axis2_callback_recv.h>
 #include <axis2_svc_client.h>
 #include <sandesha2_client_constants.h>
@@ -58,13 +57,11 @@
     const axutil_env_t *env = NULL;
     const axis2_char_t *address = NULL;
     axis2_endpoint_ref_t* endpoint_ref = NULL;
-    axis2_endpoint_ref_t* reply_to = NULL;
     axis2_options_t *options = NULL;
     const axis2_char_t *client_home = NULL;
     axis2_svc_client_t* svc_client = NULL;
     axiom_node_t *payload = NULL;
     axutil_property_t *property = NULL;
-    axis2_listener_manager_t *listener_manager = NULL;
     axis2_char_t *offered_seq_id = NULL;
     axiom_node_t *result = NULL;
     axutil_string_t *soap_action = NULL;
@@ -115,14 +112,9 @@
     options = axis2_options_create(env);
     axis2_options_set_to(options, env, endpoint_ref);
     
-    /* Seperate listner needs addressing, hence addressing stuff in options */
-    /*axis2_options_set_action(options, env,
-        "http://127.0.0.1:8080/axis2/services/RMSampleService/anonOutInOp");*/
     soap_action = axutil_string_create(env, "urn:wsrm:EchoString");
     axis2_options_set_soap_action(options, env, soap_action);
     axis2_options_set_action(options, env, "urn:wsrm:EchoString");
-    reply_to = axis2_endpoint_ref_create(env, AXIS2_WSA_ANONYMOUS_URL);
-    /*axis2_options_set_reply_to(options, env, reply_to);*/
 
     /* Set up deploy folder. It is from the deploy folder, the configuration is 
      * picked up using the axis2.xml file.
@@ -153,11 +145,6 @@
     axis2_svc_client_engage_module(svc_client, env, AXIS2_MODULE_ADDRESSING);  
     axis2_svc_client_engage_module(svc_client, env, "sandesha2");
 
-    listener_manager = axis2_listener_manager_create(env);
-    if (!listener_manager)
-    {
-        return AXIS2_FAILURE;
-    }
     /* Offer sequence */
     offered_seq_id = axutil_uuid_gen(env);
     property = axutil_property_create(env);

Modified: webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c?rev=600841&r1=600840&r2=600841&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c (original)
+++ webservices/sandesha/trunk/c/src/storage/sqlite/permanent_storage_mgr.c Tue Dec  4 00:51:03 2007
@@ -816,9 +816,9 @@
     sandesha2_msg_store_bean_t *msg_store_bean = NULL;
 
     storage_mgr_impl = SANDESHA2_INTF_TO_IMPL(storage_mgr);
-    if(!persistent)
+    /*if(!persistent)
         msg_ctx = (axis2_msg_ctx_t *) axutil_hash_get(
-            storage_mgr_impl->msg_ctx_map, key, AXIS2_HASH_KEY_STRING);
+            storage_mgr_impl->msg_ctx_map, key, AXIS2_HASH_KEY_STRING);*/
     if(msg_ctx)
         return msg_ctx;
     AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "[sandesha2]retrieved from database");
@@ -850,6 +850,7 @@
         axiom_soap_builder_free(soap_builder, env);
         return NULL;
     }
+    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "dam_soap_envelope:%s", soap_env_str);
     axis2_msg_ctx_set_soap_envelope(msg_ctx, env, soap_envelope);
     axis2_msg_ctx_set_msg_id(msg_ctx, env, sandesha2_msg_store_bean_get_msg_id(
         msg_store_bean, env));

Modified: webservices/sandesha/trunk/c/src/util/msg_init.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/msg_init.c?rev=600841&r1=600840&r2=600841&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/msg_init.c (original)
+++ webservices/sandesha/trunk/c/src/util/msg_init.c Tue Dec  4 00:51:03 2007
@@ -183,7 +183,7 @@
                 (sandesha2_iom_rm_part_t *) seq_ack);
         rm_ns = sandesha2_iom_rm_element_get_namespace_value(
                 (sandesha2_iom_rm_element_t *) seq_ack, env);
-        add_op_if_null(env, msg_ctx);
+        /*add_op_if_null(env, msg_ctx);*/
     }
     terminate_seq = sandesha2_rm_elements_get_terminate_seq(rm_elements, env);
     if(terminate_seq)
@@ -214,7 +214,7 @@
                 (sandesha2_iom_rm_part_t *) ack_request);
         rm_ns = sandesha2_iom_rm_element_get_namespace_value(
                 (sandesha2_iom_rm_element_t *) ack_request, env);
-        add_op_if_null(env, msg_ctx);
+        /*add_op_if_null(env, msg_ctx);*/
     }
     close_seq = sandesha2_rm_elements_get_close_seq(rm_elements, env);
     if(close_seq)
@@ -468,7 +468,7 @@
     const axutil_env_t *env,
     axis2_msg_ctx_t *msg_ctx)
 {
-    axis2_op_t *op = NULL;
+    /*axis2_op_t *op = NULL;
         
     op = axis2_msg_ctx_get_op(msg_ctx, env);
     if(!op)
@@ -517,7 +517,7 @@
         }
         axutil_qname_free(tmp_qname, env);
         axis2_msg_ctx_set_op(msg_ctx, env, op);
-    }
+    }*/
 }
 
 



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