hakuryo / siham-ws-client

1.1.1 2023-12-05 15:39 UTC

This package is auto-updated.

Last update: 2024-09-05 17:34:57 UTC


README

安装

composer require hakuryo/siham-ws-client

使用方法

配置

[siham]
wsdl="https://siham.exemple.fr/DossierAgentWebService/DossierAgentWebService?wsdl"
login="siham_ws_login"
password="siham_ws_password"
code_etablissement="1111111G" # your siham university code
trace=true
exception=true # use to catch soap exception

示例

<?php

require_once '../vendor/autoload.php';

use hakuryo\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('jhon.doe@exemple.fr','SIHAM_USER_ID','A'); // Add mail if no value existe, throw soap exception if exist
$client->set_mail_perso('jhon.doe@exemple.fr','SIHAM_USER_ID','M'); // Modify mail if a value exist, throw soap exception if no value exist