axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r501773 - in /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws: c/BeanParamWriter.java cpp/BeanParamWriter.java
Date Wed, 31 Jan 2007 09:04:46 GMT
Author: nadiramra
Date: Wed Jan 31 01:04:45 2007
New Revision: 501773

URL: http://svn.apache.org/viewvc?view=rev&rev=501773
Log:
AXISCPP-967 no check for param->any1 will cause core dump

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java?view=diff&rev=501773&r1=501772&r2=501773
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
Wed Jan 31 01:04:45 2007
@@ -268,7 +268,11 @@
             if (attribs[i].isAnyType())
             {
                 anyCounter += 1;
-                writer.write("\taxiscSoapSerializerSerializeAnyObject(pSZ, param->any"
+ Integer.toString(anyCounter) +");\n");
+                
+                if (attribs[i].isOptional())
+                    writer.write("\tif (param->any" + Integer.toString(anyCounter) + "
!= NULL)\n");
+                                          
+                writer.write("\t\taxiscSoapSerializerSerializeAnyObject(pSZ, param->any"
+ Integer.toString(anyCounter) +");\n");
             } 
             else if (attribs[i].isArray())
             {

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java?view=diff&rev=501773&r1=501772&r2=501773
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
Wed Jan 31 01:04:45 2007
@@ -511,7 +511,11 @@
             if (attribs[i].isAnyType())
             {
                 anyCounter += 1;
-                writer.write("\tpSZ->serializeAnyObject(param->any" + Integer.toString(anyCounter)
+");\n");
+                
+                if (attribs[i].isOptional())
+                    writer.write("\tif (param->any" + Integer.toString(anyCounter) + "
!= NULL)\n");
+                                
+                writer.write("\t\tpSZ->serializeAnyObject(param->any" + Integer.toString(anyCounter)
+");\n");
             }
             else if (attribs[i].isArray())
             {



---------------------------------------------------------------------
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