You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Tevoi Andrea <te...@cad.it> on 2003/12/05 10:04:43 UTC
SimpleType with restriction WSDL to java mapping not compliant with JAX-RPC Specs
Hi all,
I've seen that for a simple type derived from another simple type WSDL2Java tool generates a wrapped class, not according with jax-rpc specs (4.2.5).
example:
<xsd:complexType name="MyBean">
<xsd:sequence>
...
<xsd:element name="StringRestriction">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
...
</xsd:sequence>
</xsd:complexType>
For the Element inside the ComplexType that derives from xsd:string, WSDL2java generates a StringRestriction.java class.
Moreover, MyBean.java class has a method setStringRestriction(StringRestriction stringRestriction)
is this an Axis bug?
thanks in advance,
Andrea Tevoi