Skip to content

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 thus closes #11147 (closed).

If you want to check:

Edited by Hartmut Goebel

Merge request reports