INFOGREFFE_WS_URL, 'uri' => INFOGREFFE_WS_URI, 'soap_version' => SOAP_1_1, 'trace' => 1, 'style' => SOAP_RPC, 'use' => SOAP_ENCODED, )); $req = ''. ''. ''.INFOGREFFE_WS_USER.''.//85009006 ''.INFOGREFFE_WS_PASS.''.// ''.INFOGREFFE_WS_REF.''. ''. 'A'. 'IC'. 'C'. ''.$type.''.// KB=Kbis, HQ=Histo, ST=Statut, AC=Acte, LE=Liste étab 'S'. 'WS'. ''. ''. ''. ''. ''. ''. ''.$siren.''. ''; try { $O = $client2->getProduitsWebServicesXML($req); $xml = implode('', (array)$O); }catch (SoapFault $soapFault) { $success = false; $response = $client2->__getLastResponse(); $response = str_replace("",'', $response); $xml = str_replace('','', $response); } return $xml; } function getKbis($siren){ global $client; //ini_set('default_socket_timeout', 120); //timeout 2 min $return = FALSE; try { $O = $client->getKbis($siren, 1,0); $kbis = $O['result']; $return = $kbis['Url']; } catch (SoapFault $fault) { require_once 'soaperror.php'; processSoapFault($client,$fault,$_SESSION['tabInfo']); } return $return; }