You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Feng Zhang (JIRA)" <ji...@apache.org> on 2007/05/24 22:14:16 UTC

[jira] Created: (CXF-688) helloworld.wsdl file simpleType restriction of maxlength=30 not enforced

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.


[jira] Resolved: (CXF-688) helloworld.wsdl file simpleType restriction of maxlength=30 not enforced

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-688.
------------------------------

    Resolution: Won't Fix

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


[jira] Commented: (CXF-688) helloworld.wsdl file simpleType restriction of maxlength=30 not enforced

Posted by "Feng Zhang (JIRA)" <ji...@apache.org>.
    [ 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.