axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shan...@apache.org
Subject svn commit: r817555 - /webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c
Date Tue, 22 Sep 2009 09:06:19 GMT
Author: shankar
Date: Tue Sep 22 09:06:19 2009
New Revision: 817555

URL: http://svn.apache.org/viewvc?rev=817555&view=rev
Log:
Fixing RelatesTo@RelationshipType attribute with correct value

Modified:
    webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c

Modified: webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c?rev=817555&r1=817554&r2=817555&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c (original)
+++ webservices/axis2/trunk/c/src/modules/mod_addr/addr_in_handler.c Tue Sep 22 09:06:19 2009
@@ -440,26 +440,24 @@
             axis2_char_t *address = NULL;
             axutil_qname_t *rqn = NULL;
             axiom_attribute_t *relationship_type = NULL;
-            const axis2_char_t *relationship_type_default_value = NULL;
             const axis2_char_t *relationship_type_value = NULL;
             axis2_relates_to_t *relates_to = NULL;
-            if(!axutil_strcmp(AXIS2_WSA_NAMESPACE_SUBMISSION, addr_ns_str))
-            {
-                relationship_type_default_value
-                    = AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE_SUBMISSION;
-            }
-            else
-            {
-                relationship_type_default_value = AXIS2_WSA_ANONYMOUS_URL_SUBMISSION;
-            }
-            rqn = axutil_qname_create(env, AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE, NULL,
NULL);
 
+            rqn = axutil_qname_create(env, AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE, NULL,
NULL);
             relationship_type = axiom_element_get_attribute(header_block_ele, env, rqn);
 
             if(!relationship_type)
             {
-                relationship_type_value
-                    = AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE_SUBMISSION;
+                if(!axutil_strcmp(AXIS2_WSA_NAMESPACE_SUBMISSION, addr_ns_str))
+                {
+                    relationship_type_value =
+                        AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE_SUBMISSION;
+                }
+                else
+                {
+                    relationship_type_value =
+                        AXIS2_WSA_RELATES_TO_RELATIONSHIP_TYPE_DEFAULT_VALUE;
+                }
             }
             else
             {



Mime
View raw message