axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r332504 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
Date Fri, 11 Nov 2005 10:09:32 GMT
Author: prestonf
Date: Fri Nov 11 02:09:24 2005
New Revision: 332504

URL: http://svn.apache.org/viewcvs?rev=332504&view=rev
Log:
Part of the fix for AXISCPP-149.  This covers all of the complex types.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java?rev=332504&r1=332503&r2=332504&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
Fri Nov 11 02:09:24 2005
@@ -925,18 +925,18 @@
 
                 		if( CUtils.isPointerType( typeName))
                 		{
-                    		writer.write("\t" + typeName + "	pValue = pIWSDZ->" +
+                    		writer.write("\t" + typeName + "	pValue" + i + " = pIWSDZ->" +
                		        	 CUtils.getParameterGetValueMethodName(typeName, attribs[i].isAttribute())
+
                		        	 "( \"" + soapTagName + "\", 0);\n\n");
                 		}
                 		else
                 		{
-                    		writer.write("\t" + typeName + " *	pValue = pIWSDZ->" +
+                    		writer.write("\t" + typeName + " *	pValue" + i + " = pIWSDZ->" +
                		        	 CUtils.getParameterGetValueMethodName(typeName, attribs[i].isAttribute())
+
                		        	 "( \"" + soapTagName + "\", 0);\n\n");
                 		}
                 		
-                		writer.write( "\tif( pValue == NULL)\n");
+                		writer.write( "\tif( pValue" + i + " == NULL)\n");
                 		writer.write( "\t{\n");
             		    writer.write("\t\tparam->" + elementName + " = NULL;\n");
                 		writer.write( "\t}\n");
@@ -945,16 +945,16 @@
                 		
                 		if( CUtils.isPointerType( typeName))
                 		{
-                		    writer.write("\t\tparam->" + elementName + " = new char[strlen(
pValue) + 1];\n");
-                    		writer.write("\t\tstrcpy( param->" + elementName + ", pValue);\n\n");
+                		    writer.write("\t\tparam->" + elementName + " = new char[strlen(
pValue" + i + ") + 1];\n");
+                    		writer.write("\t\tstrcpy( param->" + elementName + ", pValue" +
i + ");\n\n");
                 		}
                 		else
                 		{
                 		    writer.write("\t\tparam->" + elementName + " = new " + typeName
+ "();\n");
-                    		writer.write("\t\t*param->" + elementName + " = *pValue;\n\n");
+                    		writer.write("\t\t*param->" + elementName + " = *pValue" + i + ";\n\n");
                 		}
                 		
-                		writer.write("\t\tAxis::AxisDelete( (void *) pValue, " + CUtils.getXSDTypeForBasicType(
typeName) + ");\n\n");
+                		writer.write("\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDTypeForBasicType(
typeName) + ");\n\n");
 
                 		writer.write( "\t}\n");
                 	}



Mime
View raw message