mvantellingen / python-zeep

A Python SOAP client
http://docs.python-zeep.org
Other
1.88k stars 586 forks source link

Fix to deserializer if result type does not have a length #1350

Closed holstebroe closed 1 year ago

holstebroe commented 1 year ago

An exception will be thrown if a bool is returned from a SOAP service call. deserialize soap.py will ask for the length of the result body, but it may not be allowed to take len on some result body types. Added check if length is valid and returns the body directly if it is not. I haven't tested with any other types, such as integers.

mvantellingen commented 1 year ago

Thanks!