Open pjbonestroo opened 1 year ago
Additional remark/question: If it is helpful I can make a pull request to create a more integrated solution. Under what conditions will that be accepted (so that I don't waste my time)? Also keeping in mind that another pull requests exists but it is already a while ago.
I'll start by referring to related issues: #1066 , #781 and #599 And a related pull request: #314
I was able to solve the problem of sending a MTOM request, and I would like to share the solution here, hoping that it is useful. I'm using zeep version 4.1.0 for both non-MTOM and MTOM requests.
For me the solution was to overwrite the
post_xml
andpost
methods ofzeep.transports.Transport
in the following way:I use these as follows:
The code changes are not much, and the effect is great, it works :-) So hopefully some of the ideas can be used to create an integrated solution into zeep.