svn commit: r702791 - in /webservices/sandesha/trunk/c/src: handlers/sandesha2_out_handler.c util/sandesha2_utils.c

[email protected]
Newsgroups gmane.comp.apache.webservices.fx.devel
Message-ID <[email protected]>
Author: manjula
Date: Wed Oct  8 03:12:54 2008
New Revision: 702791

URL: http://svn.apache.org/viewvc?rev=702791&view=rev
Log:
skipping sct response messages.

Modified:
    webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c
    webservices/sandesha/trunk/c/src/util/sandesha2_utils.c

Modified: webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c?rev=702791&r1=702790&r2=702791&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c (original)
+++ webservices/sandesha/trunk/c/src/handlers/sandesha2_out_handler.c Wed Oct  8 03:12:54 2008
@@ -95,6 +95,13 @@
         temp_prop = NULL;
     }
 
+    if(sandesha2_util_is_rstr_msg(env, msg_ctx))
+    {
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
+            "[sandesha2] A RSTR message. Sandesha don't process.");
+        return AXIS2_SUCCESS;
+    }
+
     conf_ctx = axis2_msg_ctx_get_conf_ctx(msg_ctx, env);
     if(!conf_ctx)
     {

Modified: webservices/sandesha/trunk/c/src/util/sandesha2_utils.c
URL: http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/util/sandesha2_utils.c?rev=702791&r1=702790&r2=702791&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/util/sandesha2_utils.c (original)
+++ webservices/sandesha/trunk/c/src/util/sandesha2_utils.c Wed Oct  8 03:12:54 2008
@@ -1583,3 +1583,45 @@
     return node_list;
 }
 
+
+axis2_bool_t AXIS2_CALL
+sandesha2_util_is_rstr_msg(
+    const axutil_env_t *env, 
+    axis2_msg_ctx_t *msg_ctx)
+{
+    axis2_char_t *action = NULL;    
+
+    AXIS2_PARAM_CHECK(env->error, msg_ctx, AXIS2_FAILURE);
+
+    action = (axis2_char_t *)axis2_msg_ctx_get_wsa_action(msg_ctx, env);
+
+    if(!action)
+    {
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+            "[sandesha][sandesha_util] WSA action is NULL.");
+        return AXIS2_FALSE;
+    }
+    
+    if(!axutil_strcmp(action, SECCONV_200502_REPLY_ISSUE_ACTION))
+    {
+        return AXIS2_TRUE;
+    }
+    else if(!axutil_strcmp(action, SECCONV_200502_REPLY_CANCEL_ACTION))
+    {
+        return AXIS2_TRUE;
+    }
+    else if(!axutil_strcmp(action, SECCONV_200512_REPLY_ISSUE_ACTION))
+    {
+        return AXIS2_TRUE;
+    }
+    else if(!axutil_strcmp(action, SECCONV_200512_REPLY_CANCEL_ACTION))
+    {
+        return AXIS2_TRUE;
+    }
+    else
+    {
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
+            "[sandesha][sandesha_util] Not a RSTR message.");
+        return AXIS2_FALSE;
+    }
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.