ws-savan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject svn commit: r764365 - /webservices/savan/trunk/c/src/util/savan_util.c
Date Mon, 13 Apr 2009 07:07:48 GMT
Author: damitha
Date: Mon Apr 13 07:07:48 2009
New Revision: 764365

URL: http://svn.apache.org/viewvc?rev=764365&view=rev
Log:
When filter and filter dialect is not provided an empty filter is sent currently. Fixed this

Modified:
    webservices/savan/trunk/c/src/util/savan_util.c

Modified: webservices/savan/trunk/c/src/util/savan_util.c
URL: http://svn.apache.org/viewvc/webservices/savan/trunk/c/src/util/savan_util.c?rev=764365&r1=764364&r2=764365&view=diff
==============================================================================
--- webservices/savan/trunk/c/src/util/savan_util.c (original)
+++ webservices/savan/trunk/c/src/util/savan_util.c Mon Apr 13 07:07:48 2009
@@ -827,19 +827,14 @@
     }
 
     /* Filter element */
-    filter_elem = axiom_element_create(env, sub_node, ELEM_NAME_FILTER, ns, &filter_node);
-    axiom_element_set_text(filter_elem, env, filter, filter_node);
+    if(filter && filter_dialect)
+    {
+        filter_elem = axiom_element_create(env, sub_node, ELEM_NAME_FILTER, ns, &filter_node);
+        axiom_element_set_text(filter_elem, env, filter, filter_node);
 
-	if(!filter_dialect) 
-	{
-		dialect = axiom_attribute_create(env, "Dialect", DEFAULT_FILTER_DIALECT, NULL);
-	}
-	else
-	{
 		dialect = axiom_attribute_create(env, "Dialect", filter_dialect, NULL);
-	}
-
-	axiom_element_add_attribute(filter_elem, env, dialect ,filter_node);
+	    axiom_element_add_attribute(filter_elem, env, dialect ,filter_node);
+    }
 
     AXIS2_LOG_TRACE(env->log, AXIS2_LOG_SI, "[savan] Exit:savan_util_create_subscriber_node");
     return sub_node;



Mime
View raw message