Hi,
I am using wsdl2java in Axis 1.2 to generate Java classes from wsdl and
schema files.
The schema contains:
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="string">
<xsd:attribute name="A1" .... type="string"
<xsd:attribute name="A2" .... type="string"
In the wsdl2java generated Java class corresponding to this type, SOMETIMES
both A1 and A2 refer to the base string, i.e.,
Class SomeName {
String value;
String get_value() { return value;}
String getA1() {return value;}
String getA2() {return value;}
.........
}
The interesting things is sometimes this will not happen, sometimes this
will happen. I can not see very obvious rule behind this.
use="required|optional" does not affact according to my observation.
But, wsdl2java in axis 1.1 does not have this problem. Anyone has insight
into this problem? Thank you very much!
Regards,
Weijian