axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject svn commit: r332030 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/BeanParamWriter.java
Date Wed, 09 Nov 2005 13:07:19 GMT
Author: prestonf
Date: Wed Nov  9 05:07:11 2005
New Revision: 332030

URL: http://svn.apache.org/viewcvs?rev=332030&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=332030&r1=332029&r2=332030&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
Wed Nov  9 05:07:11 2005
@@ -995,10 +995,19 @@
                 	{
                 		String typeName = attribs[i].getTypeName();
                 		String elementName = attribs[i].getParamNameAsMember();
-                		
-                		writer.write("\t" + typeName + " *	pValue = pIWSDZ->" +
-                		        	 CUtils.getParameterGetValueMethodName(typeName, attribs[i].isAttribute())
+
-                		        	 "( \"" + soapTagName + "\", 0);\n\n");
+
+                		if( CUtils.isPointerType( typeName))
+                		{
+                    		writer.write("\t" + typeName + "	pValue = pIWSDZ->" +
+               		        	 CUtils.getParameterGetValueMethodName(typeName, attribs[i].isAttribute())
+
+               		        	 "( \"" + soapTagName + "\", 0);\n\n");
+                		}
+                		else
+                		{
+                    		writer.write("\t" + typeName + " *	pValue = pIWSDZ->" +
+               		        	 CUtils.getParameterGetValueMethodName(typeName, attribs[i].isAttribute())
+
+               		        	 "( \"" + soapTagName + "\", 0);\n\n");
+                		}
                 		
                 		writer.write( "\tif( pValue == NULL)\n");
                 		writer.write( "\t{\n");



Mime
View raw message