Python SOAP client with Zeep - authentication

前端 未结 3 1306
臣服心动
臣服心动 2020-12-28 10:58

I am trying to use Zeep to implement a SOAP client, as it seems the only maintained library at the moment:

  • ZSI looked very good but its latest
3条回答
  •  梦毁少年i
    2020-12-28 11:29

    In my case the API I was working with required WS-Security (WSSE) rather than HTTP.

    from zeep import Client
    from zeep.wsse.username import UsernameToken
    
    client = Client(, wsse=UsernameToken(, )
    

提交回复
热议问题