0

Python3.2 (SUDS ライブラリ 0.4.1) で Web サービスに接続する際に問題があります。非 wcf Web サービスに接続すると、すべて正常に動作します。次のようにオブジェクト Client クラスを作成します。

Client("http://xxxxxx.xx/XXX_2.0/RequestsService.asmx?wsdl")

しかし... wcfサービスでもまったく同じことをしたい:

Client("http://xxxxxx.xx/XXX_2.0_WCF/WcfJSONRequestsService.svc?wsdl")

次のエラーが表示されます。

トレースバック:

Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\client.py", line 112, in __init__
    self.wsdl = reader.open(url)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\reader.py", line 152, in open
    d = self.fn(url, self.options)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\wsdl.py", line 157, in __init__
    self.build_schema()
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\wsdl.py", line 248, in build_schema
    self.schema = container.load(self.options)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\xsd\schema.py", line 93, in load
    child.open_imports(options)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\xsd\schema.py", line 302, in open_imports
    imported = imp.open(options)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\xsd\sxbasic.py", line 570, in open
    result = self.download(options)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\xsd\sxbasic.py", line 588, in download
    d = reader.open(url)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\reader.py", line 79, in open
    d = self.download(url)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\reader.py", line 95, in download
    fp = self.options.transport.open(Request(url))
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\transport\https.py", line 60, in open
    return  HttpTransport.open(self, request)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\transport\http.py", line 63, in open
    return self.u2open(u2request)
  File "C:\Python32\lib\site-packages\suds_jurko-0.4.1.jurko.5._development_-py3.2.egg\suds\transport\http.py", line 121, in u2open
    return url.open(u2request, timeout=tm)
  File "C:\Python32\lib\urllib\request.py", line 369, in open
    response = self._open(req, data)
  File "C:\Python32\lib\urllib\request.py", line 387, in _open
    '_open', req)
  File "C:\Python32\lib\urllib\request.py", line 347, in _call_chain
    result = func(*args)
  File "C:\Python32\lib\urllib\request.py", line 1156, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "C:\Python32\lib\urllib\request.py", line 1139, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

誰かが同様の問題に遭遇しましたか?

4

0 に答える 0