#!/usr/bin/php -c/var/www/batch/config/php_batch_sd.ini 37, // CB10 'IMR'=>11, // IMR10 'WebService'=>36, // WS10 ); $mantis = new mantisWsdlClient($url,$username,$password); print_r($mantis->getProjectIssues($tabProjets['Bilans'])); $reporterid=149; $summary='Siren 311405898 Bilans du 31/12/2007 et 31/12/2008'; $description='Postes DO non saisit'; echo $mantis->add_issue_note(15355,$reporterid,"probleme assez courant, doit venir d'un mauvais parametrege chez un de vos operateur de saisie."); die(); echo $mantis->addissue($tabProjets['Bilans'],$reporterid,$summary,$description,$priority,$eta); die(); error_reporting(E_ALL); //mc_project_get_issues(string $username, string $password, integer $project_id, integer $page_number, integer $per_page)" $client = new SoapClient("https://www.infogreffe.fr/mantis/api/soap/mantisconnect.php?wsdl"/*, array( 'login' => $username, 'password' => $password)*/); $O=$client->mc_project_get_issues($username,$password,$tabProjets['Bilans']); print_r($O); //var_dump($client->__getFunctions()); die(); $issue = new stdClass; $issue->id=$tabProjets['Bilans']; $issue->summary='Resume du bug'; $issue->description='description du bug'; /* */ $O=$client->mc_issue_add($username, $password, $issue); /* ** $client = new SoapClient(null, array( 'location' => 'https://wv2rcte.experian.fr/WSContextInfogreffe/INFOGREFFE', 'uri' => 'https://wv2rcte.experian.fr/', 'soap_version' => SOAP_1_1, 'trace' => 1, 'style' => SOAP_RPC, 'use' => SOAP_ENCODED, )); $req=''. ''. '85009006'.//85009006 '17628'.//17628 '123456789'. ''. 'A'. 'IC'. 'C'. 'KB'.// KBis HQ histo 'S'. 'WS'. ''. ''. ''. ''. ''. ''. '552144503'. ''. '';*/ try { $O=$client->mc_projects_get_user_accessible($username,$password); } catch (SoapFault $soapFault) {// echo "ERROR :\n", var_dump($soapFault), "\n"; echo "Request :\n", $client->__getLastRequest(), "\n"; $response=$client->__getLastResponse(); $response=str_replace("",'', $response); $xml=str_replace('','', $response); die(); } print_r($O); ?>