You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ma...@apache.org on 2007/10/09 10:54:08 UTC

svn commit: r583079 - /webservices/axis2/trunk/c/neethi/src/assertion_builder.c

Author: manjula
Date: Tue Oct  9 01:54:08 2007
New Revision: 583079

URL: http://svn.apache.org/viewvc?rev=583079&view=rev
Log:
Modified the code to return NULL when unknown element
is found.

Modified:
    webservices/axis2/trunk/c/neethi/src/assertion_builder.c

Modified: webservices/axis2/trunk/c/neethi/src/assertion_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/assertion_builder.c?rev=583079&r1=583078&r2=583079&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/assertion_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/assertion_builder.c Tue Oct  9 01:54:08 2007
@@ -478,12 +478,22 @@
     }
     else
     {
-        neethi_assertion_t *assertion = NULL;
-        assertion = neethi_assertion_create(env);
+        AXIS2_ERROR_SET(env->error,
+                        AXIS2_ERROR_NEETHI_UNKNOWN_ASSERTION,
+                        AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                        "[neethi] Unknown Assertion %s",
+                        localname);
+        printf("Unknown Assertion %s", localname);
+
+        return NULL;
+        
+        /*assertion = neethi_assertion_create(env);
         neethi_assertion_set_value(assertion, env, NULL,
                                    ASSERTION_TYPE_UNKNOWN);
         neethi_assertion_set_element(assertion, env, element);
         neethi_assertion_set_node(assertion, env, node);
         return assertion;
+        */
     }
 }



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