I want to send a zip file through SOAP (from a SOAP client to a SOAP server) in python.
Following the reading of this SO question, I choose to use suds as my python client.
But according to this, suds do not support sending attachment. A method is given to circumvent the problem but I’ve not been able to make it work. I’m puzzled over what I’m supposed to give as parameters.
Anyone know how to send a file through Soap in python ?
If needed I’ll switch to another SOAP client library.
Download the provided wrapper, and then where you would normally say something like…
…instead do…
Where binaryParam is of the type expected by soap_attachements.py. For example, if you wanted to send a png image I think (never done this) you would do: