This plugin communicates with the UNI•Login webservice (WS-02). This webservice provides basic information of UNI•Login users (by institution). This service doesn't require a signed agreement of the institution.
- CakePHP 2.9.0 or greater.
- PHP 7.0.0 or greater.
Clone/Copy the files in this directory into app/Plugin/UniLoginWebservice
Ensure the plugin is loaded in app/Config/bootstrap.php
by calling:
CakePlugin::load('UniLoginWebservice');
Ensure to configure the following lines in app/Config/bootstrap.php
:
Configure::write('UniLoginWebservice.wsBrugerid', 'wsBrugerid');
Configure::write('UniLoginWebservice.wsPassword', 'wsPassword');
Ensure to configure the following lines in app/Config/database.php
:
public $uniLoginWebservice = [
'datasource' => 'UniLoginWebservice.SoapSource',
'wsdl' => 'https://ws02.infotjeneste.uni-c.dk/infotjeneste-ws/ws?WSDL'
];
public $uses = ['UniLoginWebservice.UniLogin'];
$this->UniLogin->helloWorld();
$this->UniLogin->helloSOAPFaultDemo();
$employees = $this->UniLogin->getEmployees($instid);
$employees = $this->UniLogin->getEmployeesWithDetails($instid);
$institution = $this->UniLogin->getInstitution($instid);
Retrieve data of institutions where the user "brugerid" has a relation by calling "hentInstitutionsliste"
$institutions = $this->UniLogin->getInstitutions($brugerid);
$person = $this->UniLogin->getPerson($brugerid);
$students = $this->UniLogin->getStudents($instid);
$students = $this->UniLogin->getStudentsWithDetails($instid);