[Soap-Python] UnicodeDecode error while passing parameters withfrench letters
Burak Arslan
burak.arslan at arskom.com.tr
Fri Apr 13 16:17:36 CEST 2012
bonjour thomas,
you did not send the full stack dump you're getting, but i suspect
that's a suds error and not a soaplib/rpclib one.
https://github.com/plq/rpclib/commit/16e1e7c26ab52840ad63e4d590b39fd98af39745
and this works:
===================
#encoding: utf8
from suds.client import Client
wsdl = Client('http://localhost:7789/?wsdl')
print wsdl.service.say_hello(u'Jérôme', 5)
===================
Note the unicode string literal.
Best,
Burak
On 04/13/12 16:37, Thomas AYIH-AKAKPO wrote:
> Le 13/04/2012 12:26, azurIt a écrit :
>> rpclib is a new version of soaplib (it was renamed), soaplib is
>> already deprecated and NOT maintained. do not use it.
>>
>> azur
>>
>>
>>
>>
>
>
> Oh really? I didn't know soaplib was already deprecated.
>
> Though, I switched to rpclib and used the helloworld_soap example
> (https://github.com/arskom/rpclib/blob/master/examples/helloworld_soap.py)
> .
>
> By importing Unicode, and replacing String by this, it still didn't work.
> I still have to go by:
>
>>>> sys.setdefaultencoding('utf-8')
>
> I am starting to assume that the UTF-8 encoding should be done
> on the client side.
>
> Regards,
>
More information about the Soap
mailing list