extranet/www/pages/graydon/method_identifier.php
Michael RICOIS 01b62763bb MAJ Graydon
2009-04-07 17:44:17 +00:00

34 lines
1.1 KiB
PHP

<?php
require_once 'graydon/graydonws.php';
// Create the request parameters
$request = new StdClass();
// Initialise the request object
$request->Authentication_Parameters = $authentication;
$request->Country = $pays;
try
{
$result = $graydon->getCompanyMatchIdentifiers($request);
$count = count($result->CompanyMatchIdentifiers->CompanyMatchIdentifier);
if ($count>1){
$identifiers = $result->CompanyMatchIdentifiers->CompanyMatchIdentifier;
}elseif($count==1){
$identifiers[] = $result->CompanyMatchIdentifiers->CompanyMatchIdentifier;
}
$firephp->log($identifiers,'identifiers');
//Affichage de la meilleur méthode de recherche OU la première
foreach($identifiers as $identifier){
}
}catch( SoapFault $exception ){
// Print the exception
print "\n Exception ";
var_dump($exception->detail);
}
?>
<?php if($WithCity==TRUE){ ?>
<label class="StyleInfoLib">Ville : </label><input type="text" name="frmRecherche[City]" maxlength="100" value="">
<?php }?>
<?php if($WithPostCode==TRUE){ ?>
<label class="StyleInfoLib">PostCode : </label><input type="text" name="frmRecherche[PostCode]" maxlength="10" value="">
<?php } ?>