axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsosno...@apache.org
Subject svn commit: r400185 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Date Fri, 05 May 2006 21:44:16 GMT
Author: dsosnoski
Date: Fri May  5 14:44:15 2006
New Revision: 400185

URL: http://svn.apache.org/viewcvs?rev=400185&view=rev
Log:
Create empty element for void response

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=400185&r1=400184&r2=400185&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
Fri May  5 14:44:15 2006
@@ -281,6 +281,9 @@
                             <xsl:choose>
                                 <xsl:when test="$style='rpc' or $style='document'">
                                     //Style is Doc. No input parameters
+                                    org.apache.axiom.soap.SOAPFactory factory = getFactory(_operationClient.getOptions().getSoapVersionURI());
+                                    env = factory.getDefaultEnvelope();
+                                    env.getBody().addChild(factory.createOMElement("<xsl:value-of
select="$method-name"/>", "<xsl:value-of select="$method-ns"/>", ""));
                                 </xsl:when>
                                 <xsl:otherwise>
                                     //Unknown style!! No code is generated
@@ -438,6 +441,9 @@
                             <xsl:choose>
                                 <xsl:when test="$style='document' or $style='rpc'">
                                     //Style is Doc. No input parameters
+                                    org.apache.axiom.soap.SOAPFactory factory = getFactory(_operationClient.getOptions().getSoapVersionURI());
+                                    env = factory.getDefaultEnvelope();
+                                    env.getBody().addChild(factory.createOMElement("<xsl:value-of
select="$method-name"/>", "<xsl:value-of select="$method-ns"/>", ""));
                                 </xsl:when>
                                 <xsl:otherwise>
                                     //Unknown style!! No code is generated
@@ -528,6 +534,9 @@
                         <xsl:choose>
                             <xsl:when test="$style='document' or $style='rpc'">
                                 //Style is Doc. No input parameters
+                                org.apache.axiom.soap.SOAPFactory factory = getFactory(_operationClient.getOptions().getSoapVersionURI());
+                                env = factory.getDefaultEnvelope();
+                                env.getBody().addChild(factory.createOMElement("<xsl:value-of
select="$method-name"/>", "<xsl:value-of select="$method-ns"/>", ""));
                             </xsl:when>
                             <xsl:otherwise>
                                 //Unknown style!! No code is generated



Mime
View raw message