You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ch...@apache.org on 2006/07/24 19:02:29 UTC
svn commit: r425119 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
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']) > 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
Re: svn commit: r425119 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Posted by Davanum Srinivas <da...@gmail.com>.
That was me. You better reopen AXIS2-694 :)
http://tinyurl.com/z748g
-- dims
On 7/24/06, chinthaka@apache.org <ch...@apache.org> wrote:
> 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']) > 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
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org