cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Zhang (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-688) helloworld.wsdl file simpleType restriction of maxlength=30 not enforced
Date Fri, 25 May 2007 14:14:17 GMT

    [ https://issues.apache.org/jira/browse/CXF-688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12499090
] 

Feng Zhang commented on CXF-688:
--------------------------------

I see, it can be simply enforced in java class generated. It is easy to add some logic. 

> helloworld.wsdl file simpleType restriction of maxlength=30 not enforced 
> -------------------------------------------------------------------------
>
>                 Key: CXF-688
>                 URL: https://issues.apache.org/jira/browse/CXF-688
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-RC
>         Environment: regular environment 
>            Reporter: Feng Zhang
>             Fix For: 2.0-RC
>
>
> This seems related to CXF-491. Authors says fixed but did not describe in detail how.

> For the CXF helloworld example, there is a restiction on greetMe request type of maxlength=30
in the helloworld wsdl file, 
>  <simpleType name="MyStringType">
>  <restriction base="string">
>   <maxLength value="30" /> 
>   </restriction>
>   </simpleType>
> after wsdl2java, this restriction is not translated into java code or any mechanism to
enforce it. So when I use soapUI to test the greetMe operation, no fault thrown when I type
in 40+ long request. The service behaves to ignore the initial contract with the length restriction
in wsdl. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message