Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling SoapClient with the default build_response results in an error #12

Open
neuroid opened this issue Mar 22, 2016 · 0 comments
Open

Comments

@neuroid
Copy link

neuroid commented Mar 22, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant