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 ''; print ' '; print ''.$champ.''; 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 :

'; $op = $O2->InvestigationOptions->InvestigationOption; print ''; foreach ($op->ServiceLevels->ServiceLevel as $lv) { print ''; print ''; print ''; print ''; } print '
'; print $lv->Name.' '.$lv->Duration.' '.$lv->DurationMetric.' : '; print ''; foreach ($op->LanguageCodes->LanguageCode as $lang) { print ''.$lang.'  '; } print '
'; print '
'; } print 'Rapports immediats :

'; print ''; foreach ($O2->DataSetOptions->DataSetOption as $op) { print ''; print ''; print ''; print ''; } print '
'; print $op->DataSetType->_.' : '; print ''; foreach ($op->LanguageCodes->LanguageCode as $lang) { print ''.$lang.'  '; } print '
'; ?>
 

Raison sociale et coordonnées :

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'); ?>