axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r392175 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
Date Fri, 07 Apr 2006 04:01:56 GMT
Author: nadiramra
Date: Thu Apr  6 21:01:54 2006
New Revision: 392175

URL: http://svn.apache.org/viewcvs?rev=392175&view=rev
Log:
C support fixes/enhancements.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java?rev=392175&r1=392174&r2=392175&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
Thu Apr  6 21:01:54 2006
@@ -470,7 +470,6 @@
             }
             else if (attribs[i].isArray())
             {
-                writer.write("\n\t{\n"); // start new variable scope
                 arrayCount++;
                 
                 if (attribs[i].isSimpleType() || attribs[i].getType().isSimpleType())
@@ -486,27 +485,22 @@
                             + attribs[i].getParamNameAsSOAPElement()
                             + "\",0);\n");
                     
-                    // TODO C-BINDING MEMORY MANAGEMENT
+                    // TODO C-BINDING MEMORY MANAGEMENT?
                 }
                 else
                 {
                     arrayType = attribs[i].getTypeName();
-                    writer.write("\tAxisc_Array * array" + arrayCount + " = axiscGetCmplxArrayCall(pDZ,"

-                            + "&array" + arrayCount + ","
-                            + "(void*)Axis_DeSerialize_"  + arrayType
-                            + "\n\t\t, (void*)Axis_Create_" + arrayType
-                            + ", (void*)Axis_Delete_" + arrayType
-                            + "\n\t\t, (void*)Axis_GetSize_" + arrayType
-                            + ", \""  + attribs[i].getElementNameAsString()
-                            + "\", Axis_URI_" + arrayType + ");\n");
+                    writer.write("\taxiscGetCmplxArrayCall(pDZ, " 
+                            + "\t\t(Axisc_Array *)param->" + attribs[i].getParamName()
+ ",\n" 
+                            + "\t\t(void*)Axis_DeSerialize_"  + arrayType + ",\n"
+                            + "\t\t(void*)Axis_Create_"       + arrayType + ",\n"
+                            + "\t\t(void*)Axis_Delete_"       + arrayType + ",\n"
+                            + "\t\t(void*)Axis_GetSize_"      + arrayType + ",\n"
+                            + "\t\t\""  + attribs[i].getElementNameAsString() + "\",\n" 

+                            + "\t\tAxis_URI_" + arrayType + ");\n");
                     
-                    // TODO C-BINDING MEMORY MANAGEMENT
+                    // TODO C-BINDING MEMORY MANAGEMENT?
                 }
-                
-                writer.write("\tmemcpy(&(param->" + attribs[i].getParamName()
-                        + "), &array" + arrayCount + ", sizeof(Axisc_Array));\n");
-                
-                writer.write("\n\t}\n"); // end new variable scope
             }
             else if ((attribs[i].isSimpleType() || attribs[i].getType().isSimpleType()))
             {



Mime
View raw message