python-zeep
python-zeep copied to clipboard
Support for MTOM attachments
Hello,
I'm running Zeep 2.4.0 and I'm trying to send a mime attachment per the MTOM spec. I see that some work has been done to support this in the Transport with attachment request (https://github.com/mvantellingen/python-zeep/pull/314). Playing around with this I got to the point where I can attach the file to the client but I cannot form the request to send it successfully. I can send a successful request via soapui. After many hours of searching I've hit a wall.
The relevant XSD portion is https://gist.github.com/alexfx/b19c06c7d95a01f452a8d8bd6b5890ac and example request is https://gist.github.com/alexfx/e90b9518a5fb04c1dc82a6bbc08d329a
The question is how do I properly create the portion found on line 25 of the request
<xop:Include href="cid:[email protected]" />
I'm new to the world of soap in python so forgive me if I've missed something obvious.
Cheers,
Alex
Here is an example of a successful raw request from soapui that I'm attempting to replicate, the relevant include is on line 57. https://gist.github.com/alexfx/c318b7047656386bc6e8e21f837f32e3#file-request-xml
Any ETA to make this enhancement? Thanks!
Is this issue resolved ? I'm too facing same kind of situation in resolving multipart response.
I have the same problem... looking for examples of MTOM requests with zeep or suds or just information, but everything I can find is abstract ideas or technical explanation about what is MTOM.... the link below doesn't help neither. https://github.com/remaudcorentin-dev/python-zeep-adv
Has there been any kind of update? I too am looking for a way to send MIME attachments.
Me too. Is there an update?
I made an experimental package pymtom
. Not sure if it works because it is hard to find some free and correct SOAP service with MTOM.