I have created a web service and I have added my quite simple function, obtaining as a parameter a field of type Stream
.
After that I have tried to test from the SoapUI. When the MTOM is not activated, everything goes correctly, the problem arises when it is required.
HTTP/1.1 415 Cannot process the message because the content type 'multipart/related; type="application/xop+xml"; start=""; start-info="text/xml"; boundary="----=_Part_133_2094112.1548776402204"' was not the expected type 'text/xml; charset=utf-8'.
I have managed to solve it after many hours and I think it can be useful for the community, so I post it step by step in the answer.