[
https://issues.apache.org/jira/browse/CXF-7961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16765741#comment-16765741
]
Freeman Fang commented on CXF-7961:
-----------------------------------
Hi [~DrewLiao],
FYI, this change was introduced by CXF-6151.
In CXF, we now use mime-binding wsdl schema with 2004-08-24 version
http://schemas.xmlsoap.org/wsdl/mime/2004-08-24.xsd.
The original one is broken. You can get more details from discussion in
CXF-6151.
Since this is an intended change, I will close this issue.
Cheers
Freeman
> 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
> Priority: Major
>
> 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)