Closed GoogleCodeExporter closed 8 years ago
First, your example is wrong (it seems to use suds client.service call style
and print = is a syntax error).
The correct example is:
from client import SoapClient
client = SoapClient(wsdl='file:checkVatService.wsdl',trace=True)
vat = 'PT508141184'
response = client.checkVat(countryCode=vat[:2], vatNumber=vat[2:])
print response
print response['address']
The output is the expected:
{'name': u'NDRIVE NAVIGATION SYSTEMS S A', 'countryCode': u'PT', 'vatNumber':
u'508141184', 'valid': True, 'requestDate': datetime.date(2010, 10, 9),
'address': u'ESTR DA CIRCUNVALA\xc7\xc3O N 10381\nPORTO\n4250-151 PORTO'}
ESTR DA CIRCUNVALAÇÃO N 10381
PORTO
4250-151 PORTO
So, I cannot reproduce this issue, maybe there is a python unicode problem in
your evniroment, or this depend on some platform issue.
Can you try this with the last revision from mercurial repository?
And,
Can you post your python version, operating system and console unicode settings?
Original comment by reingart@gmail.com
on 9 Oct 2010 at 4:05
You're right. It must have been something with my console. I've tried it in
another computer and it works just fine (both in tip and in rev 8e831ad8fe1c).
With just looking the backtrace, I would never guess it would be a console
problem. Sorry for the wrongful report. Thanks for your help. Keep up the good
job. :)
Original comment by paulo.k...@gmail.com
on 10 Oct 2010 at 3:11
Original comment by reingart@gmail.com
on 10 Oct 2010 at 7:53
Original issue reported on code.google.com by
paulo.k...@gmail.com
on 27 Sep 2010 at 12:35