ConsumerId = '006';
$gServiceHeader->Provider = new StdClass;
$gServiceHeader->Provider->ProviderId = $provider;
$gServiceHeader->Provider->CountryCode = $country;
$gServiceHeader->TimeStamp = date('Y-m-d\TH:i:s');
$gServiceHeader->TestIndication = true;
$soap_header =
new SoapHeader('http://services.giant-net.com/'.
'schema/services/shared/1.0',
'ServiceHeader', $gServiceHeader);
$soap_client =
new SoapClient('https://giant-tst.graydon.nl/search/v1?wsdl',
array('soap_version' => SOAP_1_1,
'login' => '006',
'password' => 'ClaudeMonet',
'trace' => true));
$soap_client->__setSoapHeaders($soap_header);
$o = new StdClass;
$o->Query = new StdClass;
$o->Query->CompanyId = $company;
$o->IncludePhoneticMatches = 'false';
$o->IncludeSuggestions = 'false';
try {
$O = $soap_client->__call('AdvancedSearch', array($o));
} catch (SoapFault $f) {
print_r($f);
print '
';
print 'Requete: '.
htmlspecialchars($soap_client->__getLastRequest());
print '
';
print 'Reponse: '.
htmlspecialchars($soap_client->__getLastResponse());
}
$soap_client2 =
new SoapClient('https://giant-tst.graydon.nl/credit-data/v1?wsdl',
array('soap_version' => SOAP_1_1,
'login' => '006',
'password' => 'ClaudeMonet',
'trace' => true));
$soap_client2->__setSoapHeaders($soap_header);
$o2 = new StdClass;
$o2->CompanyId = $company;
try {
$O2 = $soap_client2->__call('RetrieveOptions', array($o2));
} catch (SoapFault $f) {
print_r($f);
print '
';
print 'Requete: '.
htmlspecialchars($soap_client2->__getLastRequest());
print '
';
print 'Reponse: '.
htmlspecialchars($soap_client2->__getLastResponse());
}
// --------------------------------------------------------------------------- //
// afficheChamp
// --------------------------------------------------------------------------- //
function afficheChamp(&$obj, $champ)
{
if (isset($obj->$champ) == false) {
return;
}
print '
Fiche identité simplifiée |
Accès à la fiche identité approfondie : InvestigationOptions->InvestigationOption) == true) { print 'Commandes de rapport : '; $op = $O2->InvestigationOptions->InvestigationOption; print '
'; } print 'Rapports immediats : '; print '
|
|||||