You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2005/01/28 10:45:21 UTC

svn commit: r148867 - /webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java

Author: ajith
Date: Fri Jan 28 01:45:19 2005
New Revision: 148867

URL: http://svn.apache.org/viewcvs?view=rev&rev=148867
Log:
Changed the code to cater for a namespace bug!!!
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java?view=diff&rev=148867&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java&r1=148866&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java&r2=148867
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java	Fri Jan 28 01:45:19 2005
@@ -120,15 +120,19 @@
      * @see org.apache.axis.description.AxisService#getOperation(javax.xml.namespace.QName)
      */
     public AxisOperation getOperation(QName operationName) {
-        return (AxisOperation)this.operationsMap.get(operationName);
+        //todo The key has been changed from the qname to the local name because
+        //todo when comparing the namespace will not be available
+        return (AxisOperation)this.operationsMap.get(operationName.getLocalPart());
     }
 
     /* (non-Javadoc)
      * @see org.apache.axis.description.AxisService#addOperation(org.apache.axis.description.AxisOperation)
      */
     public void addOperation(AxisOperation operation) {
+        //todo The key has been changed from the qname to the local name because
+        //todo when comparing the namespace will not be available
         if(null != operation){
-            this.operationsMap.put(operation.getName(),operation);
+            this.operationsMap.put(operation.getName().getLocalPart(),operation);
         }
     }