axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r927231 - in /axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws: c/BeanParamWriter.java cpp/BeanParamWriter.java
Date Wed, 24 Mar 2010 23:53:40 GMT
Author: nadiramra
Date: Wed Mar 24 23:53:39 2010
New Revision: 927231

URL: http://svn.apache.org/viewvc?rev=927231&view=rev
Log:
Do not issue error messages since these are not error messages.

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

Modified: axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java?rev=927231&r1=927230&r2=927231&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java (original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/BeanParamWriter.java Wed Mar
24 23:53:39 2010
@@ -24,6 +24,7 @@ package org.apache.axis.wsdl.wsdl2ws.c;
 
 import java.io.IOException;
 
+import org.apache.axis.wsdl.wsdl2ws.WSDL2Ws;
 import org.apache.axis.wsdl.wsdl2ws.CUtils;
 import org.apache.axis.wsdl.wsdl2ws.WrapperFault;
 import org.apache.axis.wsdl.wsdl2ws.info.Type;
@@ -37,6 +38,8 @@ import org.apache.axis.wsdl.wsdl2ws.info
 
 public class BeanParamWriter extends ParamCFileWriter
 {
+    boolean infoMessageIssued = false;
+    
     public BeanParamWriter(WebServiceContext wscontext, Type type)
         throws WrapperFault
     {
@@ -85,8 +88,11 @@ public class BeanParamWriter extends Par
         }        
         else if (attribs.length == 0)
         {
-            System.out.println("Possible error in class " + c_classname
-                    + ": class with no attributes or elements...........");
+            if (!infoMessageIssued && WSDL2Ws.c_verbose)
+            {
+                infoMessageIssued = true;
+                System.out.println("INFO: Structure " + c_classname + " has no attributes
or elements.");
+            }
         }        
     }
     
@@ -455,9 +461,11 @@ public class BeanParamWriter extends Par
         }
         else if (attribs.length == 0)
         {
-            System.out.println("Possible error in class " + c_classname
-                    + ": class with no attributes or elements............");
-            
+            if (!infoMessageIssued && WSDL2Ws.c_verbose)
+            {
+                infoMessageIssued = true;
+                System.out.println("INFO: Structure " + c_classname + " has no attributes
or elements.");
+            }            
         }
     }    
     

Modified: axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java?rev=927231&r1=927230&r2=927231&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java (original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/BeanParamWriter.java Wed
Mar 24 23:53:39 2010
@@ -36,6 +36,7 @@ import java.util.Iterator;
 
 import javax.xml.namespace.QName;
 
+import org.apache.axis.wsdl.wsdl2ws.WSDL2Ws;
 import org.apache.axis.wsdl.wsdl2ws.CUtils;
 import org.apache.axis.wsdl.wsdl2ws.WrapperFault;
 import org.apache.axis.wsdl.wsdl2ws.info.Type;
@@ -49,6 +50,8 @@ import org.apache.axis.wsdl.wsdl2ws.info
 
 public class BeanParamWriter extends ParamCPPFileWriter 
 {
+    boolean infoMessageIssued = false;
+    
     public BeanParamWriter(WebServiceContext wscontext, Type type)
             throws WrapperFault
     {
@@ -294,8 +297,11 @@ public class BeanParamWriter extends Par
         }        
         else if (attribs.length == 0)
         {
-            System.out.println("Possible error in class " + c_classname
-                    + ": class with no attributes or elements...........");
+            if (!infoMessageIssued  && WSDL2Ws.c_verbose)
+            {
+                infoMessageIssued = true;
+                System.out.println("INFO: Class " + c_classname + " has no attributes or
elements.");
+            }
         }
     }
     
@@ -671,9 +677,11 @@ public class BeanParamWriter extends Par
         }
         else if (attribs.length == 0)
         {
-            System.out.println("Possible error in class " + c_classname
-                    + ": class with no attributes or elements............");
-            
+            if (!infoMessageIssued && WSDL2Ws.c_verbose)
+            {
+                infoMessageIssued = true;
+                System.out.println("INFO: Class " + c_classname + " has no attributes or
elements.");
+            }
         }
     }
     



Mime
View raw message