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":
"[email protected]", "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"

<snip>

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
_______________________________________________
Soap mailing list
[email protected]
https://mail.python.org/mailman/listinfo/soap

Reply via email to