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

#   Problem checking online VAT

##

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

Less More

- Posts: 41
- Thank you received: 0
-
-

14 years 2 months ago [\#65140](#65140) by [bcnx](/forum/user/7761-bcnx "View bcnx's Profile")  *[Problem checking online VAT](/forum/2-general-talk-about-hikashop/65140-problem-checking-online-vat#65140 "Hi, when enabling the online check for VAT numbers I get this:  At first I thought this might be a problem with loading the SOAP extension, but this is successfully loaded following phpinfo(). Then I thought it was the SOAP service, but this seems to work on my laptop. Then I tried another SOAP service on my webserver and this worked.  So it seems to be a combination Centos 6.2 (my distro) and the European VAT checking service.  I realize this is not strictly a Hikashop problem defect, but would there be any way to work around this? By using the PEAR SOAP version for instance?  Thank you,  BC")* was created by *[bcnx](/forum/user/7761-bcnx "View bcnx's Profile")*

Hi,
when enabling the online check for VAT numbers I get this:
Code:

SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl' : failed to load external entity "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl" in /var/www/html/wwwdafraeu/administrator/components/com_hikashop/helpers/vat.php: 137 Stack trace: #0 /var/www/html/wwwdafraeu/administrator/components/com_hikashop/helpers/vat.php( 137): SoapClient-&gt;SoapClient('http://ec.europ...') #1 /var/www/html/wwwdafraeu/administrator/components/com_hikashop/helpers/vat.php( 44): hikashopVatHelper-&gt;onlineCheck('BE0817.401.875 ') #2 /var/www/html/wwwdafraeu/administrator/components/com_hikashop/classes/address. php(219): hikashopVatHelper-&gt;isValid(Object(stdClass)) #3 /var/www/html/wwwdafraeu/administrator/components/com_hikashop/classes/address. php(142): hikashopAddressClass-&gt;_checkVat(Object(stdClass)) #4 /var/www/html/wwwdafraeu/administrator/components/com_hikashop/classes/user.php( 563): hikashopAddressClass-&gt;save(Object(stdClass)) #5 /var/www/html/wwwdafraeu/components/com_hikashop/controllers/user.php(20): hikashopUserClass-&gt;register(Object(userController), 'user') #6 /var/www/html/wwwdafraeu/libraries/joomla/application/component/controller.php( 754): userController-&gt;register() #7 /var/www/html/wwwdafraeu/components/com_hikashop/hikashop.php(54): JController-&gt;execute('register') #8 /var/www/html/wwwdafraeu/libraries/joomla/application/component/helper.php(388): require_once('/var/www/html/w...') #9 /var/www/html/wwwdafraeu/libraries/joomla/application/component/helper.php(357): JComponentHelper::executeComponent('/var/www/html/w...') #10 /var/www/html/wwwdafraeu/includes/application.php(198): JComponentHelper::renderComponent('com_hikashop') #11 /var/www/html/wwwdafraeu/index.php(42): JSite-&gt;dispatch() #12 {main}

At first I thought this might be a problem with loading the SOAP extension, but this is successfully loaded following phpinfo().
Then I thought it was the SOAP service, but this seems to work on my laptop. Then I tried another SOAP service on my webserver and this worked.

So it seems to be a combination Centos 6.2 (my distro) and the European VAT checking service.

I realize this is not strictly a Hikashop problem defect, but would there be any way to work around this? By using the PEAR SOAP version for instance?

Thank you,

BC

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY1MTQwLXByb2JsZW0tY2hlY2tpbmctb25saW5lLXZhdD90bXBsPW1hcmtkb3du) 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: 86559
- Thank you received: 14306
-
-

14 years 2 months ago [\#65271](#65271) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Problem checking online VAT](/forum/2-general-talk-about-hikashop/65140-problem-checking-online-vat#65271 "Hi, when enabling the online check for VAT numbers I get this:  At first I thought this might be a problem with loading the SOAP extension, but this is successfully loaded following phpinfo(). Then I thought it was the SOAP service, but this seems to work on my laptop. Then I tried another SOAP service on my webserver and this worked.  So it seems to be a combination Centos 6.2 (my distro) and the European VAT checking service.  I realize this is not strictly a Hikashop problem defect, but would there be any way to work around this? By using the PEAR SOAP version for instance?  Thank you,  BC")*

Hi,

It could potentially be a temporary issue with the European VAT checking service. We found out that they often had downtimes and we had to disable it on our website and only use the regex check ![:/](/irritated.gif ":/")
So you should try if it is still not working.

If that's the case, an easy workaround is to download manually the WSDL file [ ec.europa.eu/taxation\_customs/vies/checkVatService.wsdl](http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl) to your website and change the URL in administrator/components/com_hikashop/helpers/vat.php so that it use your WSDL file instead of the European VAT checking service one.

Now it might still not be able to connect to the service to process the VAT number but at least it won't have a problem downloading the WDSL file which is a prerequisite.

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

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

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

Less More

- Posts: 41
- Thank you received: 0
-
-

14 years 2 months ago [\#65277](#65277) by [bcnx](/forum/user/7761-bcnx "View bcnx's Profile")  Replied by *[bcnx](/forum/user/7761-bcnx "View bcnx's Profile")* on topic *[Re: Problem checking online VAT](/forum/2-general-talk-about-hikashop/65140-problem-checking-online-vat#65277 "Hi, when enabling the online check for VAT numbers I get this:  At first I thought this might be a problem with loading the SOAP extension, but this is successfully loaded following phpinfo(). Then I thought it was the SOAP service, but this seems to work on my laptop. Then I tried another SOAP service on my webserver and this worked.  So it seems to be a combination Centos 6.2 (my distro) and the European VAT checking service.  I realize this is not strictly a Hikashop problem defect, but would there be any way to work around this? By using the PEAR SOAP version for instance?  Thank you,  BC")*

Well, the check works on another machine, so I guess it is not related to downtimes. I suspect the SOAP module on Centos 6.2 has a bug somewhere.
Downloading the WDSL with wget works, accessing another WDSL service works also.
I guess we'll have to settle for regex, which by itself is a nice feature too!

Cheers,

BC

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzY1MTQwLXByb2JsZW0tY2hlY2tpbmctb25saW5lLXZhdD90bXBsPW1hcmtkb3du) 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.064 seconds

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