[ http://issues.apache.org/jira/browse/YOKO-220?page=all ]
Matteo Vescovi resolved YOKO-220. --------------------------------- Resolution: Fixed Fixed on idltowsdl_anon_refactor branch. > idltowsdl generates incorrect XmlSchema and CorbaTypeMap types for IDL arrays > of bounded strings > ------------------------------------------------------------------------------------------------ > > Key: YOKO-220 > URL: http://issues.apache.org/jira/browse/YOKO-220 > Project: Yoko - CORBA Server > Issue Type: Bug > Components: Idl2Wsdl > Affects Versions: 1.0-incubating-M2 > Reporter: Matteo Vescovi > Assigned To: Matteo Vescovi > > IDL: > typedef string<5> ArrayString5[10]; > idltowsdl currently generates: > CORBA: > <corba:anonstring xmlns:ns4="http://schemas.apache.org/yoko/idl/Scope" > xmlns="http://schemas.apache.org/yoko/idl/Scope/typemap" bound="5" > name="_1_ArrayString5" type="ns4:ArrayString5" /> > <corba:array xmlns="http://schemas.apache.org/yoko/idl/Scope/typemap" > bound="10" repositoryID="IDL:ArrayString5:1.0" name="ArrayString5" > type="ArrayString5" /> > XMLSCHEMA: > <xs:complexType name="ArrayString5"> > <xs:sequence> > <xs:element maxOccurs="10" minOccurs="10" name="item" > type="ArrayString5"> > </xs:element> > </xs:sequence> > </xs:complexType> > The correct output should be: > CORBA: > <corba:anonstring xmlns:ns4="http://schemas.apache.org/yoko/idl/Scope" > xmlns="http://schemas.apache.org/yoko/idl/Scope/typemap" bound="5" > name="_1_ArrayString5" type="ns4:_1_ArrayString5" /> > <corba:array xmlns="http://schemas.apache.org/yoko/idl/Scope/typemap" > bound="10" repositoryID="IDL:ArrayString5:1.0" name="ArrayString5" > type="_1_ArrayString5" /> > XMLSCHEMA: > <xs:simpleType name="_1_ArrayString5"> > <xs:restriction base="xs:string"> > <xs:maxLength value="5"> > </xs:maxLength> > </xs:restriction> > </xs:simpleType> > <xs:complexType name="ArrayString5"> > <xs:sequence> > <xs:element maxOccurs="10" minOccurs="10" name="item" > type="_1_ArrayString5"> > </xs:element> > </xs:sequence> > </xs:complexType> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira