From 1aa3409b52bd73473d1a8b30b80872e05faa0336 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Jan 2011 15:01:42 +0000 Subject: [PATCH] Update VAT check --- htdocs/societe/checkvat/checkVatPopup.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/checkvat/checkVatPopup.php b/htdocs/societe/checkvat/checkVatPopup.php index ba47d2d4b4a..3232406474b 100644 --- a/htdocs/societe/checkvat/checkVatPopup.php +++ b/htdocs/societe/checkvat/checkVatPopup.php @@ -29,7 +29,10 @@ require_once(DOL_DOCUMENT_ROOT."/includes/nusoap/lib/nusoap.php"); $langs->load("companies"); +//http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl $WS_DOL_URL='http://ec.europa.eu/taxation_customs/vies/services/checkVatService'; +//$WS_DOL_URL_WSDL=$WS_DOL_URL.'?wsdl'; +$WS_DOL_URL_WSDL='http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl'; $WS_METHOD ='checkVat'; @@ -59,8 +62,8 @@ else "vatNumber" => $vatNumber); // Set the WebService URL - dol_syslog("Create nusoap_client for URL=".$WS_DOL_URL); - $soapclient = new nusoap_client($WS_DOL_URL.'?wsdl',true); + dol_syslog("Create nusoap_client for URL=".$WS_DOL_URL." WSDL=".$WS_DOL_URL_WSDL); + $soapclient = new nusoap_client($WS_DOL_URL_WSDL,true); // Check for an error $err = $soapclient->getError();