Andrew Liao created CXF-7961:
--------------------------------
Summary:
org.apache.cxf.tools.validator.internal.SchemaValidator.validate() appears to
strongly enforce <mime:content part="partName" type="someType/>
Key: CXF-7961
URL: https://issues.apache.org/jira/browse/CXF-7961
Project: CXF
Issue Type: Bug
Components: Soap Binding, Tooling
Affects Versions: 3.3.0
Environment: macOS v10.13.6, 2.8G Intel i7, RAM 16G
Java zulu8.27.0.7-jdk8.0.162-macosx_x64
IntelliJ 2017.2.6
Reporter: Andrew Liao
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:
{noformat}
<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>{noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)