47function checkVATGR($username, $password, $AFMcalledby, $AFMcalledfor)
 
   74  $client = 
new SoapClient(
"https://www1.gsis.gr/webtax2/wsgsis/RgWsPublic/RgWsPublicPort?WSDL", array(
'trace' => 
true));
 
   76  $authHeader->UsernameToken = 
new stdClass();
 
   77  $authHeader->UsernameToken->Username = 
"$username";
 
   78  $authHeader->UsernameToken->Password = 
"$password";
 
   79  $Headers[] = 
new SoapHeader(
'https://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 
'Security', $authHeader, 
true);
 
   80  $client->__setSoapHeaders($Headers);
 
   81  $result = $client->rgWsPublicAfmMethod(
 
   83      'afmCalledBy' => 
"$AFMcalledby",
 
   84      'afmCalledFor' => 
"$AFMcalledfor",
 
 
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
 
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.