axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dushshan...@apache.org
Subject svn commit: r357935 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
Date Tue, 20 Dec 2005 07:58:56 GMT
Author: dushshantha
Date: Mon Dec 19 23:58:46 2005
New Revision: 357935

URL: http://svn.apache.org/viewcvs?rev=357935&view=rev
Log: (empty)

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=357935&r1=357934&r2=357935&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
Mon Dec 19 23:58:46 2005
@@ -1039,8 +1039,7 @@
                 		}
                 		else
                 		{
-                		    writer.write("\t\t\t\tparam->" + elementName + " = new " + typeName
+ "();\n");
-                    		writer.write("\t\t\t\t*param->" + elementName + " = *pValue" + i
+ ";\n\n");
+                		    writer.write("\t\t\t\tparam->set" + elementName + " (pValue" + i
+ ");\n");
                 		}
                 		
                 		writer.write("\t\t\t\tAxis::AxisDelete( (void *) pValue" + i + ", " + CUtils.getXSDTypeForBasicType(
typeName) + ");\n\n");
@@ -1080,8 +1079,8 @@
                                 + CUtils.getParameterGetValueMethodName(
                                         attribs[i].getTypeName(), attribs[i].isAttribute())
+ "( \""
                                 + elementNameToSearchFor + "\",0)) != NULL)\n\t{\n");
-                        writer.write("\t\tparam->"
-                                + attribs[i].getParamNameAsMember() + " = *( "
+                        writer.write("\t\tparam->set"
+                                + attribs[i].getParamNameAsMember() + "(* "
                                 + attribs[i].getParamNameAsMember() + " );\n");
         				writer.write("\t\tAxis::AxisDelete( (void *) " + attribs[i].getParamNameAsMember()
+ ", " + CUtils.getXSDTypeForBasicType( attribs[i].getTypeName()) + ");\n");
                     	writer.write("\t}\n");                    	



Mime
View raw message