axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r331255 - in /webservices/axis2/trunk/java/modules: codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl core/src/org/apache/axis2/clientapi/Stub.java
Date Mon, 07 Nov 2005 11:02:58 GMT
Author: ruchithf
Date: Mon Nov  7 03:02:51 2005
New Revision: 331255

URL: http://svn.apache.org/viewcvs?rev=331255&view=rev
Log:
Enabled the stub to set properties and engage modules in the case of IN-ONLY MEP


Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=331255&r1=331254&r2=331255&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Mon Nov  7 03:02:51 2005
@@ -332,6 +332,11 @@
                   </xsl:choose>
              </xsl:otherwise>
             </xsl:choose>
+            
+            //set the properties
+            populateProperties(_msgSender);
+            populateModules(_msgSender);
+            
              _messageContext.setEnvelope(env);
              _msgSender.send(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
                return;

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java?rev=331255&r1=331254&r2=331255&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/clientapi/Stub.java Mon
Nov  7 03:02:51 2005
@@ -276,10 +276,24 @@
             call.set(key,propertyMap.get(key));
         }
     }
+    protected void populateProperties(MessageSender sender){
+        Iterator keys = this.propertyMap.keySet().iterator();
+        String key;
+        while (keys.hasNext()) {
+            key = keys.next().toString();
+            sender.set(key,propertyMap.get(key));
+        }
+    }
 
     protected void populateModules(Call call) throws AxisFault {
     	for(int i = 0; i < modules.size(); i++) {
     		call.engageModule(new QName((String)this.modules.get(i)));
+    	}
+    }
+    
+    protected void populateModules(MessageSender sender) throws AxisFault {
+    	for(int i = 0; i < modules.size(); i++) {
+    		sender.engageModule(new QName((String)this.modules.get(i)));
     	}
     }
 }



Mime
View raw message