Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.11
-
None
-
Unknown
Description
We have an issue similar to CXF-7185 except in our case the cvc-type is different. We suggest the following change to DataWriterImpl:
// CXF-1194 and CXF-7438 this hack is specific to MTOM, so pretty safe to leave in here before calling the origHandler. String msg = event.getMessage(); if ((msg.startsWith("cvc-type.3.1.2") || msg.startsWith("cvc-complex-type.2.2")) && msg.contains(marshaller.getLastMTOMElementName().getLocalPart())) { return true; }
Our xsd contains this:
<xs:complexType name="contentElements"> <xs:sequence> <xs:element name="contentElement" type="xmime:base64Binary" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType>
Without MTOM enabled everything ist fine, with MTOM enabled the error occurs.