axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r331247 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Date Mon, 07 Nov 2005 09:22:10 GMT
Author: ruchithf
Date: Mon Nov  7 01:22:07 2005
New Revision: 331247

URL: http://svn.apache.org/viewcvs?rev=331247&view=rev
Log:
Updated codegen to use MessageSender in the case of an IN-ONLY MEP

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

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=331247&r1=331246&r2=331247&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 01:22:07 2005
@@ -283,12 +283,11 @@
          <xsl:for-each select="input/param[@type!='']">
             <xsl:if test="position()>1">,</xsl:if><xsl:value-of select="@type"/><xsl:text>
</xsl:text><xsl:value-of select="@name"/>
          </xsl:for-each>) 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.clientapi.MessageSender _msgSender = new org.apache.axis2.clientapi.MessageSender(_serviceContext);
             
  		    org.apache.axis2.context.MessageContext _messageContext = getMessageContext();
-            _call.setTo(this.toEPR);
-            _call.setSoapAction("<xsl:value-of select="$soapAction"/>");
+            _msgSender.setTo(this.toEPR);
+            _msgSender.setSoapAction("<xsl:value-of select="$soapAction"/>");
             <xsl:for-each select="input/param[@Action!='']">_messageContext.setWSAAction("<xsl:value-of
select="@Action"/>");</xsl:for-each>
 
           org.apache.axis2.soap.SOAPEnvelope env = null;
@@ -334,7 +333,7 @@
              </xsl:otherwise>
             </xsl:choose>
              _messageContext.setEnvelope(env);
-             _call.invokeBlocking(_operations[<xsl:value-of select="position()-1"/>],
_messageContext);
+             _msgSender.send(_operations[<xsl:value-of select="position()-1"/>], _messageContext);
                return;
           }
       </xsl:if>



Mime
View raw message