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 "Guus Gerrits (JIRA)" <ax...@ws.apache.org> on 2005/07/13 11:51:22 UTC

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

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

Guus Gerrits commented on AXIS-119:
-----------------------------------

A lot of work is often done to define such kind of restrictions in XSDs, currently only ending up as a good documentation of the used DataTypes. At least  these DataTypes get some more attention/thought during the development/design process (which usually pays out at the end). But as time and budgets are tight in projects,  such "extra work"  is hard to legitimate to our bosses and customers.

As the JAX-RPC 1.1 Final (JSR101) defines all facets as required, are there plans to add support for these restriction facets in Axis-1.x or Axis-2.x (or maybe somebody is already working on this)?


> 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