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,


_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to