axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r425119 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Date Mon, 24 Jul 2006 17:02:29 GMT
Author: chinthaka
Date: Mon Jul 24 10:02:29 2006
New Revision: 425119

URL: http://svn.apache.org/viewvc?rev=425119&view=rev
Log:
Some one had changed the templates so that SOAP envelope is being fully built when there are
header parameters, which is not required 
at all. Removing that (with the permission from Ajith as well :) )


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/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=425119&r1=425118&r2=425119&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 Jul 24 10:02:29 2006
@@ -305,12 +305,6 @@
                                         </xsl:otherwise>
                                     </xsl:choose>
 
-                                    <xsl:choose>
-                                        <!-- If there are headers then build the envelope
-->
-                                        <xsl:when test="count(input/param[@location='header'])>0">
-                                            env.build();
-                                        </xsl:when>
-                                    </xsl:choose>
                                     <xsl:for-each select="input/param[@location='header']">
                                         // add the children only if the parameter is not
null
                                         if (<xsl:value-of select="@name"/>!=null){
@@ -509,12 +503,6 @@
                                         </xsl:otherwise>
                                     </xsl:choose>
 
-                                    <xsl:choose>
-                                        <!-- If there are headers then build the envelope
 -->
-                                        <xsl:when test="count(input/param[@location='header'])
&gt; 0">
-                                            env.build();
-                                        </xsl:when>
-                                    </xsl:choose>
                                     <xsl:for-each select="input/param[@location='header']">
                                          // add the headers only if they are not null
                                         if (<xsl:value-of select="@name"/>!=null){
@@ -665,14 +653,8 @@
                                                         <xsl:otherwise>
                                                               env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()));
                                                         </xsl:otherwise>
-                                                    </xsl:choose>
+                                                  </xsl:choose>
 
-                                                    <xsl:choose>
-                                                        <!-- If there are headers then
build the envelope -->
-                                                        <xsl:when test="count(input/param[@location='header'])>0">
-                                                            env.build();
-                                                        </xsl:when>
-                                                    </xsl:choose>
                                                     <xsl:for-each select="input/param[@location='header']">
                                                         // add the children only if the parameter
is not null
                                                         if (<xsl:value-of select="@name"/>!=null){



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message