Browse Source

Code comment

Laurent Destailleur 1 year ago
parent
commit
3a0eed1a9b
1 changed files with 24 additions and 0 deletions
  1. 24 0
      htdocs/societe/checkvat/checkVatGr.php

+ 24 - 0
htdocs/societe/checkvat/checkVatGr.php

@@ -46,6 +46,30 @@ echo json_encode($result); // Encode the result as JSON and output
 */
 function checkVATGR($username, $password, $AFMcalledfor, $AFMcalledby = '')
 {
+	/*
+	$WS_DOL_URL_WSDL = "https://www1.gsis.gr/webtax2/wsgsis/RgWsPublic/RgWsPublicPort?WSDL";
+
+	require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
+	$params = getSoapParams();
+	//ini_set('default_socket_timeout', $params['response_timeout']);
+	$soapclient = new nusoap_client($WS_DOL_URL_WSDL, true, $params['proxy_host'], $params['proxy_port'], $params['proxy_login'], $params['proxy_password'], $params['connection_timeout'], $params['response_timeout']);
+
+	$soapclient->soap_defencoding = 'utf-8';
+	$soapclient->xml_encoding = 'utf-8';
+	$soapclient->decode_utf8 = false;
+
+	// Check for an error
+	$err = $soapclient->getError();
+	if ($err) {
+		dol_syslog("Constructor error ".$WS_DOL_URL, LOG_ERR);
+	}
+
+	...
+
+
+	*/
+
+	// TODO Replace this with code using nusoap_client()
 	$client = new SoapClient("https://www1.gsis.gr/webtax2/wsgsis/RgWsPublic/RgWsPublicPort?WSDL", array('trace' => true));
 	$authHeader = new stdClass();
 	$authHeader->UsernameToken = new stdClass();