axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1351455 - /axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
Date Mon, 18 Jun 2012 18:39:44 GMT
Author: nadiramra
Date: Mon Jun 18 18:39:43 2012
New Revision: 1351455

URL: http://svn.apache.org/viewvc?rev=1351455&view=rev
Log:
AXISCPP-439 Soap faults fail for primitive types 

Modified:
    axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java

Modified: axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java?rev=1351455&r1=1351454&r2=1351455&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java (original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ClientStubWriter.java Mon
Jun 18 18:39:43 2012
@@ -757,6 +757,7 @@ public class ClientStubWriter extends CP
             c_writer.write ("\t\t\tpcCmplxFaultName = pSoapFault->getCmplxFaultObjectName();\n");
         }
         
+        boolean printedIF = false;
         while (paramsFault.hasNext ())
         {
             FaultInfo info = (FaultInfo) paramsFault.next ();
@@ -779,7 +780,6 @@ public class ClientStubWriter extends CP
             }                          
     
             ArrayList paramInfo = info.getParams ();
-            boolean printedIF = false;
             for (int i = 0; i < paramInfo.size (); i++)
             {
                 ParameterInfo par = (ParameterInfo) paramInfo.get (i);
@@ -806,12 +806,18 @@ public class ClientStubWriter extends CP
         
         if (flag == true)
         {
-            c_writer.write ("\t\t\telse\n");
-            c_writer.write ("\t\t\t{\n");
+            String tab = "";
+            if (printedIF)
+            {
+                c_writer.write ("\t\t\telse\n");
+                c_writer.write ("\t\t\t{\n");
+                tab = "\t";
+            }
             
-            writeOtherFaultException("\t");
+            writeOtherFaultException(tab);
 
-            c_writer.write ("\t\t\t}\n");
+            if (printedIF)
+                c_writer.write ("\t\t\t}\n");
         }
         
         c_writer.write ("\t\t}\n");



Mime
View raw message