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 "Dominique Villard (JIRA)" <ji...@apache.org> on 2009/09/17 14:06:57 UTC

[jira] Created: (AXIS2-4496) error in C code generation from wsdl

error in C code generation from wsdl 
-------------------------------------

                 Key: AXIS2-4496
                 URL: https://issues.apache.org/jira/browse/AXIS2-4496
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.5
            Reporter: Dominique Villard
            Priority: Trivial


If in the wsdl the element name is followed by blanks (eg. spaces) the generated C code 
can not be compiled.

In my wsdl i have the following line:
<element name="WebmailPreferredVersion " type="xsd:integer" minOccurs="0"/>
which gives rise to:
        axis2_bool_t AXIS2_CALL
        adb_PreferencesData_type0_is_WebmailPreferredVersion _nil(
                adb_PreferencesData_type0_t* _PreferencesData_type0,
                const axutil_env_t *env);

which can not be compiled since there is a space between WebmailPreferredVersion and _nil.

The element name should be trimmed upon code generation.
I guess that the file to be corrected is:
CADBBeanTemplateSource.xsl


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.