Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-688

helloworld.wsdl file simpleType restriction of maxlength=30 not enforced

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-RC
    • 2.0-RC
    • None
    • None
    • regular environment

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            fzhang Feng Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: