Servizio SOAP che consente a Cineca Esse3 di interrogare le informazioni anagrafiche degli utenti.
pip install -r requirements.txt
cd example
./manage.py runserver
In settings.py
configure SOAP_UNIREG_IDENTITY_HANDLER
to handle the SOAP query
to one or many data sources, see example.exampe.settings.py
.
Example
# SOAP get_user_details identity handler
SOAP_UNIREG_IDENTITY_HANDLER = 'esse3_unireg.identity_handlers.identity_example'
from zeep import Client
client = Client('http://localhost:8000/soap/user_registry?wsdl')
client.service.GetUser(Username='gdm')
client.service.GetUser(CodiceFiscale='ciccio18')
Just to take a look to a wsdl to py code...
wsdl2py -s UserRegistryService.wsdl