Query = new StdClass;
$o->Query->CompanyId = $company;
$o->IncludePhoneticMatches = 'false';
$o->IncludeSuggestions = 'false';
try {
$O = $soap_client->__call('AdvancedSearch', array($o));
} catch (SoapFault $f) {
giantErreurSoap($soap_client, $f);
}
$soap_client2 = getClient($pays, 'credit-data');
$o = new StdClass;
$o->CompanyId = $company;
try {
$O2 = $soap_client2->__call('RetrieveOptions', array($o));
} catch (SoapFault $f) {
giantErreurSoap($soap_client2, $f);
}
// --------------------------------------------------------------------------- //
// afficheChamp
// --------------------------------------------------------------------------- //
function afficheChamp(&$obj, $champ)
{
if (isset($obj->$champ) == false) {
return;
}
print '
';
print ' | ';
print ''.$champ.' | ';
if (is_object($obj->$champ) == true) {
$texte = '';
foreach ($obj->$champ as $c) {
$texte .= $c.' ';
}
print ''.$texte.' | ';
} else {
print ''.$obj->$champ.' | ';
}
print '
';
}
// --------------------------------------------------------------------------- //
// Affichage identite simplifiee
// --------------------------------------------------------------------------- //
?>
IDENTITÉ INTERNATIONALE DE L'ENTREPRISE
|
Fiche identité simplifiée
|
Accès à la fiche identité approfondie :
InvestigationOptions->InvestigationOption) == true) {
print 'Commandes de rapport :
';
print '';
foreach ($O2->InvestigationOptions->InvestigationOption as $op) {
foreach ($op->ServiceLevels->ServiceLevel as $lv) {
print '';
print '';
print $op->DataSetType->_;
print ' | ';
print '';
print $lv->Name.' '.$lv->Duration.' '.$lv->DurationMetric.' : ';
print ' | ';
print '';
foreach ($op->LanguageCodes->LanguageCode as $lang) {
print ''.$lang.' ';
}
print ' | ';
print ' ';
}
}
print ' ';
print ' ';
}
print 'Rapports immediats :
';
print '';
foreach ($O2->DataSetOptions->DataSetOption as $op) {
print '';
print '';
print $op->DataSetType->_.' : ';
print ' | ';
print '';
foreach ($op->LanguageCodes->LanguageCode as $lang) {
print ''.$lang.' ';
}
print ' | ';
print ' ';
}
print ' ';
?>
|
|
Raison sociale et coordonnées :
Results->Company) == true) {
if (is_array($O->Results->Company) == true) {
$c = $O->Results->Company[0];
} else {
$c = $O->Results->Company;
}
afficheChamp($c, 'RegisteredName');
afficheChamp($c, 'Building');
afficheChamp($c, 'Street');
afficheChamp($c, 'HouseNumber');
afficheChamp($c, 'HouseNumberAdd');
afficheChamp($c, 'City');
afficheChamp($c, 'Postcode');
afficheChamp($c, 'State');
afficheChamp($c, 'Country');
afficheChamp($c, 'EntireAddress');
afficheChamp($c, 'VatNumber');
afficheChamp($c, 'CompanyRegisterNumber');
afficheChamp($c, 'CompanyWebSite');
afficheChamp($c, 'CompanyEmail');
afficheChamp($c, 'ParentCompany');
afficheChamp($c, 'LegalForm');
afficheChamp($c, 'NaceCodes');
afficheChamp($c, 'PreviousRegisteredName');
afficheChamp($c, 'TelephoneNumbers');
afficheChamp($c, 'AddressType');
}
?>