Résultat de la recherche :
Authentication_Parameters = $authentication;
// Create a new country parameters object
$company = new StdClass();
// Initialise the country object
$company->Country = $_REQUEST['frmRecherche']['Country'];
$company->ClientReference = '';
$request->Authentication_Parameters = $authentication;
$request->CompanyMatches_Parameters = $company;
if($_REQUEST['method'] == 'keyword'){
$request->Keyword = $_REQUEST['frmRecherche']['Keywords'];
$request->City = isset($_REQUEST['frmRecherche']['City']) ? $_REQUEST['frmRecherche']['City'] : '' ;
$request->PostCode = isset($_REQUEST['frmRecherche']['PostCode']) ? $_REQUEST['frmRecherche']['PostCode'] : '' ;
}elseif($_REQUEST['method'] == 'identifier'){
$request->Identifier = $_REQUEST['frmRecherche']['Identifier'];
}elseif($_REQUEST['method'] == 'name'){
$request->Name = $_REQUEST['frmRecherche']['Name'];
$request->City = isset($_REQUEST['frmRecherche']['City']) ? $_REQUEST['frmRecherche']['City'] : '' ;
$request->PostCode = isset($_REQUEST['frmRecherche']['PostCode']) ? $_REQUEST['frmRecherche']['PostCode'] : '' ;
}elseif($_REQUEST['method'] == 'postcode'){
$request->PostCode = isset($_REQUEST['frmRecherche']['PostCode']) ? $_REQUEST['frmRecherche']['PostCode'] : '' ;
}
$firephp->log($request,'requete');
try
{
// Make a request on the webservice
if($_REQUEST['method'] == 'keyword'){
$result = $graydon->getCompanyMatchesByKeyword($request);
}elseif($_REQUEST['method'] == 'identifier'){
$result = $graydon->getCompanyMatchesByIdentifier($request);
}elseif($_REQUEST['method'] == 'name'){
$result = $graydon->getCompanyMatchesByName($request);
}elseif($_REQUEST['method'] == 'postcode'){
$result = $graydon->getCompanyMatchesByPostCode($request);
}
// Print out the result
print "";
$_SESSION['pays'] = $result->Service_Log->Country;
$_SESSION['graydon']['SessionID'] = $result->Service_Log->SessionID;
$_SESSION['graydon']['TransactionIdentifier'] = $result->Service_Log->TransactionIdentifier;
?>
Pays : Service_Log->Country; ?>
CompanyMatches->Company);
if ($count>1){
$companies = $result->CompanyMatches->Company;
}elseif($count==1){
$companies[] = $result->CompanyMatches->Company;
}
$firephp->log($companies,'companies');
$counterCompany = 1;
foreach($companies as $company){
?>
-
Name); ?>
Addresse :
RegisteredAddress->EntireAddress);
print cleanutf8($company->RegisteredAddress->EntireAddress);
?>