Python-zeep: Support for MTOM attachments

Created on 27 Oct 2017  路  4Comments  路  Source: mvantellingen/python-zeep

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

enhancement

Most helpful comment

Any ETA to make this enhancement? Thanks!

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

allan-simon picture allan-simon  路  4Comments

orzilca picture orzilca  路  6Comments

olivierverville picture olivierverville  路  3Comments

pope1ni picture pope1ni  路  4Comments

eagle-r picture eagle-r  路  6Comments