我在发送suds请求时遇到问题。在
我只使用以下方法向其他方法发送了一个请求:
from suds.client import Client
client = Client(wsdlurl)
client.service.Login(name, employid)
这返回了正确的响应,因为name和employid是Login的直接子元素。在
但如何使用以下选项发送请求:
^{pr2}$这样做的原因是我可以在num中添加一个动态值
我已经试过了:
return self.client.service.getStuff.stuffSelect.stuffIDs(**{'stuffID': stuff_id, })
但得到这个错误
AttributeError: 'Method' object has no attribute 'stuffSelector'
我假设您使用的是https://bitbucket.org/jurko/suds。了解您的wsdl接口非常重要;suds可以在运行时部分提供:
相关问题 更多 >
编程相关推荐