Authentication_Parameters = $authentication; $request->OrderCreatorEmail = 'mricois@scores-decisions.com'; $request->CompanyProductIdentifier = $CompanyProductIdentifier; $request->PartnerData = ''; $firephp->log($request,'requete'); try { $placeOrderResult = $graydon->placeOrder($request); $firephp->log($placeOrderResult,'placeOrder'); }catch( SoapFault $fault ){ require_once 'soaperror.php'; processSoapFault($client,$fault,$tabInfo); } //On vérifie l'état de le demande if (isset($placeOrderResult) && $placeOrderResult->OrderStatus->OrderState == 'Completed'){ //getCompanyReport $request = new StdClass(); $request->Authentication_Parameters = $authentication; $request->LanguageCode = 'E'; //Spécifier la langue du rapport $request->OrderReference = $placeOrderResult->OrderStatus->OrderReference; $request->MimeType = 'xml'; $firephp->log($request,'requete'); try { $reportResult = $graydon->getCompanyReport($request); $firephp->log($reportResult,'reportResult'); $xml = $reportResult->ReportXML; //Enregistrement du fichier xml $xml = $reportResult->ReportXML->any; file_put_contents($path.'/'.$fileName, $xml); }catch( SoapFault $fault ){ require_once 'soaperror.php'; processSoapFault($client,$fault,$tabInfo); die(); } } //On prend les données du fichier }else{ $firephp->log('Data depuis fichier XML'); $xml = file_get_contents($path.'/'.$fileName); } //========= Affichage des informations ========= if(isset($xml) && $xml!=''){ ?>

IDENTITÉ INTERNATIONALE DE L'ENTREPRISE

preserveWhiteSpace = false; $doc->loadxml($xml); $xpath = new DOMXPath($doc); $tabCompany['Identite']['Subject'] = parseCompany('Subject'); $tabCompany['Identite']['FormeLegale'] = parseLegal_Form(); $tabCompany['Identite']['Address'] = parseCompanyAddress(); $tabCompany['Identite']['Communication'] = parseCommunication(); $tabCompany['Identite']['Dirigeants'] = parseDirectorDetails(); $tabCompany['Identite']['Activite'] = parseTaxonomy('Nace'); $tabCompany['Identite']['Activite']['Text'] = parseFreeText('//GraydonUKCompanySchema/CompanyReportPage/CompanyReport/FreeText[@Type="Activities"]'); $tabCompany['Identite']['Effectif'] = parseEmployees('Staff_Employed'); $tabCompany['Identite']['Capital'] = parseShare_Capital(); $tabCompany['Identite']['ResumeFinance'] = parseFinancial_Summary(); $tabCompany['Identite']['CreditRating'] = parseCredit_Rating(); require_once 'graydon/functions2.php'; $tabReport = parseReportXML($xml); $firephp->log($tabReport, 'tabReport'); function utf8decode_deep($value) { $value = is_array($value) ? array_map('utf8decode_deep', $value) : cleanutf8($value); return $value; } //$tabCompany = utf8decode_deep($tabCompany); $firephp->log($tabCompany,'tabCompany'); ?> $value){ ?>
 

Raison sociale et coordonnées :

$elements){ ?> $elements){ ?>
  Raison Sociale :
  Forme légale : $value){ print $value.' - ('.$item.')
'; } } ?>
  Date de création :
 
 

Activité(s) et chiffre d'affaire de l'entreprise :

  Activité : $value){ if($item != 'Text'){ print $item.' : '.$value['Code'].' - '.$value['Value']; } } if(count($tabCompany['Identite']['Activite']['Text'])!=0){ ?>

Informations complémentaires :
'; } } ?>
  Effectif :
  Capital : Issued Capital :
Nominal Capital :
  Chiffre d'affaire :
 
  Principaux Dirigeants : '; //Affichage de l'adresse if (isset($element['Address']['EntireAddress'])) print '
'.$element['Address']['EntireAddress'].'
'; } ?>

Financial Summary :

$value){ ?>
  :

Credit Rating :

$element){ ?>
  : '; foreach($element['text'] as $text){ print $text; } } ?>
  Aucune information disponible.