Python suds with Keystore

53 views
Skip to first unread message

nada...@gmail.com

unread,
Apr 25, 2015, 4:57:34 PM4/25/15
to django...@googlegroups.com
HI All,

I am trying to consume wsdl with suds using keystore i am getting forbiden since suds is not including the keystore in the request:

co = Client('https://10.102.5.81:901/APIService.svc?singleWsdl')

               

        co.options.wsse.keystore = Keystore()

        co.options.wsse.keystore.addKey(RsaPemFilePrivateKey('certificate.pem'), X509PemFileCertificate('cag1.pem'))

        

        response11 =  co.service.Login(clientID=int(202), terminalID='657CBC06-B339-432C-8122-F8DE3DDD15A8', opName='API-0002', password='123456')

        


Reply all
Reply to author
Forward
0 new messages