From ralienpp at gmail.com Wed Dec 18 11:51:42 2013 From: ralienpp at gmail.com (Alex) Date: Wed, 18 Dec 2013 12:51:42 +0200 Subject: [Soap-Python] Using Spyne and AnyDict Message-ID: Hi everyone, I am having some issues with an attempt to use AnyDict with JsonDocument as an input format, on top of HTTP. This is the body of the request ``` {"GetX509Request": {"C": "Moldova", "emailAddress": "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}} ``` And this is the corresponding server code that is supposed to deal with it ``` @srpc(AnyDict, _returns=String) def GetX509Request(names): print names return "test response" application = Application([PKIService], 'PKIService.http', in_protocol=JsonDocument(validator='soft'), out_protocol=JsonDocument(ignore_wrappers=True) ) ``` For some reason, `names` is None when I am inside GetX509Request. My understanding was that with AnyDict I can pass a dictionary of an arbitrary complexity to Spyne. What is the proper way of passing such a structure? Thank you forward, Alex From burak.arslan at arskom.com.tr Wed Dec 18 12:09:08 2013 From: burak.arslan at arskom.com.tr (Burak Arslan) Date: Wed, 18 Dec 2013 13:09:08 +0200 Subject: [Soap-Python] Using Spyne and AnyDict In-Reply-To: References: Message-ID: <52B18254.3020906@arskom.com.tr> On 12/18/13 12:51, Alex wrote: > This is the body of the request > ``` > {"GetX509Request": {"C": "Moldova", "emailAddress": > "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}} > ``` The request is wrong, missing the names argument. Correct request is: {"GetX509Request": { "names": {"C": "Moldova", "emailAddress": "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}}} Best, Burak From ralienpp at gmail.com Wed Dec 18 12:51:09 2013 From: ralienpp at gmail.com (Alex) Date: Wed, 18 Dec 2013 13:51:09 +0200 Subject: [Soap-Python] Using Spyne and AnyDict In-Reply-To: <52B18254.3020906@arskom.com.tr> References: <52B18254.3020906@arskom.com.tr> Message-ID: Aha, got it. It works, thank you. From ovnicraft at gmail.com Wed Dec 18 22:54:03 2013 From: ovnicraft at gmail.com (Ovnicraft) Date: Wed, 18 Dec 2013 16:54:03 -0500 Subject: [Soap-Python] WSSE with password digest Message-ID: Hi i am working with suds to create clients, so my WS needs password digest not password i want to know i there is any client lib with implementation around WSSE with Password digest Regards, -- Cristian Salamea @ovnicraft -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsuch at zato.io Wed Dec 18 23:10:35 2013 From: dsuch at zato.io (Dariusz Suchojad) Date: Wed, 18 Dec 2013 23:10:35 +0100 Subject: [Soap-Python] WSSE with password digest In-Reply-To: References: Message-ID: <52B21D5B.4000107@zato.io> On 12/18/2013 10:54 PM, Ovnicraft wrote: > Hi i am working with suds to create clients, so my WS needs password digest > not password i want to know i there is any client lib with implementation > around WSSE with Password digest Hello Cristian, I implemented parts of WSSE over here a couple of years ago. https://github.com/dsuch/sec-wall/blob/master/code/src/secwall/wsse.py Please feel free to have a look at it and use in your applications if you find it useful. cheers, -- Dariusz Suchojad https://zato.io ESB, SOA and cloud integrations in Python From victor.varvariuc at gmail.com Wed Dec 18 13:05:46 2013 From: victor.varvariuc at gmail.com (Victor Varvaryuk) Date: Wed, 18 Dec 2013 12:05:46 -0000 Subject: [Soap-Python] Using Spyne and AnyDict In-Reply-To: References: Message-ID: <52B181E4.3030401@gmail.com> I think you should pass: {"GetX509Request": {'names': {"C": "Moldova", "emailAddress": "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}}} or {"GetX509Request": [{"C": "Moldova", "emailAddress": "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}]} Victor On 18.12.2013 14:51, Alex wrote: > {"GetX509Request": {"C": "Moldova", "emailAddress": > "test at example.com", "CN": "Alex", "OU": "Test dept", "O": "Dekart"}}