I would like to know how to set the useragent in all SOAP request with suds in Python, including WSDL get.
Indeed, on the following code :
Client(‘http://…’)
The WSDL is get with the default Python useragent.
The WSDL is available on the server only for specific useragent.
Thank you
I don’t know whether that’s the easiest way to do it, but it is certainly possible to do using httplib2 (this trick also gives you keep-alive connections) :
And then you need to pass the transport class to the suds.client: