Hi.
On 28.11.2013. 2:22, Tobias Ramos Rocha wrote:
Hello people,
i´m receiving data from a webservice and trying pass data to python
objects. Logging says that suds succeeds in receive the response from
server.
But when i try to loop the response python raises and unicode error.
here is the part where is the problem
.
.
.
response = client.service.SearchHotel(SearchHotelRequest)
hoteis = response.diffgram.SearchHotelResult[1]
for hotel in hoteis:
hotel Error in formatting: 'ascii' codec can't encode character
u'\xca'
in position 2: ordinal not in range(128)
Is there another way to extract data from response ?
If you send us the exact WSDL and the exact HTTP response to your
query, someone can take a look.
Hope this helps.
Best regards,
Jurko Gospodnetić