Fix handling of SOAP errors and add missing error-codes from EU Check Vies service
When introducing CheckVIES wizard in 2009, the code was based on module 'vatnumbers' which returned an XML tree where Tryton needed to pick the 'faultstring' from.
Newer code uses 'stdnum', which uses either 'zeep', 'suds' or 'pysimplesoap' as backend, all of which provide the faultstring in the exception arguments. Unfortunately 'suds' puts it into 'args[1]', thus a loop is required.
Two codes have been missing according to the comment in the official WSDL https://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl thus closes #11147 (closed).
If you want to check:
- zeep:
- sudos:
- exception: https://github.com/suds-community/suds/blob/master/suds/__init__.py#L59
- raising:
- pysimplesoap
Edited by Hartmut Goebel