kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Python 3.2 Client.py invalid Syntax #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
from pysimplesoap.client import SoapClient
client = 
SoapClient(wsdl="http://webserviceAddress/authenticator/authenticationservice.as
mx?wdsl", trace=False)
response = client.AddIntegers(userName="x", passWord="y")
result = response['ResponseText']
print ("result")

Traceback (most recent call last):
  File "C:/Program Files/ninja-ide-2.0-beta3-exe/webservice.py", line 1, in <module>
    from pysimplesoap.client import SoapClient
  File "C:\Python32\lib\site-packages\pysimplesoap\client.py", line 46
    return u"%s: %s" % (self.faultcode, self.faultstring)
                   ^
SyntaxError: invalid syntax

I have the latest version from the repository. 

Original issue reported on code.google.com by Eric.Cat...@gmail.com on 31 Jan 2012 at 6:07

GoogleCodeExporter commented 8 years ago
I think you have to use 2to3 to convert this library to python 3

Some syntax is for python 2.x currently

Original comment by reingart@gmail.com on 2 Feb 2012 at 2:08

GoogleCodeExporter commented 8 years ago

Original comment by oczk...@gmail.com on 17 Aug 2013 at 7:57