[Fedora-suds-list] Fwd: Proxy Problems

Jeff Ortel jortel at redhat.com
Sun Mar 14 22:23:23 UTC 2010



On 03/14/2010 04:01 PM, dunkel gruen wrote:
> <mailto:bd41bd851003091247t78917aabof3c64325e62a7cd1 at mail.gmail.com>
> Hello Matt,
>
> i had no success. I get the following error. I get the same error if on
> line c = Client(url) with proxy or without proxy. So i try to switch the
> order. I think the client need the proxy first...  I would be happy if
> you can write me that my code is right. So i can talk to my admin if
> there is any firewall setting or something else...
>
> CODE
> #!/usr/bin/python
> #-*- coding: utf-8 -*-
> from suds.client import Client
> url = "http://www.thomas-bayer.com/axis2/services/BLZService?wsdl"
> d = dict(http = '192.168.50.2:3129 <http://192.168.50.2:3129>', https =
> '192.168.50.2:3129 <http://192.168.50.2:3129>')
> c = Client(url)
> c.set_options(proxy=d)
> print c

I think this should just be:
 >
 > d = dict(http='192.168.50.2:3129', https='192.168.50.2:3129')
 >


>
> ERROR Message:
> $ python test_ws_noproxy.py >> test.txt
> Traceback (most recent call last):
>    File "test_ws_noproxy.py", line 6, in <module>
>      c = Client(url)
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\client.py",
> line 111, in __init__
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\reader.py",
> line 136, in open
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\wsdl.py", line
> 136, in __init__
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\reader.py",
> line 73, in open
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\reader.py",
> line 88, in download
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\transport\https.py",
> line 60, in open
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\transport\http.py",
> line 62, in open
>    File
> "c:\Python26\lib\site-packages\suds-0.3.9-py2.6.egg\suds\transport\http.py",
> line 118, in u2open
>    File "c:\Python26\lib\urllib2.py", line 383, in open
>      response = self._open(req, data)
>    File "c:\Python26\lib\urllib2.py", line 401, in _open
> '_open', req)
>    File "c:\Python26\lib\urllib2.py", line 361, in _call_chain
>      result = func(*args)
>    File "c:\Python26\lib\urllib2.py", line 1130, in http_open
>      return self.do_open(httplib.HTTPConnection, req)
>    File "c:\Python26\lib\urllib2.py", line 1105, in do_open
>      raise URLError(err)
> urllib2.URLError: <urlopen error [Errno 10060] Ein Verbindungsversuch
> ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne
> nicht ordnungsgemõ¯ reagiert hat, oder die hergestellte Verbind
> ung war fehlerhaft, da der verbundene Host nicht reagiert hat>
>
> thanks
> dunkelgruen
>
>
>
>
> Hi, try and create your client object first (e.g. c = Client(url), then
> try: c.set_options(proxy=d), which should get you working. The key is to
> create your client object first, then you set your options against that
> object.
>
>
>
>
> Hi, try and create your client object first (e.g. c = Client(url), then
> try: c.set_options(proxy=d), which should get you working. The key is to
> create your client object first, then you set your options against that
> object.
>
>
>
> Hello,
>
> Today i try to use it in a enviroment with a proxy. I read the examples
> and try and try but i'm not sure that the code is right.
> At least i get no connection...
>
> Here is a short example that dosn't work...
>
> #!/usr/bin/python
> #-*- coding: utf-8 -*-
> import suds
> url = "http://www.thomas-bayer.com/axis2/services/BLZService?wsdl
> <https://mailgate.roc-berlin.de/exchweb/bin/redir.asp?URL=http://www.thomas-bayer.com/axis2/services/BLZService?wsdl>"
> d = dict(http='192.168.50.2:3129 <http://192.168.50.2:3129>')
> client = client.set_options(proxy=d)
> print suds.client.Client(url)
>
> Can you send me a correct example?
>
> dunkelgruen
>
>
>
>
>
> _______________________________________________
> suds mailing list
> suds at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/suds

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5126 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.fedoraproject.org/pipermail/suds/attachments/20100314/23410037/attachment.bin 


More information about the suds mailing list