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

Wrong faultcode in case failed schema validation on server side

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.7.11
    • Invalid
    • None
    • None
    • Unknown

    Description

      Enabling schema validation on jaxws:endpoint

      <jaxws:endpoint id="DemoService"
              .......
              <jaxws:properties>
                  <entry key="schema-validation-enabled" value="true" />
              </jaxws:properties>
          </jaxws:endpoint>
      

      Invoke this service with expected fault (schema validation failed on request), then got response:

            <soap:Fault>
               <faultcode>soap:Client</faultcode>
               <faultstring>Unmarshalling Error: cvc-minLength-valid: Value '2222' with length = '4' is not facet-valid with respect to minLength '10' for type '#AnonType_inDemoServiceOperationRequest'.</faultstring>
            </soap:Fault>
      
      

      the expected faultcode should be soap:Server.

      Attachments

        Activity

          People

            xldai Xilai Dai
            xldai Xilai Dai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: