You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2012/12/05 21:35:59 UTC
[jira] [Resolved] (CXF-3329) idl2wsdl: attributes of structs with
the same name as a type do not show up in XSD
[ https://issues.apache.org/jira/browse/CXF-3329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3329.
------------------------------
Resolution: Fixed
Fix Version/s: 2.7.1
2.6.4
2.5.7
> idl2wsdl: attributes of structs with the same name as a type do not show up in XSD
> ----------------------------------------------------------------------------------
>
> Key: CXF-3329
> URL: https://issues.apache.org/jira/browse/CXF-3329
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.3.2, 2.3.3
> Reporter: Arnoud Glimmerveen
> Labels: idl2wsdl
> Fix For: 2.5.7, 2.6.4, 2.7.1
>
> Attachments: sample.idl
>
>
> I am using idl2wsdl to generate a XML schema from a set of type definitions in IDL using the cxf-corbatools-maven-plugin. If the IDL has structures containing attributes with the same name as a type in the same IDL, that attribute does not show up in the generated XSD.
> For example, the following IDL definition:
> {code}
> module myModule
> {
> struct myStruct
> {
> long myStruct;
> long otherField;
> };
> };
> {code}
> results in the XSD below:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://my.company.com" xmlns:tns="http://my.company.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:complexType name="myModule.myStruct">
> <xs:sequence>
> <xs:element name="otherField" type="xs:int">
> </xs:element>
> </xs:sequence>
> </xs:complexType>
> </xs:schema>
> {code}
> The attribute myStruct from the IDL is not present in the XSD.
> The output of idl2wsdl is as follows:
> {noformat}
> idl2wsdl -o path/to/output -x http://my.company.com -T types.xsd -verbose path/to/types.idl
> idl2wsdl - Apache CXF 2.3.3-SNAPSHOT
> ( module myModule ( struct myStruct long myStruct long otherField ) )
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira