Content-Type header for multipart / related; type = "application / xop + xml" is the type used by MTOM, the message format used to efficiently send attachments to / from web services.
I'm not sure why the error claims to be waiting for it, because the solution I found for my situation was to override the Content-Type header for "application / soap + xml; charset = UTF-8".
Example:
soap_client.set_options(headers = {'Content-Type': 'application/soap+xml;charset=UTF-8'})
If you are able, you can also try checking the MTOM encoding in the web service configuration and changing it.
source share