Skip to content

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

@neuroid

Description

@neuroid

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions