[ https://issues.apache.org/jira/browse/AXIS2C-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13186952#comment-13186952 ]
Hengli Wang commented on AXIS2C-1573: ------------------------------------- There is still one more issue left in the soap message, where xsi:type shows Test_Types instead of Test.Types. In my specific case, I can hack it through by replacing '_' with '.' when xsi:type is generated. However, it is not a generic solution when you actual have '_' in the name. > 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: c-dev-unsubscr...@axis.apache.org For additional commands, e-mail: c-dev-h...@axis.apache.org