The datasource is only provisionned if the search find one and only one
dossier, otherwise it's empty. We also return if for the given NameID
the person is already paired.
xml_request had to be factorized to created xml_request_multiple as the
Genesys web-service for search return multiple results
(all other WS returns only one).
call_select_usager was also factorized to serve as basis for
call_select_usager_by_ref.
The search endpoint does a first call to Genesys for listing REF_PER then
for each REF_PER a call to selectUsagerByRefPer to get the ID_PER and
contact informations necessary for appairage.
All web-services exposed does not have the same prefix some are under the
path WSUsagerPublik/services/PublikService/ but those for intermediation
will be under WSIntermed/services/IntermediationService/. As we used the URL
with prefix included as base_url we must normalize it now
(remove prefix from base_url).
It provides the following webservices:
- /codifications, to list Genesys referentials
- /codifications/<category>/, to list values in a specific Genesys
referential
- /link, to create a link between a NameID and an account in Genesys
extranet
- /unlink, to delete a link created using the previous WS,
- /dossiers, to get all datas associates to Genesys extranet accounts
for a given NameID