"可以使用Suds (SOAP Python库) 获取wsdl文件中的部分方法(代表整个API的一部分)吗?"

2024-03-28 14:10:19 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用一些SOAP python库-suds:

https://fedorahosted.org/suds/wiki/Documentation

即使我用了一些改进(插槽)肥皂水-伟大的,但仍然有很多内存使用!!!在

所以我有个问题:

是否可以只下载wsdl的一部分-我只需要两个方法,但整个API非常大:

self.client = Client('https://webapi.allegro.pl/service.php?wsdl', cache=None)

我试着从本地文件(大wsdl的简短版本)中读取:

self.client = Client(url='file:///home/tomek/pythonScript/service.php?wsdl', location='https://webapi.allegro.pl/service.php', cache=None)

但它不起作用:

suds/bindings/binding.py", line 149, in get_reply
    soapenv.promotePrefixes()
AttributeError: 'NoneType' object has no attribute 'promotePrefixes'

请帮帮我!!!在


Tags: httpsselfclientnonecacheserviceallegrosoap