stepank/pyws — Issue #16: pyws crashes if SOAP request body does not match the required schema
Author: stepank
Created: 2012-03-08 19:02:00+00:00
State: open

If I have the test server (`pyws/examples/_wsgi/__init__.py`) running and fire the following request:

10

20

30

I just get:

A server error occurred. Please contact the administrator.

The following message can be found in logs:

ERROR:pyws:Traceback (most recent call last):
File "/home/stepank/projects/pyws/src/pyws/server.py", line 174, in process_request
args = protocol.get_arguments(request, function.args)
File "/home/stepank/projects/pyws/src/pyws/protocols/soap/__init__.py", line 216, in get_arguments
return xml2obj(self.parse_request(request).func_xml, arguments) or {}
File "/home/stepank/projects/pyws/src/pyws/protocols/soap/__init__.py", line 44, in xml2obj
obj = xml2obj(child, schema[name])
KeyError: 'value'