axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r331259 - 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 12:00:54 GMT
Author: ruchithf
Date: Mon Nov  7 04:00:48 2005
New Revision: 331259

URL: http://svn.apache.org/viewcvs?rev=331259&view=rev
Log:
Enabled setting the wsa action from the stub


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=331259&r1=331258&r2=331259&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 04:00:48 2005
@@ -112,8 +112,12 @@
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
             _call.setTo(this.toEPR);
             _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            
+            if(wsaAction != null) {
+            	_messageContext.setWSAAction(wsaAction);
+            } else {
             <xsl:for-each select="input/param[@Action!='']">_messageContext.setWSAAction("<xsl:value-of
select="@Action"/>");</xsl:for-each>
-
+			}
              //set the properties
             populateProperties(_call);
             populateModules(_call);
@@ -201,11 +205,16 @@
             <xsl:if test="$paramCount>0">,</xsl:if>final <xsl:value-of
select="$package"/>.<xsl:value-of select="$callbackname"/> callback) throws java.rmi.RemoteException{
 
              org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext);
+             _call.setTransportInfo(this.senderTransport,this.listenerTransport,this.useSeparateListener);
  		     org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
             _call.setTo(this.toEPR);
             _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            
+            if(wsaAction != null) {
+            	_messageContext.setWSAAction(wsaAction);
+            } else {
             <xsl:for-each select="input/param[@Action!='']">_messageContext.setWSAAction("<xsl:value-of
select="@Action"/>");</xsl:for-each>
-
+			}
              org.apache.axis2.soap.SOAPEnvelope env = createEnvelope();
              <xsl:choose>
              <!-- There are more than 1 parameter in the input-->
@@ -288,8 +297,11 @@
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
             _msgSender.setTo(this.toEPR);
             _msgSender.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            if(wsaAction != null) {
+            	_messageContext.setWSAAction(wsaAction);
+            } else {
             <xsl:for-each select="input/param[@Action!='']">_messageContext.setWSAAction("<xsl:value-of
select="@Action"/>");</xsl:for-each>
-
+			}
           org.apache.axis2.soap.SOAPEnvelope env = null;
             env = createEnvelope();
             <xsl:choose>

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=331259&r1=331258&r2=331259&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 04:00:48 2005
@@ -66,6 +66,8 @@
     protected HashMap propertyMap = new HashMap();
     protected ArrayList modules = new ArrayList();
 
+    protected String wsaAction;
+    
     /**
      *
      * @param senderTransport
@@ -296,5 +298,13 @@
     		sender.engageModule(new QName((String)this.modules.get(i)));
     	}
     }
+
+	public String getWsaAction() {
+		return wsaAction;
+	}
+
+	public void setWsaAction(String wsaAction) {
+		this.wsaAction = wsaAction;
+	}
 }
 



Mime
View raw message