You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Tom Jordahl (JIRA)" <ax...@ws.apache.org> on 2005/07/13 20:07:14 UTC

[jira] Commented: (AXIS-119) WSDL2Java doesn't honor restrictions in schema

    [ http://issues.apache.org/jira/browse/AXIS-119?page=comments#action_12315771 ] 

Tom Jordahl commented on AXIS-119:
----------------------------------

There are no plans to support this in Axis 1.x.  Axis2 is using XMLBeans, which I believe generates code to enforce restrictions.

> WSDL2Java doesn't honor restrictions in schema
> ----------------------------------------------
>
>          Key: AXIS-119
>          URL: http://issues.apache.org/jira/browse/AXIS-119
>      Project: Apache Axis
>         Type: Bug
>   Components: Serialization/Deserialization
>     Versions: beta-2
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Joe Riess
>     Assignee: Axis Developers Mailing List

>
> The Java bean class which is generated via WSDL2Java using the following WSDL 
> schema section:
> <wsdl:schema targetNamespace="http://www.lexisnexis.com/SimpleRestriction">
>   <xsd:simpleType name="simpleRestrictionType">
>     <xsd:restriction base="xsd:integer">
>       <xsd:minInclusive value="1" /> 
>       <xsd:maxInclusive value="10" /> 
>     </xsd:restriction>
>   </xsd:simpleType>
> </wsdl:schema>
> does not contain any range checking with regards to the minInclusive and 
> maxInclusive values.  The bean class accepts any valid integer value which is 
> contradictive to the schema.

-- 
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