Author: amilas Date: Mon Dec 10 02:40:35 2007 New Revision: 602849 URL: http://svn.apache.org/viewvc?rev=602849&view=rev Log: fixed and issue with skelton interface generation
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl?rev=602849&r1=602848&r2=602849&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl (original) +++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceTemplate.xsl Mon Dec 10 02:40:35 2007 @@ -156,8 +156,9 @@ */ public void start<xsl:value-of select="@name"/>( - <xsl:variable name="inputcount" select="count(input/[EMAIL PROTECTED]'body' and @type!=''])"/> - <xsl:choose> + <xsl:variable name="inputcount" select="count(input/[EMAIL PROTECTED]'body' and @type!=''])"/> + <xsl:variable name="inputWrappedCount" select="count(input/[EMAIL PROTECTED]'body' and @type!='']/param)"/> + <xsl:choose> <xsl:when test="$inputcount=1"> <!-- Even when the parameters are 1 we have to see whether we have the wrapped parameters --> @@ -175,7 +176,7 @@ </xsl:when> <xsl:otherwise><!-- Just leave it - nothing we can do here --></xsl:otherwise> </xsl:choose> - <xsl:if test="$inputcount=1">,</xsl:if> + <xsl:if test="($inputcount=1) and not($isUnwrapParameters and $inputWrappedCount=0)">,</xsl:if> <xsl:for-each select="input/param[not(@location='body') and @type!='']"> <xsl:value-of select="@type"/><xsl:text> </xsl:text><xsl:value-of select="@name"/>, </xsl:for-each> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]