使用suds SOAP库进行HTTP身份验证的奇怪行为可能是由于多种原因导致的。以下是一些建议和可能的解决方案:
Client
对象的set_options
方法来设置HTTP身份验证凭据。例如:from suds.client import Client
from suds.transport.http import HttpAuthenticated
url = 'http://example.com/soap.asmx?wsdl'
username = 'your_username'
password = 'your_password'
transport = HttpAuthenticated(username=username, password=password)
client = Client(url, transport=transport)
wsse
模块来设置身份验证凭据。推荐的腾讯云相关产品:
产品介绍链接地址:
领取专属 10元无门槛券
手把手带您无忧上云