Authentication_Parameters = $authentication; $request->Country = $pays; $firephp->log($request,'requete'); try { $result = $graydon->getCompanyMatchIdentifiers($request); $firephp->log($result,'Identifier'); $count = count($result->CompanyMatchIdentifiers); if ($count>1){ $tabIdentifiers = $result->CompanyMatchIdentifiers; }elseif($count==1){ $tabIdentifiers[] = $result->CompanyMatchIdentifiers; } }catch( SoapFault $exception ){ // Print the exception print "\n Exception "; var_dump($exception->detail); } // Create the request parameters $request = new StdClass(); // Initialise the request object $request->Authentication_Parameters = $authentication; $request->CompanyMatchIdentifier = $identifier; $firephp->log($request,'requete'); try { // Make a request on the web service $result = $graydon->getCompanyProducts($request); // Print out the result print ""; $company = $result->Company; $products = $result->Products->Product; ?>
Fiche identité simplifié |
ServiceSpeed == 'Immediate' && $product->Type == 'Database'){ ?> Accéder à la fiche identité approfondie (payant). | |
CompanyMatchIdentifier->CompanyIdentifier->Type == $identifier->Type){ print $tabIdentifier->CompanyMatchIdentifier->CompanyIdentifier->Description; $identifierDescription = TRUE; } } if ($identifierDescription==FALSE){ print $identifier->Type; } //@TODO : Tester si la condition à bien été remplie ?> | Identifier; ?> | |
Raison Sociale | Name; ?> | |
Adresse Complète | RegisteredAddress->EntireAddress; ?> | |
Adresse | RegisteredAddress->Building.', '.$company->RegisteredAddress->Street; ?> | |
Code Postal | RegisteredAddress->PostCode; ?> | |
Ville | RegisteredAddress->City; ?> | |
Pays | RegisteredAddress->Country)){ print $company->RegisteredAddress->Country; }else{ print $pays; } ?> | |
Téléphone | Telephone; ?> | |
Code Type;?> | Code;?> - Description;?> | |
Aucune information disponible | ||