I am trying to send some files over a web service. I'm consuming this external web service from my Mendix application. The external web service expects the files to be send as an MTOM attachment which works.
I get an error from the external web service that the content type is not supported. Even though you cannot see the actual MTOM request with the logging in trace mode, I could make up out of the error message that Mendix sets a content-type of application/octet-stream to the MTOM attachment. Unfortunately the external web service will only accept application/pdf content-type. The file i'm trying to send is a PDF.
When I use SOAPui it works fine, SOAPui recognizes the PDF and automatically sets the application/pdf content type. When I manually override this to application/octet-stream I get the same error as I get in Mendix.
Is it possible to change the MTOM content-type? I hope so because otherwise I'll have to start with building this call in a custom Java action....