Error when contacting the VAT Number verification service: org.apache.axis2.databinding.ADBException: Unexpected subelement checkVat
What does it mean and how we could fix it?
Error when contacting the VAT Number verification service: org.apache.axis2.databinding.ADBException: Unexpected subelement checkVat
What does it mean and how we could fix it?
Comments
Comment #1
wimh commentedCan you check what SOAP library you're using? (see Site configuration > Soap client > Configure). The VAT service only seems to work with nuSOAP, so if you're now using the PHP extension please try it with nuSOAP instead.
Comment #2
webflo commentedThx wimh. I confirm this, works only with nuSOAP.
Comment #3
grub3 commentednuSOAP is installed in /sites/all/libraries/nusoap/
changelog class.soapclient.php class.soap_parser.php class.soap_transport_http.php class.wsdlcache.php class.xmlschema.php nusoap.phpclass.nusoap_base.php class.soap_fault.php class.soap_server.php class.soap_val.php class.wsdl.php nusoapmime.php/
It does not work for me ...
Comment #4
grub3 commentedMy message is:
Ubercart VAT Number VAT validation not functional
VAT Number validation requires the SOAP Client module to use the nuSOAP library, you can configure this here.
Soap is configured with nuSOAP library, so I don't understand what is going on.
Comment #5
grub3 commentedTesting the code, I found that I had to force nuSOP:
global $soapclient_LIBRARY;
$soapclient_LIBRARY='nuSOAP';
nuSOAP works, it is $soapclient_LIBRARY which is not well detected.
Comment #6
grub3 commentedThe error is still there.
The Soap path needs to be forced...
Comment #7
wimh commentedCan you post a patch that makes it work for you?
Comment #8
grub3 commentedThis is not a patch, just a hack:
uc_vat_number.module
line 34:
Comment #9
mandreato commentedSame issue here.
It seems that SOAP Client module sets a global variable $_soapclient_LIBRARY (pay attention to the underscore after the dollar). whilst VAT number module uses $soapclient_LIBRARY (without underscore).
Comment #10
wimh commented@mandreato I can't find any reference to
$_soapclient_LIBRARYin SOAP Client 6.x-1.0-beta2. What version are you using?Comment #11
mandreato commentedsoapclient 6.x-1.x-dev
BTW: soapclient module is no more required in uc_vat_number 6.x-2.x-dev (it is not asked as dependency)
Comment #12
jvieille commentedThe dependency with SOAP Client seems back in 6.x-1.x-dev.
I have exactly the problem mentioned in #4, a nasty warning in the status page
Comment #13
jvieille commentedApparently, the error mentioned in #9 is still there
In uc_vat_number.install, $soapclient_LIBRARY must be replaced by $_soapclient_LIBRARY
This howver does not solve the issue.
Thanks for help
Comment #14
jvieille commentedActually, the global is not set in the module.
I modified this way to get rid of the status error:
Comment #15
roball commentedUbercart VAT Number 6.x-3.x-dev (2012-Apr-19) actually works fine with the official latest release of the SOAP Client module for D6, which is still 6.x-1.0-beta2. It uses
$soapclient_LIBRARYwhich is exactly what this module uses, so there is no bug.Thus this issue is more a feature request to support the current SOAP Client 6.x-1.x-dev snapshot, which is not very wise IMO because the variable naming the current dev snapshot is using could change until the next release. Using
$_soapclient_LIBRARYseems to be a mistake anyway.Comment #16
mustanggb commentedSOAP Client 6.x-1.0-beta2 no longer works on PHP 5.5, but dev does (https://www.drupal.org/node/1276294) so allowing the use of dev (as well as beta2) would be great.