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";
80 $Headers[] =
new SoapHeader(
'https://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd',
'Security', $authHeader,
true);
81 $client->__setSoapHeaders($Headers);
82 $result = $client->rgWsPublicAfmMethod(
84 'afmCalledBy' =>
"$AFMcalledby",
85 '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.