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

Apache-cxf wsdlvalidator returns error in mime:part

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.0.2
    • Fix Version/s: 3.0.4, 2.7.15, 3.1
    • Component/s: Tooling
    • Labels:
      None
    • Environment:

      java version 1.8.0_20, Windows 7, Windows 8

    • Estimated Complexity:
      Unknown

      Description

      Apache-cxf wsdlvalidator returns

      "WSDLValidator Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime:part'. One of '

      {part}

      ' is expected." ,

      if I try to validate wsdl document with such structure:

      <mime:multipartRelated>
      <mime:part>
      <soap:body parts="header parameters" use="literal"/>
      </mime:part>
      <mime:part>
      <mime:content part="attachment" type="application/octetstream"/>
      </mime:part>
      </mime:multipartRelated>

      wsdl document example from: https://github.com/wso2/wso2-axis2/blob/master/modules/xmlbeans/test-resources/mime-doc.wsdl. (I also tried other examples)

      If I change "mime:part" to "part", validator returns error:

      WSDLValidator Error : javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:binding/wsdl:operation[1]/wsdl:input/mime:multipartRelated/part): faultCode=INVALID_WSDL: Encountered unexpected element '

      {http://soapinterop.org/attachments/wsdl}

      part'.

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              komm Yuri Kr
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: