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

org.apache.cxf.tools.validator.internal.SchemaValidator.validate() appears to strongly enforce <mime:content part="partName" type="someType/>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 3.3.0
    • None
    • Soap Binding, Tooling
    • None
    • macOS v10.13.6, 2.8G Intel i7, RAM 16G

      Java zulu8.27.0.7-jdk8.0.162-macosx_x64

      IntelliJ 2017.2.6

       

    • Unknown

    Description

      During an upgrade from 2.7.8 --> 3.3.0, testing uncovered that

      org.apache.cxf.tools.validator.internal.SchemaValidator.validate() appears to strongly enforce <mime:content part="partName" type="someType/> as of 3.3.0 and thows exception

      testCurrencyConvertor.wsdl: cvc-complex-type.4: Attribute 'part' must appear on element 'mime:content'.

      This was not the case in 2.7.8; <mime:content  type="someType/> was permissible

      Was unable to find release notes/change log information regarding this change in behavior

      The area in question was:

      <wsdl:binding name="CurrencyConvertorHttpPost" type="tns:CurrencyConvertorHttpPost">
        <http:binding verb="POST" />
        <wsdl:operation name="ConversionRate">
          <http:operation location="/ConversionRate" />
          <wsdl:input>
            <mime:content type="application/x-www-form-urlencoded" />
          </wsdl:input>
          <wsdl:output>
            <mime:mimeXml part="Body" />
          </wsdl:output>
        </wsdl:operation>
      </wsdl:binding>

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            DrewLiao Andrew Liao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: