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
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.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira