Open Dawiducik opened 2 years ago
Your MTOM response message violates W3C spec. From https://www.w3.org/TR/soap12-mtom/#mime-serialization :
The content-type of the root part MUST be application/xop+xml
In your response, the root part has Content-Type "text/xml" which is incorrect. I doubt WCF client libraries expose options to ignore violations to the spec like this.
Could this be a bug in Apache CXF?
Hello, we have following SOAP answer from one of the services, running SOAP 1.1 with WS Addressing:
According to this W3 documentation, this message is a valid SOAP 1.1 with multipart content.
The problem is, whether I want to read this message from client using MTOM encoder
MtomMessageEncodingBindingElement
, there is an exception telling me thatRoot MIME part must have media type 'application' and media subtype 'xop+xml'
, and this is true, because my Root part has MIME =text/xml
.This is the part of internal code throwing that exception.
https://github.com/dotnet/wcf/blob/d1a04680c77e5d47138c1763b42ab47295f5a1b3/src/System.Private.ServiceModel/src/Internals/System/Xml/XmlMtomReader.cs#L225-L227
Whole exception:
I am using
.NET 6.0
withSystem.ServiceModel.Primitives 4.10.0
package.Is there any way to get this working?