Boolean return values not working correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ladon |
Fix Committed
|
High
|
jsgaarde |
Bug Description
I create a simple ladon web service that presents a class with a function that returns a bool value. The class and function are below:
=======
from ladon.ladonizer import ladonize
class Test(object):
@ladonize(
def Test(self):
return False
=======
When connecting to the above using suds, the return value is None, rather than the expected False.
When connecting from a C# client, I get an InvalidOperatio
I am running on an Ubuntu 10.04 LTS system which runs python 2.6.5, and am using the version of ladon fetched using easy_install (0.6.3)
I have added logging to the above, and confirmed that the web service is actually being called, and I have verified that it interprets inbound parameters such as Boolean values correctly. The problem seems to be in the encoding outbound. What can I do to fix this?
Hi Thomas.
Problem fixed by lower-casing False/True values in SOAP responses.
Best Regards
Jakob Simon-Gaarde