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 ch...@apache.org on 2005/08/01 10:27:48 UTC

svn commit: r226762 - in /webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java: CallbackHandlerTemplate.xsl InterfaceImplementationTemplate.xsl

Author: chathura
Date: Mon Aug  1 01:27:31 2005
New Revision: 226762

URL: http://svn.apache.org/viewcvs?rev=226762&view=rev
Log:
Changed the asynchronous cliet so that a data bound responce object will be passed to the callback implementation, instead of the SOAP envelop.

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

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl?rev=226762&r1=226761&r2=226762&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/CallbackHandlerTemplate.xsl Mon Aug  1 01:27:31 2005
@@ -30,7 +30,7 @@
          * auto generated Axis2 call back method for <xsl:value-of select="@name"/> method
          *
          */
-        public void receiveResult<xsl:value-of select="@name"/>(org.apache.axis2.clientapi.AsyncResult result) {
+        public void receiveResult<xsl:value-of select="@name"/>( <xsl:value-of select="output/param/@type"/><xsl:text> </xsl:text><xsl:value-of select="output/param/@name"/>) {
 			//Fill here with the code to handle the response
 			
         }

Modified: webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=226762&r1=226761&r2=226762&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis/trunk/java/modules/wsdl/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Mon Aug  1 01:27:31 2005
@@ -205,7 +205,10 @@
              _messageContext.setEnvelope(env);
 		      _call.invokeNonBlocking(_operations[<xsl:value-of select="position()-1"/>], _messageContext, new org.apache.axis2.clientapi.Callback(){
                    public void onComplete(org.apache.axis2.clientapi.AsyncResult result){
-                         callback.receiveResult<xsl:value-of select="@name"/>(result);
+                   
+					    java.lang.Object object = <xsl:value-of select="$fullsupporterclassname"/>.fromOM(getElement(result.getResponseEnvelope(),"<xsl:value-of select="$style"/>"),<xsl:value-of select="$outputtype"/>.class);
+             
+                         callback.receiveResult<xsl:value-of select="@name"/>((<xsl:value-of select="$outputtype"/>)object);
                    }
                    public void reportError(java.lang.Exception e){
                          callback.receiveError<xsl:value-of select="@name"/>(e);