axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r365711 - in /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws: c/AllParamWriter.java c/literal/AllParamWriter.java cpp/AllParamWriter.java cpp/literal/AllParamWriter.java
Date Tue, 03 Jan 2006 18:52:51 GMT
Author: nadiramra
Date: Tue Jan  3 10:52:47 2006
New Revision: 365711

URL: http://svn.apache.org/viewcvs?rev=365711&view=rev
Log:
Make C code generation consistent with C++, correct error messages.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/AllParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/AllParamWriter.java?rev=365711&r1=365710&r2=365711&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/AllParamWriter.java (original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/AllParamWriter.java Tue
Jan  3 10:52:47 2006
@@ -52,7 +52,7 @@
     public void writeSource() throws WrapperFault
     {
         Iterator enu = wscontext.getTypemap().getTypes().iterator();
-        Type type;
+        Type type = null;
         while (enu.hasNext())
         {
             try
@@ -95,7 +95,9 @@
             catch (Exception e)
             {
                 System.out.println(
-                    "Error occurred yet we continue to genarate other classes ... you should
check the error");
+                        "Error occurred generating code for "
+                            + type.getLanguageSpecificName()
+                            + ". Other classes will continue to be generated.");
                 e.printStackTrace();
             }
         }

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/AllParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/AllParamWriter.java?rev=365711&r1=365710&r2=365711&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/AllParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/literal/AllParamWriter.java
Tue Jan  3 10:52:47 2006
@@ -51,7 +51,7 @@
     public void writeSource() throws WrapperFault
     {
         Iterator enu = wscontext.getTypemap().getTypes().iterator();
-        Type type;
+        Type type = null;
         while (enu.hasNext())
         {
             try
@@ -71,10 +71,13 @@
                         {
                             /* TODO do some processing to this type before synthesizing to
remove ">" charactors.
                              * And then it should also be synthesized if commandline option
says to */
-                            System.out.println(
+                            if(WSDL2Ws.verbose)
+                            {                          
+                                System.out.println(
                                 "ignoring anonymous type "
                                     + type.getLanguageSpecificName()
                                     + "\n");
+                            }
                         }
                         else
                         {
@@ -91,7 +94,9 @@
             catch (Exception e)
             {
                 System.out.println(
-                    "Error occurred yet we continue to genarate other classes ... you should
check the error");
+                        "Error occurred generating code for "
+                            + type.getLanguageSpecificName()
+                            + ". Other classes will continue to be generated.");
                 e.printStackTrace();
             }
         }

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/AllParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/AllParamWriter.java?rev=365711&r1=365710&r2=365711&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/AllParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/AllParamWriter.java
Tue Jan  3 10:52:47 2006
@@ -112,7 +112,7 @@
                 System.out.println(
                     "Error occurred generating code for "
                         + type.getLanguageSpecificName()
-                        + ". Yet we continue to generate other classes ... You should check
the error");
+                            + ". Other classes will continue to be generated.");        
       
                 e.printStackTrace();
             }
         }

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/AllParamWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/AllParamWriter.java?rev=365711&r1=365710&r2=365711&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/AllParamWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/literal/AllParamWriter.java
Tue Jan  3 10:52:47 2006
@@ -138,7 +138,7 @@
                 System.out.println(
                     "Error occurred generating code for "
                         + type.getLanguageSpecificName()
-                        + ". Yet we continue to genarate other classes ... You should check
the error");
+                            + ". Other classes will continue to be generated.");        
       
                 e.printStackTrace();
             }
         }



Mime
View raw message