bigpresh / business-tax-vat-validation Goto Github PK
View Code? Open in Web Editor NEWBusiness::Tax::VAT::Validation - a Perl module to validate EU VAT numbers
License: GNU General Public License v3.0
Business::Tax::VAT::Validation - a Perl module to validate EU VAT numbers
License: GNU General Public License v3.0
Invalid response, please contact the author of this module. env:ServerMS_MAX_CONCURRENT_REQ
Seems as they are throttling access to the service, somehow. Most probably you can't do anything about it, but providing a better error message, but just so you know.
Cheers and thanks for the module!
Since today a call to the VIES URL http://ec.europa.eu/taxation_customs/vies/services/checkVatService results in an attempt to redirect from HTTP to HTTPS. Since this does not work on the API level, it results in an error code 257 with the following message:
Invalid response [302], please contact the author of this module. <HTML><HEAD> <TITLE>Redirect</TITLE> </HEAD> <BODY> <FONT face="Helvetica"> <big><strong></strong></big><BR> </FONT> <blockquote> <TABLE border=0 cellPadding=1 width="80%"> <TR><TD> <FONT face="Helvetica"> <big>Redirect (policy_request_redirect)</big> <BR> <BR> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> Click <a href="https://ec.europa.eu/taxation_customs/vies/services/checkVatService">here</a> if you are not automatically redirected. </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica"> </FONT> </TD></TR> <TR><TD> <FONT face="Helvetica" SIZE=2> <BR> For assistance, contact your network support team. </FONT> </TD></TR> </TABLE> </blockquote> </FONT> </BODY></HTML>
To fix this the Base URL needs to be changed from HTTP to HTTPS.
According to https://ec.europa.eu/taxation_customs/vies/
As of 01/01/2021, the VoW service to validate UK (GB) VAT numbers ceased to exist while a new service to validate VAT numbers of businesses operating under the Protocol on Ireland and Northern Ireland appeared. These VAT numbers are starting with the “XI” prefix, which may be found in the “Member State / Northern Ireland” drop down under the new entry “XI-Northern Ireland”. Moreover, any quote of “Member State” is replaced by “Member State / Northern Ireland” and any quote of “MS” is replaced by “MS / XI”. All traders seeking to validate UK (GB) VAT numbers may address their request to the UK Tax Administration.
It looks like VIES can return a timeout error with a HTTP 200 status.
Kindly reported by Friedrich Gehring at ePages:
thank you for maintaining the module for the VATID validation
Business::Tax::VAT::Validation. While using it with our software
epages, we encountered the following problem: We receive an error
code 257 from your module and the related error message from the VIES
database is as follows:"Invalid response, please contact the author of this module
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">soap:Bodysoap:Faultsoap:ServerTIMEOUT</soap:Fault></soap:Body></soap:Envelope>"
Looks like, if we can't trust VIES to set a non-200 status on error, then we should always look for the faultcode/faultstring elements - should be a fairly simple fix.
Its unclear if this is GPL, GPL-3, or GPL-1+
Vague:
Business-Tax-VAT-Validation/lib/Business/Tax/VAT/Validation.pm
Lines 19 to 22 in 5743ce6
GPL-1?:
Business-Tax-VAT-Validation/lib/Business/Tax/VAT/Validation.pm
Lines 471 to 474 in 5743ce6
GPL-3??:
Business-Tax-VAT-Validation/Makefile.PL
Lines 13 to 15 in 5743ce6
Suggesting GPL-1:
Business-Tax-VAT-Validation/examples/vat.cgi
Lines 11 to 14 in 5743ce6
Business-Tax-VAT-Validation/examples/vat_cli.pl
Lines 11 to 14 in 5743ce6
Obviously, the COPYING file is GPL-3, and it looks like the overwhelming intent was to make it GPL-3 licensed. However, in some places the reference point is slightly ambiguous.
For instance, it's usually stated "Under the GNU Public License version 3", or in other cases "Under the GNU Public License version 3, or at your choice, any newer version", or something like that, to make it less necessary. As-is, I can't tell if the intent is "GPL-3" or "GPL-3+"
Got some reports from our customers that VATID checks were only doing local checks.
cloned the master branch and tested with the example cli script.
$ perl -I ../lib vat_cli.pl FI22486726
Error 257 : Invalid response, please contact the author of this module. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>The given SOAPAction http://www.w3.org/2003/05/soap-envelope does not match an operation.</faultstring></soap:Fault></soap:Body></soap:Envelope>
Tried to find some changelog type thing from EU site but could not find any.
But these two pages point to different wsdl files:
https://ec.europa.eu/taxation_customs/vies/technicalInformation.html
https://ec.europa.eu/taxation_customs/vies/faq.html#item_18
Use JSON::MaybeXS instead of JSON
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.