PHP code example of hakuryo / siham-ws-client

1. Go to this page and download the library: Download hakuryo/siham-ws-client library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hakuryo / siham-ws-client example snippets




akuryo\sihamWSClient\clients\DossierAgentWSClient;

$client = DossierAgentWSClient::from_file('../config/config.ini','siham');
echo json_encode($client->getDonneesPersonnelles('RCA000021222'),JSON_PRETTY_PRINT);
echo json_encode($client->getDonneesAdministratives('RCA000021222'),JSON_PRETTY_PRINT);

$client->set_mail_perso('[email protected]','SIHAM_USER_ID','A'); // Add mail if no value existe, throw soap exception if exist
$client->set_mail_perso('[email protected]','SIHAM_USER_ID','M'); // Modify mail if a value exist, throw soap exception if no value exist