complex types in input, handled ?
Hi,
I tried to define an operation that take two Complex with :
class Complex(LadonType):
r = float
i = float
def __init__(self, r, i):
self.r = r
self.i = i
def __repr__(self):
return "(%g+%gj)" % (self.r, self.i)
and return the sum.
Using suds to tests I got the stack_trace in the server while running the client test in another terminal :
Traceback (most recent call last):
File "/usr/lib/
output = dispatcher.
File "/usr/lib/
result = self.call_
File "/usr/lib/
args += [arg['type'
TypeError: __init__() got an unexpected keyword argument 'prime_dict'
It may be that suds shows me the exception it got back from the server. Hum, that's when I set
client.
if I don't, I get :
File "suds_tests.py", line 17, in <module>
res_comp = client.
File "/usr/lib/
return client.invoke(args, kwargs)
File "/usr/lib/
result = self.send(soapenv)
File "/usr/lib/
result = self.succeeded(
File "/usr/lib/
reply, result = binding.
File "/usr/lib/
replyroot = sax.parse(
File "/usr/lib/
sax.
File "/usr/lib/
xmlreader.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
raise exception
xml.sax.
Is there a way to tell the server to leave a log of requests and responses ?
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- ladon Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: