geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject svn commit: r209249 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
Date Tue, 05 Jul 2005 09:27:28 GMT
Author: gdamour
Date: Tue Jul  5 02:27:24 2005
New Revision: 209249

URL: http://svn.apache.org/viewcvs?rev=209249&view=rev
Log:
GERONIMO-707 - submitted by Tom McQueeney

Deployment exception message could supply more information when there's a typo in the JAX-RPC
mapping  file.

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java?rev=209249&r1=209248&r2=209249&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
Tue Jul  5 02:27:24 2005
@@ -226,7 +226,13 @@
                 return methodMapping;
             }
         }
-        throw new DeploymentException("No method found for operation named " + operationName);
+        // Build list of available operations for exception
+        StringBuffer availOps = new StringBuffer(128);
+        for (int i = 0; i < methodMappings.length; i++) {
+            if (i != 0) availOps.append(",");
+            availOps.append(methodMappings[i].getWsdlOperation().getStringValue());
+        }
+        throw new DeploymentException("No method found for operation named '" + operationName
+ "'. Available operations: " + availOps);
     }
 
     public static ServiceEndpointInterfaceMappingType getServiceEndpointInterfaceMapping(ServiceEndpointInterfaceMappingType[]
endpointMappings, QName portTypeQName) throws DeploymentException {



Mime
View raw message