Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.6.0
-
None
-
None
Description
My WSDL file has a simple type that has '.' in its name
<wsdl:definitions ...>
<wsdl:types>
<xs:schema ...>
<xs:simpleType name="Test.Types">
<xs:restriction base="xs:string">
<xs:enumeration value="TEST_TYPE_UNKNOWN"/>
<xs:enumeration value="TEST_TYPE_A"/>
<xs:enumeration value="TEST_TYPE_B"/>
</xs:restriction>
</xs:simpleType>
...
The generated code has
/* Enumeration for this type */
typedef enum
A close look shows that the name comes from CADBBeanTemplateHeader.xsl and CADBBeanTemplateSource.xsl,
<xsl:variable name="enum">adb_<xsl:value-of select="$propertyName"/>_enum_t</xsl:variable>
I replaced adb_<xsl:value-of select="$propertyName"/> with<xsl:value-of select="$axis2_name"/>, and the generated code seems happy,
/* Enumeration for this type */
typedef enum { TEST_TYPE_UNKNOWN, TEST_TYPE_A, TEST_TYPE_B }
adb_Test_Types_enum_t;