Salut Antoine,

are you actually saying that this used to work with 0.9.3.19 ?

Werner

Voiry, Antoine wrote:
> Hello all,
> I am using castor 1.0.4, with Xerces 2.6.2 on java 1.4.10.
> 
> I found a "bug" in version of castor greater to 0.9.3.19.
> This is causing the source generated to be unable to deal with the XML.
> 
> Example with RFC_READ_TABLE wsdl file from sap:
> <xsd:element name="RFC_READ_TABLE.Response">
> <xsd:complexType>
> <xsd:all>
> <xsd:element name="DATA">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="item"
> type="s0:TAB512"></xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="FIELDS">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="item"
> type="s0:RFC_DB_FLD"></xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> <xsd:element name="OPTIONS">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element maxOccurs="unbounded" minOccurs="0" name="item"
> type="s0:RFC_DB_OPT"></xsd:element>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
> </xsd:all>
> </xsd:complexType>
> </xsd:element>....
> 
> As you can see the element named item is present several times in the
> xsd.
> This is causing castor source generator to generate 3 times, the item
> and only the last one is available from the RFC_READ_TABLE object. The
> underlying types are generated but are not accessible through the
> RFC_READ_TABLE.
> This is causing the source file to fail compilation with the error
> message cannot resolve symbol.
> 
> I attached a file with all the files I am using.
> I rollback to 0.9.3.19.
> 
> Kind Regards
> Antoine
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to