axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r406505 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
Date Mon, 15 May 2006 02:42:57 GMT
Author: nadiramra
Date: Sun May 14 19:42:56 2006
New Revision: 406505

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

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java?rev=406505&r1=406504&r2=406505&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
Sun May 14 19:42:56 2006
@@ -329,7 +329,9 @@
             writer.write("\t");
             
             if (returntypeisarray)
+            {
                 writer.write(outparamType + " *RetArray = (" + outparamType + " *)axiscAxisNew(XSDC_ARRAY,
0);\n");
+            }
             else if (!returntypeissimple)
             {
                 // for AnyType and complex types
@@ -648,7 +650,7 @@
                         writer.write("\t\t\t\t\t" + currentParamName + " = Axis_Delete_"
+ containedType + "_Array(" + currentParamName + ",0);\n");
                         writer.write("\t\t\t\t" + currentParamName + " = Axis_Create_" +
containedType + "_Array(0);\n");
                         
-                        writer.write("\t\t\t\taxiscCallGetCmplxArray(call, " + currentParamName

+                        writer.write("\t\t\t\taxiscCallGetCmplxArray(call, (Axisc_Array *)"
+ currentParamName 
                               + ", (void*) Axis_DeSerialize_" + containedType
                               + ", (void*) Axis_Create_" + containedType
                               + ", (void*) Axis_Delete_" + containedType
@@ -662,7 +664,7 @@
                         writer.write("\t\t\t\t/* Unable to return value, but will deserialize
to ensure subsequent elements can be correctly processed. */\n");
                         writer.write("\t\t\t\t" + containedType + "_Array * pTemp" + i 
                               + " = Axis_Create_" + containedType + "_Array(0);\n");
-                        writer.write("\t\t\t\taxiscCallGetCmplxArray(call, pTemp" + i 
+                        writer.write("\t\t\t\taxiscCallGetCmplxArray(call, (Axisc_Array *)pTemp"
+ i 
                               + ", (void*) Axis_DeSerialize_" + containedType
                               + ", (void*) Axis_Create_" + containedType
                               + ", (void*) Axis_Delete_" + containedType
@@ -799,7 +801,7 @@
             {
                 containedType = qname.getLocalPart ();
                 writer.write("\t\t\tRetArray = (" + containedType 
-                        + "_Array *) axiscCallGetCmplxArray(call, RetArray, (void*) Axis_DeSerialize_"
+                        + "_Array *) axiscCallGetCmplxArray(call, (Axisc_Array *)RetArray,
(void*) Axis_DeSerialize_"
                         + containedType 
                         + ", (void*) Axis_Create_" + containedType
                           + ", (void*) Axis_Delete_" + containedType



Mime
View raw message