You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by gd...@apache.org on 2005/07/05 11:27:28 UTC
svn commit: r209249 -
/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/WSDescriptorParser.java
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 {