AndreaGemignaniFischer Posted February 16, 2011 Share Posted February 16, 2011 Hi you all! I have the VAT Intracom Add-on since november 2010 running on our shop, successfully, and for a few days it shows a blank page when trying to connect to the http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl. I get exactly an error on that when I check the LOG files. :-( Does someone have an idea why? Thanx a lot Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2011 Share Posted February 17, 2011 Hi you all! I have the VAT Intracom Add-on since november 2010 running on our shop, successfully, and for a few days it shows a blank page when trying to connect to the http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl. I get exactly an error on that when I check the LOG files. :-( Does someone have an idea why? Thanx a lot Well, if you go to that URL you see that this file does NOT longer exist! The new URL that is listed on the ec.europa.eu website says http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl instead now, so it's worth using that one now! (simply without the /services folder in the path). Hope that helps and thanks for posting this Best Samir Quote Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2011 Share Posted February 17, 2011 Just for completeness, that's how your function should look like now: function tep_verif_tva($vat_number) { $countryCode = substr($vat_number, 0, 2); $vatNumber = substr($vat_number, 2); $vatcheckurl = "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"; $client = new SoapClient($vatcheckurl); $params = array('countryCode' => $countryCode, 'vatNumber' => $vatNumber); try {$result = $client->checkVat($params);} catch (SoapFault $e){ return 'no_verif'; } if ( !$result->valid ) { return 'false'; } else { return 'true'; } return false; } Quote Link to comment Share on other sites More sharing options...
AndreaGemignaniFischer Posted February 18, 2011 Author Share Posted February 18, 2011 Thanx for the quick answer, it was all I needed! :rolleyes: Just wondering, when they change this again, how do I find out before it happens, that I can adjust my software to it, before loosing some customers??? Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2011 Share Posted February 18, 2011 Thanx for the quick answer, it was all I needed! :rolleyes: Just wondering, when they change this again, how do I find out before it happens, that I can adjust my software to it, before loosing some customers??? Hi, no I don't think you can now for sure but the last time they changed it, this new address was on their website a month before they removed the old address page, so the only way is to regularly check (maybe once a month, that's what I'll do) their website if the url changed: http://ec.europa.eu/taxation_customs/vies/faqvies.do#item16 (number 16) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.