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 di...@apache.org on 2006/05/12 20:03:32 UTC
svn commit: r405815 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Author: dims
Date: Fri May 12 11:03:29 2006
New Revision: 405815
URL: http://svn.apache.org/viewcvs?rev=405815&view=rev
Log:
Fix for AXIS2-694 - Soap:Body is serialized inside of a soap:Header element
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=405815&r1=405814&r2=405815&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 12 11:03:29 2006
@@ -263,6 +263,12 @@
</xsl:choose>
</xsl:for-each>
+ <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){
@@ -423,6 +429,12 @@
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
+ <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 headers only if they are not null
if (<xsl:value-of select="@name"/>!=null){