You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2006/09/12 01:28:58 UTC
svn commit: r442386 -
/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java
Author: mriou
Date: Mon Sep 11 16:28:58 2006
New Revision: 442386
URL: http://svn.apache.org/viewvc?view=rev&rev=442386
Log:
Fixed a bug in dispatcher when an element ends with 'Request'.
Modified:
incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java
Modified: incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java?view=diff&rev=442386&r1=442385&r2=442386
==============================================================================
--- incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java (original)
+++ incubator/ode/trunk/axis2/src/main/java/org/apache/ode/axis2/hooks/ODEAxisDispatcher.java Mon Sep 11 16:28:58 2006
@@ -79,11 +79,13 @@
// Request or Response, so look for those and strip them.
int index = localName.lastIndexOf("Request");
if (index >=0 && index + "Request".length() == localName.length()) {
- return service.getOperation(new QName(localName.substring(0, index)));
+ AxisOperation op = service.getOperation(new QName(localName.substring(0, index)));
+ if (op != null) return op;
}
index = localName.lastIndexOf("Response");
if (index >=0 && index + "Response".length() == localName.length()) {
- return service.getOperation(new QName(localName.substring(0, index)));
+ AxisOperation op = service.getOperation(new QName(localName.substring(0, index)));
+ if (op != null) return op;
}
// Seems the operation still couldn't be found, let's check our operation => element