axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r601733 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl
Date Thu, 06 Dec 2007 13:51:08 GMT
Author: amilas
Date: Thu Dec  6 05:50:48 2007
New Revision: 601733

URL: http://svn.apache.org/viewvc?rev=601733&view=rev
Log:
added the response unwrapping for empty messages

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl?rev=601733&r1=601732&r2=601733&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBDatabindingTemplate.xsl
Thu Dec  6 05:50:48 2007
@@ -361,20 +361,24 @@
 
             <xsl:if test="generate-id($outputElement) = generate-id(key('paramsOut', $outputElementType)[1])
or
                     generate-id($outputElement) = generate-id(key('outOperationName', $opname)[1])">
-                <xsl:if test="string-length(normalize-space($outputElementComplexType))
> 0">
-                    <!-- in server side we do not want to unwrap the output type -->
-                    <!--
-                    private <xsl:value-of select="$outputElementComplexType"/> get<xsl:value-of
select="$opname"/>(
-                    <xsl:value-of select="$outputElementType"/> wrappedType){
-                        return wrappedType.get<xsl:value-of select="$outputElementShortType"/>();
-                    } -->
-                    private <xsl:value-of select="$outputElementType"/> wrap<xsl:value-of
select="$opname"/>(
-                    <xsl:value-of select="$outputElementComplexType"/> innerType){
-                        <xsl:value-of select="$outputElementType"/> wrappedElement
= new <xsl:value-of select="$outputElementType"/>();
-                        wrappedElement.set<xsl:value-of select="$outputElementShortType"/>(innerType);
-                        return wrappedElement;
-                    }
-                </xsl:if>
+
+                <xsl:choose>
+                    <xsl:when test="string-length(normalize-space($outputElementComplexType))
> 0" >
+                         private <xsl:value-of select="$outputElementType"/> wrap<xsl:value-of
select="$opname"/>(
+                            <xsl:value-of select="$outputElementComplexType"/> innerType){
+                                <xsl:value-of select="$outputElementType"/> wrappedElement
= new <xsl:value-of select="$outputElementType"/>();
+                                wrappedElement.set<xsl:value-of select="$outputElementShortType"/>(innerType);
+                                return wrappedElement;
+                         }
+                    </xsl:when>
+                    <xsl:otherwise>
+                         private <xsl:value-of select="$outputElementType"/> wrap<xsl:value-of
select="$opname"/>(){
+                                <xsl:value-of select="$outputElementType"/> wrappedElement
= new <xsl:value-of select="$outputElementType"/>();
+                                return wrappedElement;
+                         }
+                    </xsl:otherwise>
+                </xsl:choose>
+
             </xsl:if>
             </xsl:if>
       </xsl:if>



---------------------------------------------------------------------
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