[Skip to main content](#vessel-content)

#   VAT check not always working / webservice error

##

- **[gside](/forum/user/7916-gside "View gside's Profile")**
- [![gside's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7916-gside "View gside's Profile") Topic Author
- [ Offline](/forum/user/7916-gside)

Less More

- Posts: 5
- Thank you received: 1
-
-

14 years 4 months ago -  14 years 4 months ago [\#54662](#54662) by [gside](/forum/user/7916-gside "View gside's Profile")  *[VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#54662 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")* was created by *[gside](/forum/user/7916-gside "View gside's Profile")*

Hi,
I selected the VAT online verification to check the user provided VAT number.
During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:

1) No message, it simply stays on the same page

2) A Soap error fetching http header:
SoapFault exception: [HTTP] Error Fetching http headers in C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php:138 Stack trace: #0 [internal function]: SoapClient-&gt;__doRequest('__call('checkVat', Array) #2 C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')

3) A Soap error while parsing the WSDL file:
SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from '[ ec.europa.eu/taxation\_customs/vies/checkVatService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl)' : failed to load external entity "[ ec.europa.eu/taxation\_customs/vies/checkVatService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl)" in C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php:137 Stack trace: #0 C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php(137): SoapClient-&gt;SoapClient('[ ec.europ](http://ec.europ)...') #1 C:\inetpub\wwwroot\cms\administrator\components\com_hikashop\helpers\vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')

The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated.
I think about a timeout error maybe?

Anyway, how can I bypass this error and check the provided VAT number?

Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)

Thanks for any advice,
g.

Last edit: 14 years 4 months ago by [gside](/forum/user/7916-gside "View gside's Profile"). Reason: added hikashop and joomla version

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#54665](#54665) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#54665 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

Hi,

The VIES (the European agency in charge of VAT numbers checking) website is down at the moment. The only solution is to deactivate the online check for now until they fix their problems.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[gside](/forum/user/7916-gside "View gside's Profile")**
- [![gside's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7916-gside "View gside's Profile") Topic Author
- [ Offline](/forum/user/7916-gside)

Less More

- Posts: 5
- Thank you received: 1
-
-

14 years 4 months ago [\#54671](#54671) by [gside](/forum/user/7916-gside "View gside's Profile")  Replied by *[gside](/forum/user/7916-gside "View gside's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#54671 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

Do you mean, the webservice is down at the moment?
Because the website is online and fully working here: [ ec.europa.eu/taxation\_customs/vies/vatRequest.html](http://ec.europa.eu/taxation_customs/vies/vatRequest.html)

Also, does it means that if the VIES website is down, it will stop my shop with a technical error message?

Is there any way to hide this error and put on hold the order until manual verification is done?

Thanks,
g.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#54673](#54673) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#54673 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

The website is online but not the webservice: [ ec.europa.eu/taxation\_customs/vies/checkVatService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl)
Nor all the links related to it in the FAQ of the VIES:
[ ec.europa.eu/taxation\_customs/vies/faq.html#item\_16](http://ec.europa.eu/taxation_customs/vies/faq.html#item_16)

That's indeed the case. If the VIES website is down, then the VAT numbers cannot be checked. So far, the webservice has been quite reliable so there was no need to have such fallback system.
You can disable the online check and only rely on the regex check and possibly manually verify the VAT numbers before shipping your goods in the mean time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")**
- [![christinapsarrou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34738.jpg)](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")
- [ Offline](/forum/user/34738-christinapsarrou)

Less More

- Posts: 11
- Thank you received: 1
-

11 years 11 months ago [\#180687](#180687) by [christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")  Replied by *[christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#180687 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

Sorry for bringing this back after so long, but need to ask some details.

In the case the system does not work, checking at the vies site or via a soap operation we get errors, by the checkout, the page takes some time to load but then it goes to next page without adding the VAT (seems like the process was held correctly).
But as the system these days for example, for Germany, is not working, did Hikashop actually tested that correctly or accidentally removed the VAT?
I am sorry if I miss something there, but we would prefer that in such cases, of system failure, to add VAT and then refund it if needed, than not charge it at all..
If the Hikashop can not access the service, can it give an error? What happens in that case? We use the latest version..

Thanks a lot in advance for any help!!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

11 years 11 months ago [\#180842](#180842) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#180842 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

Hi,

With the current version, when the VIES system is down, HikaShop skips the check with the VIES and only the regex check is performed.
If you want to change that behavior, you can change the lines: Code:

$this-&gt;message = $e-&gt;__toString(); return true;

to: Code:

$this-&gt;message = $e-&gt;__toString(); $result = false;

in the file administrator/components/com_hikashop/helpers/vat.php
The VAT check system will thus refuse the VAT number if the VIES system is down and the user will have to either remove his VAT number to be able to proceed (and thus pay the VAT) or not checkout.

The following user(s) said Thank You: [christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")**
- [![christinapsarrou's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34738.jpg)](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")
- [ Offline](/forum/user/34738-christinapsarrou)

Less More

- Posts: 11
- Thank you received: 1
-

11 years 11 months ago [\#180891](#180891) by [christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")  Replied by *[christinapsarrou](/forum/user/34738-christinapsarrou "View christinapsarrou's Profile")* on topic *[Re: VAT check not always working / webservice error](/forum/3-bug-report/54662-vat-check-not-always-working-webservice-error#180891 "Hi, I selected the VAT online verification to check the user provided VAT number. During the checkout, when exiting the payment step, the VAT check fails with one of the error messages:  1) No message, it simply stays on the same page  2) A Soap error fetching http header: SoapFault exception: &#91;HTTP&#93; Error Fetching http headers in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:138 Stack trace: #0 &#91;internal function&#93;: SoapClient-&gt;&#95;&#95;doRequest('&#95;&#95;call('checkVat', Array) #2 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(138): SoapClient-&gt;checkVat(Array) #3 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  3) A Soap error while parsing the WSDL file: SoapFault exception: &#91;WSDL&#93; SOAP-ERROR: Parsing WSDL: Couldn't load from '  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl ' : failed to load external entity &quot;  ec.europa.eu/taxation&#95;customs/vies/checkVatService.wsdl &quot; in C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php:137 Stack trace: #0 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(137): SoapClient-&gt;SoapClient('  ec.europ ...') #1 C:&#92;inetpub&#92;wwwroot&#92;cms&#92;administrator&#92;components&#92;com&#95;hikashop&#92;helpers&#92;vat.php(48): hikashopVatHelper-&gt;onlineCheck('FRXXXXXXXXXXX')  The complete stack trace report is attached. I have masked the VAT number, but the VAT number is correct and is sometimes validated. I think about a timeout error maybe?  Anyway, how can I bypass this error and check the provided VAT number?  Using Hikashop essential 1.5.8 and joomla 2.5.4 on dev env. (localhost)  Thanks for any advice, g.")*

Thanks a lot for the solution ![:)](/media/kunena/emoticons/3.png ":)") In that rare cases of Vies being down we prefer to charge the vat and then refund customer than let them purchase without it.. Thanks a lot again, we will change the code correspondingly ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDY2Mi12YXQtY2hlY2stbm90LWFsd2F5cy13b3JraW5nLXdlYnNlcnZpY2UtZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
