[ 
http://issues.apache.org/jira/browse/AXIS2-1030?page=comments#action_12428081 ] 
            
Fabian Christ commented on AXIS2-1030:
--------------------------------------

The reason for this generated code is located in ADBBeanTemplate.xsl

                <!-- populate attributes here!!!. The attributes are part of an 
element, not part of a type -->
                <xsl:for-each select="[EMAIL PROTECTED]">
                    <xsl:variable name="propertyName" select="@name"/>
                    <xsl:variable name="propertyType" select="@type"/>
                    <xsl:variable name="shortTypeNameUncapped"  
select="@shorttypename"/>
                    <xsl:variable name="shortTypeName"
                    select="concat(translate(substring($shortTypeNameUncapped, 
1, 1 ),'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' ), 
substring($shortTypeNameUncapped, 2, string-length($shortTypeNameUncapped)))" />
                    <xsl:variable name="javaName" select="@javaname"/>
                    <xsl:variable name="namespace" select="@nsuri"/>
                    <xsl:variable name="attribName">tempAttrib<xsl:value-of 
select="$propertyName"/></xsl:variable>

                    java.lang.String <xsl:value-of select="$attribName"/> =
                      reader.getAttributeValue("<xsl:value-of 
select="$namespace"/>","<xsl:value-of select="$propertyName"/>");
                   if (<xsl:value-of select="$attribName"/>!=null){
                         object.set<xsl:value-of select="$javaName"/>(
-->
-->                        
org.apache.axis2.databinding.utils.ConverterUtil.convertTo<xsl:value-of 
select="$shortTypeName"/>(
-->
                                <xsl:value-of select="$attribName"/>));
                    }

                </xsl:for-each>

I don´t know how to fix this at this moment. Pleas help.

thanks,
- Fabian

> WSDL2Java ADB code gen - wrong use of ConverterUtil
> ---------------------------------------------------
>
>                 Key: AXIS2-1030
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1030
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>            Reporter: Fabian Christ
>         Attachments: sts.zip
>
>
> Hi,
> the code produced by WSDL2Java with -ss -sd -d adb from the attached WSDL  
> won´t compile. (To generate code you need the fix from ASIX2-1029) The 
> generated code uses calls like:
> org.apache.axis2.databinding.utils.ConverterUtil.convertToBigInteger(...)
> org.apache.axis2.databinding.utils.ConverterUtil.convertToDataHandler(...)
> org.apache.axis2.databinding.utils.ConverterUtil.convertToId(...)
> org.apache.axis2.databinding.utils.ConverterUtil.convertToOMAttribute(...)
> But those methods aren´t defined for ConverterUtil.
> - Fabian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to