Форум сайта python.su
Всем привет! У меня вопрос по suds
class SignerPlugin(MessagePlugin): def __init__(self, keyfile, keytype=None, pwd=None, pwdCallback=None, pwdCallbackCtx=None): ............................... def sending(self, context): .............................. context.envelope = self.get_signature(etree.tostring(env)) def open_soap(): client = suds.client.Client(config.CONFIG['host_service']['URL_service'], plugins=[SignerPlugin(config.CONFIG['sert']['path'])]) return client
Офлайн