RECHERCHE INTERNATIONALE

Résultat de la recherche de démonstration : Authentication_Parameters = $authentication; $request->Country = $_REQUEST['frmDemo']['Country']; try { // Make a request on the web service $result = $graydon->getDemoCompanies($request); //Enregistrement de l'action dans les logs $transactionIdentifier = $result->Service_Log->TransactionIdentifier; $sessionID = $result->Service_Log->SessionID; graydonRequeteLog($_SESSION['tabInfo']['login'], $page, 'getDemoCompanies', $transactionIdentifier, $sessionID, $manager); //Log de la requete dans la bdd $log = new Requetelog(); $log->login = $_SESSION['tabInfo']['login']; $log->action = 'getDemoCompanies'; $log->request = serialize($request); $log->transactionIdentifier = $transactionIdentifier; $log->sessionID = $sessionID; $log->mode = 'demo'; $log->save(); // Get the list of companies $demoCompaniesCountry = $result->DemoCompanies->CountryAndCompany; $_SESSION['graydon']['pays'] = $result->Service_Log->Country; ?>
Pays : Country; ?>
    Companies->Company); if ($count>1){ $demoCompanies = $demoCompaniesCountry->Companies->Company; }elseif($count==1){ $demoCompanies[] = $demoCompaniesCountry->Companies->Company; } $firephp->log($demoCompanies,'demoCompanies'); $counterCompany = 1; foreach($demoCompanies as $company){ ?>
  1. Name); ?>
    Adresse : RegisteredAddress->EntireAddress); ?>

detail->GraydonCompanyData_Fault->FaultReturnCode; $text = $fault->detail->GraydonCompanyData_Fault->FaultMessage; $firephp->log($text,'texterror'); require_once 'graydon/graydon_error.php'; if(graydon_error($code, $text)==FALSE){ graydon_processSoapFault($graydon,$fault,$tabInfo); } } //*********** Mode normal }elseif($_REQUEST['mode']=='normal'){ $_SESSION['graydon']['mode'] = 'normal'; ?>
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); //Enregistrement de l'action dans les logs $transactionIdentifier = $result->Service_Log->TransactionIdentifier; $sessionID = $result->Service_Log->SessionID; graydonRequeteLog($_SESSION['tabInfo']['login'], $page, 'getCompanyMatchesByKeyword', $transactionIdentifier, $sessionID); //Log de la requete dans la bdd $log = new Requetelog(); $log->login = $_SESSION['tabInfo']['login']; $log->action = 'getCompanyMatchesByKeyword'; $log->request = serialize($request); $log->transactionIdentifier = $transactionIdentifier; $log->sessionID = $sessionID; $log->mode = 'normal'; $log->save(); }elseif($_REQUEST['method'] == 'identifier'){ $result = $graydon->getCompanyMatchesByIdentifier($request); //Enregistrement de l'action dans les logs $transactionIdentifier = $result->Service_Log->TransactionIdentifier; $sessionID = $result->Service_Log->SessionID; graydonRequeteLog($_SESSION['tabInfo']['login'], $page, 'getCompanyMatchesByIdentifier', $transactionIdentifier, $sessionID); //Log de la requete dans la bdd $log = new Requetelog(); $log->login = $_SESSION['tabInfo']['login']; $log->action = 'getCompanyMatchByIdentifier'; $log->request = serialize($request); $log->transactionIdentifier = $transactionIdentifier; $log->sessionID = $sessionID; $log->mode = 'normal'; $log->save(); }elseif($_REQUEST['method'] == 'name'){ $result = $graydon->getCompanyMatchesByName($request); //Enregistrement de l'action dans les logs $transactionIdentifier = $result->Service_Log->TransactionIdentifier; $sessionID = $result->Service_Log->SessionID; graydonRequeteLog($_SESSION['tabInfo']['login'], $page, 'getCompanyMatchesByName', $transactionIdentifier, $sessionID); //Log de la requete dans la bdd $log = new Requetelog(); $log->login = $_SESSION['tabInfo']['login']; $log->action = 'getCompanyMatchesByName'; $log->request = serialize($request); $log->transactionIdentifier = $transactionIdentifier; $log->sessionID = $sessionID; $log->mode = 'normal'; $log->save(); }elseif($_REQUEST['method'] == 'postcode'){ $result = $graydon->getCompanyMatchesByPostCode($request); //Enregistrement de l'action dans les logs $transactionIdentifier = $result->Service_Log->TransactionIdentifier; $sessionID = $result->Service_Log->SessionID; graydonRequeteLog($_SESSION['tabInfo']['login'], $page, 'getCompanyMatchesByPostCode', $transactionIdentifier, $sessionID); //Log de la requete dans la bdd $log = new Requetelog(); $log->login = $_SESSION['tabInfo']['login']; $log->action = 'getCompanyMatchesByPostCode'; $log->request = serialize($request); $log->transactionIdentifier = $transactionIdentifier; $log->sessionID = $sessionID; $log->mode = 'normal'; $log->save(); } $_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){ ?>
  1. Name); ?>
    Addresse : RegisteredAddress->EntireAddress); print cleanutf8($company->RegisteredAddress->EntireAddress); ?>
detail->GraydonCompanyData_Fault->FaultReturnCode; $text = $fault->detail->GraydonCompanyData_Fault->FaultMessage; $firephp->log($text,'texterror'); require_once 'graydon/graydon_error.php'; if(graydon_error($code, $text)==FALSE){ graydon_processSoapFault($graydon,$fault,$tabInfo); } } } } ?>