suds并未将授权标头添加到请求中,因此我手动进行了设置:
import base64# pre excluded for brevitybase64string = base64.enprestring('%s:%s' % (username, password)).replace('n', '')authenticationHeader = { "SOAPAction" : "ActionName", "Authorization" : "Basic %s" % base64string}client = Client(url=wsdl_url, headers=authenticationHeader)


