Hi,
Consider the following code:
from lxml import etree
from rinse.client import SoapClient
from rinse.message import SoapMessage
message = SoapMessage(etree.Element('test'))
client = SoapClient('https://example.com')
print(client(message, 'action'))
The above results in the following error:
[snip]
File "/env/local/lib/python2.7/site-packages/rinse/client.py", line 44, in __call__
return build_response(resp)
TypeError: __new__() takes exactly 3 arguments (2 given)
The RinseResponse expects two arguments, however the SoapClient.__call__ only provides one. What is the purpose of RinseResponse? Perhaps it would be better to simply default build_response to Response?
BTW, the RinseResponse class is defined in both util.py and response.py.
Hi,
Consider the following code:
The above results in the following error:
The
RinseResponseexpects two arguments, however theSoapClient.__call__only provides one. What is the purpose ofRinseResponse? Perhaps it would be better to simply defaultbuild_responsetoResponse?BTW, the
RinseResponseclass is defined in bothutil.pyandresponse.py.