[
https://issues.apache.org/jira/browse/AXIS2C-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13184118#comment-13184118
]
Hengli Wang commented on AXIS2C-1573:
-------------------------------------
The seem issue also appears in many places where <xsl:value-of
select="@shortname"/> is used in CADBBeanTemplateSource.xsl. I replace it with
<xsl:value-of select="translate(@shortname,'.','_')"/>, and the generated code
compiles.
> Generated code failed to compile when the type names in WSDL has '.'
> --------------------------------------------------------------------
>
> Key: AXIS2C-1573
> URL: https://issues.apache.org/jira/browse/AXIS2C-1573
> Project: Axis2-C
> Issue Type: Bug
> Components: wsdl2c tool
> Affects Versions: 1.6.0
> Reporter: Hengli Wang
>
> 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 {
> TEST_TYPE_UNKNOWN,
> TEST_TYPE_A,
> TEST_TYPE_B } adb_Test.Types_enum_t;
> 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;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.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]