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 du...@apache.org on 2007/02/28 09:42:17 UTC

svn commit: r512658 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl

Author: dushshantha
Date: Wed Feb 28 00:42:16 2007
New Revision: 512658

URL: http://svn.apache.org/viewvc?view=rev&rev=512658
Log:
fix for the jira AXIS2C-541 C code generation problem

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

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl?view=diff&rev=512658&r1=512657&r2=512658
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl (original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl Wed Feb 28 00:42:16 2007
@@ -1368,7 +1368,8 @@
 
                         <!-- add axis2_bool_t s -->
                         <xsl:when test="$nativePropertyType='axis2_bool_t'">
-                           text_value = (<xsl:value-of select="$attriName"/>)?"true":"false";
+                           <!--text_value = (<xsl:value-of select="$attriName"/>)?"true":"false";-->
+                           strcpy( text_value, (<xsl:value-of select="$attriName"/>)?"true":"false");
                            text_attri = axiom_attribute_create (env, "<xsl:value-of select="$propertyName"/>", text_value, ns1);
                            AXIOM_ELEMENT_ADD_ATTRIBUTE (parent_element, env, text_attri, parent);
                         </xsl:when>
@@ -1554,7 +1555,7 @@
 
                           <!-- add axis2_bool_t s -->
                         <xsl:when test="$nativePropertyType='axis2_bool_t'">
-                           text_value_<xsl:value-of select="$position"/> = (<xsl:value-of select="$attriName"/>)?"true":"false";
+                           strcpy( text_value_<xsl:value-of select="$position"/>, (<xsl:value-of select="$attriName"/>)?"true":"false" );
                            AXIS2_STREAM_WRITE(stream, env, start_input_str, start_input_str_len);
                            AXIS2_STREAM_WRITE(stream, env, text_value_<xsl:value-of select="$position"/>, axis2_strlen(text_value_<xsl:value-of select="$position"/>));
                            AXIS2_STREAM_WRITE(stream, env, end_input_str, end_input_str_len);



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