cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1446367 - /cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Date Thu, 14 Feb 2013 22:21:08 GMT
Author: dkulp
Date: Thu Feb 14 22:21:08 2013
New Revision: 1446367

URL: http://svn.apache.org/r1446367
Log:
Merged revisions 1446359 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.7.x-fixes

........
  r1446359 | dkulp | 2013-02-14 17:10:56 -0500 (Thu, 14 Feb 2013) | 10 lines

  Merged revisions 1446358 via  git cherry-pick from
  https://svn.apache.org/repos/asf/cxf/trunk

  ........
    r1446358 | dkulp | 2013-02-14 17:09:13 -0500 (Thu, 14 Feb 2013) | 2 lines

    [CXF-4820] Add a better exception instead of an NPE

  ........

........

Modified:
    cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java

Modified: cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java?rev=1446367&r1=1446366&r2=1446367&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
(original)
+++ cxf/branches/2.6.x-fixes/tools/wsdlto/frontend/javascript/src/main/java/org/apache/cxf/tools/wsdlto/javascript/JavaScriptContainer.java
Thu Feb 14 22:21:08 2013
@@ -126,8 +126,12 @@ public class JavaScriptContainer extends
 
             } else {
                 // TODO: wsdl2.0 support
+                throw new ToolException("Only WSDL 1.1 supported");
             }
         }
+        if (serviceList.isEmpty()) {
+            throw new ToolException("Did not find any services in WSDL");
+        }
         Map<String, InterfaceInfo> interfaces = new LinkedHashMap<String, InterfaceInfo>();
         
         ServiceInfo service0 = serviceList.get(0);



Mime
View raw message