It appears that Axis WSDL2Java does not fully support the use of "ref="
in the XML Schema.
<xsd:attribute name="name" type="xsd:string"/>
<xsd:complexType name="metric">
<xsd:attribute ref="name" use="required"/>
</xsd:complexType>
<xsd:element name="metric" type="metric"/>
The Java generated for "metric" has no code for attribute "name".
However, "ref=" sort of works for elements. Given the above:
<xsd:complexType name="moreInfo">
<xsd:sequence>
<xsd:element ref="metric" use="required"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
The Java generated for "moreInfo" has code for metric, but only a single
value. It should be an array because maxOccurs="unbounded".
So "ref=" in attributes don't work at all. And "ref=" in elements
partially works, but is ignoring the other Schema attributes on
the referencing xsd:element (maybe it's only looking at the attributes
on the referenced xsd:element?)
I could change my schema to avoid the use of "ref=" but I'd rather not.
Should I expect this usage to be supported by Axis?
Thanks,
Steve
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/