python-zeep icon indicating copy to clipboard operation
python-zeep copied to clipboard

Support for MTOM attachments

Open alexfx opened this issue 7 years ago • 7 comments

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

alexfx avatar Oct 27 '17 03:10 alexfx

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

alexfx avatar Oct 29 '17 20:10 alexfx

Any ETA to make this enhancement? Thanks!

Urahara avatar Feb 02 '18 16:02 Urahara

Is this issue resolved ? I'm too facing same kind of situation in resolving multipart response.

mrcoolhp avatar Dec 14 '18 04:12 mrcoolhp

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

molina1991 avatar Apr 16 '19 06:04 molina1991

Has there been any kind of update? I too am looking for a way to send MIME attachments.

adammiros avatar Apr 06 '22 00:04 adammiros

Me too. Is there an update?

jackpeplinski avatar Jul 14 '22 16:07 jackpeplinski

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.

pyutil avatar Jan 19 '23 16:01 pyutil