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/27 08:58:40 UTC

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

Author: ajith
Date: Wed Jan 26 23:58:39 2005
New Revision: 126594

URL: http://svn.apache.org/viewcvs?view=rev&rev=126594
Log:
Fixed the 'single operation' problem by adding a hashmap for operations
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.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=126594&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java&r1=126593&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/description/AxisService.java&r2=126594
==============================================================================
--- 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	Wed Jan 26 23:58:39 2005
@@ -17,6 +17,7 @@
 
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.HashMap;
 
 import javax.swing.text.Style;
 import javax.xml.namespace.QName;
@@ -37,6 +38,8 @@
 
 public class AxisService extends WSDLServiceImpl implements WSDLService,ParameterInclude,FlowInclude,PhasesInclude , DescriptionConstants{
 
+    protected HashMap operationsMap = new HashMap();
+
     public AxisService(){
         this.setComponentProperty(MODULEREF_KEY,new ArrayList());
         this.setComponentProperty(PARAMETER_KEY, new ParameterIncludeImpl());
@@ -117,15 +120,15 @@
      * @see org.apache.axis.description.AxisService#getOperation(javax.xml.namespace.QName)
      */
     public AxisOperation getOperation(QName operationName) {
-        return (AxisOperation)this.getComponentProperty(OPERATION_KEY);
+        return (AxisOperation)this.operationsMap.get(operationName);
     }
 
     /* (non-Javadoc)
      * @see org.apache.axis.description.AxisService#addOperation(org.apache.axis.description.AxisOperation)
      */
-    public void addOperation(AxisOperation operationName) {
-        if(null != operationName){
-            this.setComponentProperty(OPERATION_KEY, operationName);
+    public void addOperation(AxisOperation operation) {
+        if(null != operation){
+            this.operationsMap.put(operation.getName(),operation);
         }
     }
 

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java?view=diff&rev=126594&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java&r1=126593&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java&r2=126594
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/wsdl/impl/ComponentImpl.java	Wed Jan 26 23:58:39 2005
@@ -31,7 +31,7 @@
 public class ComponentImpl implements  WSDLConstants, Component{
 
     protected HashMap componentProperties = new HashMap();
-    
+        
     protected Document documentation = null;
     
     /**