axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r490204 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Date Tue, 26 Dec 2006 01:29:27 GMT
Author: nadiramra
Date: Mon Dec 25 17:29:26 2006
New Revision: 490204

URL: http://svn.apache.org/viewvc?view=rev&rev=490204
Log:
code simplification

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java?view=diff&rev=490204&r1=490203&r2=490204
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Mon Dec 25 17:29:26 2006
@@ -436,9 +436,6 @@
             writeRPCArrayPortionOfSerializeGlobalMethod();
         else
             writeDOCArrayPortionOfSerializeGlobalMethod();
-
-        writer.write( "\t\t}\n");
-        writer.write( "\t}\n\n");
         
         writer.write("\t/* If there are any attributes serialize them. If there aren't then
close the tag */\n");
         for (int i = 0; i < attributeParamCount; i++)
@@ -714,6 +711,8 @@
         writer.write("\t\tif (blnIsNewPrefix)\n\t\t{\n");
         writer.write("\t\t\tpSZ->serialize(\" xmlns:\", sPrefix, \"=\\\"\",\n");
         writer.write("\t\t\t\tAxis_URI_" + classname + ", \"\\\"\", NULL );\n");
+        writer.write( "\t\t}\n");
+        writer.write( "\t}\n\n");
     }
 
     /**
@@ -724,9 +723,7 @@
         // For rpc/encoded objects
         writer.write("\tbool blnIsNewPrefix = false;\n");
         writer.write( "\tif( bArray)\n");
-        writer.write( "\t{\n");
         writer.write( "\t\tpSZ->serialize( \"<\", Axis_TypeName_" + classname + ",
\">\", NULL);\n");
-        writer.write( "\t}\n");
         writer.write( "\telse\n");
         writer.write( "\t{\n");
         writer.write( "\t\tconst AxisChar *\tsPrefix = pSZ->getNamespacePrefix( Axis_URI_"
+ classname + ",\n" +
@@ -758,6 +755,9 @@
                       "\t\t\t\t\t\t\tAxis_URI_" + classname + ",\n" +
                       "\t\t\t\t\t\t\t\"\\\">\",\n" +
                       "\t\t\t\t\t\t\tNULL);\n");
+
+        writer.write( "\t\t}\n");
+        writer.write( "\t}\n\n");
     }
 
     private void writeDeSerializeGlobalMethod() throws IOException, WrapperFault



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


Mime
View raw message