axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nand...@apache.org
Subject svn commit: r368335 - in /webservices/axis2/trunk/c: include/axis2_error.h modules/xml/soap/soap12_builder_helper.c
Date Thu, 12 Jan 2006 10:16:51 GMT
Author: nandika
Date: Thu Jan 12 02:16:40 2006
New Revision: 368335

URL: http://svn.apache.org/viewcvs?rev=368335&view=rev
Log: (empty)

Modified:
    webservices/axis2/trunk/c/include/axis2_error.h
    webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c

Modified: webservices/axis2/trunk/c/include/axis2_error.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2_error.h?rev=368335&r1=368334&r2=368335&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_error.h (original)
+++ webservices/axis2/trunk/c/include/axis2_error.h Thu Jan 12 02:16:40 2006
@@ -399,7 +399,13 @@
         
         AXIS2_ERROR_SOAP_FAULT_SUB_CODE_DOES_NOT_HAVE_A_VALUE,
         
-        AXIS2_ERROR_MULTIPLE_NODE_ELEMENTS_ENCOUNTERED
+        AXIS2_ERROR_MULTIPLE_NODE_ELEMENTS_ENCOUNTERED,
+        
+        AXIS2_ERROR_REASON_ELEMENT_SHOULD_HAVE_A_TEXT,
+        
+        AXIS2_ERROR_MULTIPLE_ROLE_ELEMENTS_ENCOUNTERED,
+        
+        AXIS2_ERROR_ROLE_ELEMENT_SHOULD_HAVE_A_TEXT
     };
 
 /** @} */

Modified: webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c?rev=368335&r1=368334&r2=368335&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c (original)
+++ webservices/axis2/trunk/c/modules/xml/soap/soap12_builder_helper.c Thu Jan 12 02:16:40
2006
@@ -271,6 +271,61 @@
                     return NULL;                
                 }
             }
+            else
+            {
+                    AXIS2_ERROR_SET((*env)->error, 
+                        AXIS2_ERROR_REASON_ELEMENT_SHOULD_HAVE_A_TEXT, AXIS2_FALSE);
+                    return NULL;                        
+            }
+            
+        }
+        else if(AXIS2_STRCMP(ele_localname, AXIS2_SOAP12_SOAP_FAULT_ROLE_LOCAL_NAME) == 0)
+        {
+            if(!(builder_helper_impl->reason_processing))
+            {
+                if(builder_helper_impl->reason_present && !(builder_helper_impl->detail_present))
+                {
+                    if(builder_helper_impl->role_present)
+                    {
+                        AXIS2_ERROR_SET((*env)->error, 
+                            AXIS2_ERROR_MULTIPLE_ROLE_ELEMENTS_ENCOUNTERED, AXIS2_FAILURE);
+                                            
+                        return NULL;
+                    }
+                    else
+                    {
+                        axis2_soap_fault_role_t *soap_fault_role = NULL;
+                        soap_fault_role = axis2_soap_fault_role_create(env);
+                        AXIS2_SOAP_FAULT_ROLE_SET_BASE_NODE(soap_fault_role, env, om_ele_node);
+                        AXIS2_SOAP_FAULT_ROLE_SET_SOAP_VRESION(soap_fault_role, env, AXIS2_SOAP12);
+                        AXIS2_SOAP_FAULT_SET_ROLE(soap_fault, env, soap_fault_role);
+                        builder_helper_impl->role_present = AXIS2_TRUE;              
     
+                    }
+                }
+                else
+                {
+                    AXIS2_ERROR_SET((*env)->error, 
+                        AXIS2_ERROR_WRONG_ELEMENT_ORDER_ENCOUNTERED, AXIS2_FAILURE);
+                    return NULL;                        
+                }
+            }
+            else
+            {
+                AXIS2_ERROR_SET((*env)->error. AXIS2_ERROR_S
+            
+            
+            
+            
+            
+            
+            
+            }
+                            
+            
+            
+            
+            
+            }        
         }        
     }
     return NULL;



Mime
View raw message