axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Villard (JIRA)" <>
Subject [jira] Created: (AXIS2-4496) error in C code generation from wsdl
Date Thu, 17 Sep 2009 12:06:57 GMT
error in C code generation from wsdl 

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

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

View raw message