[Soap-Python] problem with non-ascii charts in SOAP call
Gyuris Szabolcs
szimszon at oregpreshaz.eu
Thu Nov 1 20:20:01 CET 2012
Hello,
I wonder if somebody could help me.
*What steps will reproduce the problem?*
1. try something like: res=client.RegisterShipment(request={u'ShipmentId':u'kettő'})
*What is the expected output? What do you see instead?*
res=client.RegisterShipment(request={u'ShipmentId':u'kettő'})
File "/home/szimszon/fejlesztes/sajat/web2py/gluon/contrib/pysimplesoap/client.py", line 147, in <lambda>
return lambda *args, **kwargs: self.wsdl_call(attr,*args,**kwargs)
File "/home/szimszon/fejlesztes/sajat/web2py/gluon/contrib/pysimplesoap/client.py", line 326, in wsdl_call
response = self.call(method, *params)
File "/home/szimszon/fejlesztes/sajat/web2py/gluon/contrib/pysimplesoap/client.py", line 211, in call
self.xml_response = self.send(method, self.xml_request)
File "/home/szimszon/fejlesztes/sajat/web2py/gluon/contrib/pysimplesoap/client.py", line 245, in send
location, "POST", body=xml, headers=headers)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1444, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1196, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python2.7/dist-packages/httplib2/__init__.py", line 1133, in _conn_request
conn.request(method, request_uri, body, headers)
File "/usr/lib/python2.7/httplib.py", line 958, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 992, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 954, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 812, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 348: ordinal not in range(128)
http://code.google.com/p/pysimplesoap/issues/detail?id=83
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20121101/5cf7a844/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4447 bytes
Desc: S/MIME kriptogr??fiai al????r??s
URL: <http://mail.python.org/pipermail/soap/attachments/20121101/5cf7a844/attachment-0001.bin>
More information about the Soap
mailing list