$configPath = substr(__DIR__, 0, strpos(__DIR__, "public_html")) . "/config.php"; include_once($configPath); if (!empty($_SESSION["ente"])) { include($root . "/layout/top.php"); ?>
{
"token": "--TOKEN ASSEGNATO--"
"lotti": [
{
"cig": "AAABBBCCC00",
"liquidato": 10000
}
]
}
Struttura JSON risposta
[
"success"=>true,
"error" => false,
"error_code" => 200,
"message" => [
]
]
$parameters = array('token' => '{token}', 'lotti' => array(array('cig'=>'AAABBBCCC00',liquidato=>1000)));
$client = new SoapClient('= $_SESSION["config"]["link_sito"] ?>/api-legacy/advanced/service.php?WSDL',array('cache_wsdl' => WSDL_CACHE_NONE));
$response = $client->updateLiquidato($parameters);