Projet

Général

Profil

Development #32618

atos-genesys: ajout des web-services d'intermédiation

Ajouté par Benjamin Dauvergne il y a environ 5 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
25 avril 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Deux nouveaux web-services :
  • search
  • link-by-id-ref

Fichiers

Révisions associées

Révision 33f2a98e (diff)
Ajouté par Benjamin Dauvergne il y a environ 5 ans

atos-genesys: normalize webservice url before use (#32618)

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).

Révision 64273892 (diff)
Ajouté par Benjamin Dauvergne il y a environ 5 ans

atos-genesys: factorize RESPONSE_SELECT_USAGER in tests (#32618)

Révision d643e759 (diff)
Ajouté par Benjamin Dauvergne il y a environ 5 ans

atos-genesys: add new endpoints search and link-by-id-per (#32618)

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.

Historique

#3

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

C'est la première fois que je tombe sur un connecteur qui propose des endpoints POST et des parameters, dans ce contexte les paramètres sont ceux de la query string ? application/x-www-form-urlencoded ?

#4

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

Emmanuel Cazenave a écrit :

C'est la première fois que je tombe sur un connecteur qui propose des endpoints POST et des parameters, dans ce contexte les paramètres sont ceux de la query string ? application/x-www-form-urlencoded ?

query_string

Je ne trouve pas ça exceptionnel, je l'ai déjà fait à d'autres endroits il me semble, ça a l'avantage d'être simple à déverminer.

#5

Mis à jour par Emmanuel Cazenave il y a environ 5 ans

  • Statut changé de Solution proposée à Solution validée
#6

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit d643e759b7699912996a13632ba39baaec88a143
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Apr 25 13:52:09 2019 +0200

    atos-genesys: add new endpoints search and link-by-id-per (#32618)

    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.

commit 6427389205b9aa621259a20d5824f0e401243acc
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Apr 25 13:49:03 2019 +0200

    atos-genesys: factorize RESPONSE_SELECT_USAGER in tests (#32618)

commit 33f2a98e2528ab971025c8eeaba218b089ea398f
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Apr 25 13:48:27 2019 +0200

    atos-genesys: normalize webservice url before use (#32618)

    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).
#7

Mis à jour par Frédéric Péters il y a environ 5 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF