I am trying to use the Salesforce-python-toolkit tool to call web services in the Salesforce API, but I am unable to get the client to go through the proxy server. Since the toolkit is based on the top of the foam, I tried to go down to use only the foam to see if I can make it respect the proxy setting, but it doesn't work either.
This is tested for foaming 0.3.9 on both OS X 10.7 (python 2.7) and ubuntu 12.04.
An example of the request I made that did not finish the proxy server (just scrolling firmware or charles executed locally):
import suds ws = suds.client.Client('file://sandbox.xml',proxy={'http':'http://localhost:8888'}) ws.service.login('user','pass')
I tried different things with the http: // proxy using IP using the fully qualified domain name. I went through the code in pdb and see that it sets the proxy parameter. I also tried to create a client instance without a proxy, and then install it with: ws.set_options (proxy = {'HTTP': 'HTTP: // local: 8888})
Is the proxy server no longer used by foam? I do not see it being listed here http://jortel.fedorapeople.org/suds/doc/suds.options.Options-class.html , but I see it under the transport. Do I need to install it differently through transport? When I switched to pdb, it looks like he was using transport, but I'm not sure how to do this.
Thanks!
source share