首页 > 解决方案 > Python suds 客户端 urlopen 超时错误?

问题描述

SOAP 新手。

所以我有这个代码:

from suds.client import Client
url = 'https://wsvc.cdiscount.com/MarketplaceAPIService.svc?wsdl'
client = Client(url)

当我运行它时,它需要一段时间但最终输出:

...
    /apps/asg/packages/extpy27-229400/g493_linux64/lib/python3.7/urllib/request.py in do_open(self, http_class, req, **http_conn_args)
       1350                           encode_chunked=req.has_header('Transfer-encoding'))
       1351             except OSError as err: # timeout error
    -> 1352                 raise URLError(err)
       1353             r = h.getresponse()
       1354         except:
    
    URLError: <urlopen error timed out>

我该如何解决这个错误?

标签: urlsoapsuds

解决方案


推荐阅读