axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r635945 - in /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws: c/literal/ClientStubWriter.java cpp/literal/ClientStubWriter.java
Date Tue, 11 Mar 2008 14:35:44 GMT
Author: nadiramra
Date: Tue Mar 11 07:35:42 2008
New Revision: 635945

URL: http://svn.apache.org/viewvc?rev=635945&view=rev
Log:
add isOptional() check for result type in order to generate proper result type.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/ClientStubWriter.java?rev=635945&r1=635944&r2=635945&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
Tue Mar 11 07:35:42 2008
@@ -830,7 +830,7 @@
         }
         else if (returntypeissimple)
         {
-            if (returntype.isNillable () 
+            if (returntype.isNillable () || returntype.isOptional() 
                     || CUtils.isPointerType(outparamType))
             {
                 // Just return the pointer as-is - no need to delete.

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java?rev=635945&r1=635944&r2=635945&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/ClientStubWriter.java
Tue Mar 11 07:35:42 2008
@@ -837,7 +837,7 @@
         }
         else if (returntypeissimple)
         {
-            if (returntype.isNillable () || CUtils.isPointerType(outparamType))
+            if (returntype.isNillable () || returntype.isOptional() || CUtils.isPointerType(outparamType))
             {
                 writer.write( "\t\t\t\tRet = m_pCall->" 
                         + CUtils.getParameterGetValueMethodName( outparamType, false) 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message