You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In wsdl.py when using the method Service.setLocation() to override a wrong location in the wsdl it stores the raw string. (line 860: m.location = url)
However the method SoapClient.location in client.py uses self.method.location.decode('utf-8')
This is compatible with the Port.init which sets the self.location with .encode('utf-8')
So when trying to use the service after using setLocation() the string fails to decode with the error in the title.
I believe the correct fix would be to change Service.setLocation() in wsdl.py at line 860 to use m.location = url.encode('utf-8').
Cheers
James.
The text was updated successfully, but these errors were encountered:
hatchjdecho
added a commit
to hatchjdecho/suds-py3
that referenced
this issue
Nov 4, 2019
In wsdl.py when using the method Service.setLocation() to override a wrong location in the wsdl it stores the raw string. (line 860: m.location = url)
However the method SoapClient.location in client.py uses self.method.location.decode('utf-8')
This is compatible with the Port.init which sets the self.location with .encode('utf-8')
So when trying to use the service after using setLocation() the string fails to decode with the error in the title.
I believe the correct fix would be to change Service.setLocation() in wsdl.py at line 860 to use m.location = url.encode('utf-8').
Cheers
James.
The text was updated successfully, but these errors were encountered: