$setGroup (SData)

De Wiki1000
(Différences entre les versions)
Ligne 35 : Ligne 35 :
 
  Set-Cookie: SID=758479...; Path=/; HttpOnly
 
  Set-Cookie: SID=758479...; Path=/; HttpOnly
 
  Set-Cookie: SIL=1; Path=/
 
  Set-Cookie: SIL=1; Path=/
 
+
 
  <?xml version="1.0" encoding="ISO-8859-1"?>
 
  <?xml version="1.0" encoding="ISO-8859-1"?>
 
  <result>
 
  <result>
Ligne 71 : Ligne 71 :
 
  Set-Cookie: SID=75847954...; Path=/; HttpOnly
 
  Set-Cookie: SID=75847954...; Path=/; HttpOnly
 
  Set-Cookie: SIL=1; Path=/
 
  Set-Cookie: SIL=1; Path=/
 
+
 
  errorMessage=group+%22grp4%22+is+not+valid
 
  errorMessage=group+%22grp4%22+is+not+valid
  

Version du 11 janvier 2016 à 16:15

version710-32x32.png Cette fonction de service permet de modifier le groupe courant du contexte lorsque l'utilisateur appartient à plusieurs groupes autorisés sur le dossier.

L'url de cette fonction est :

http://www.example.com/service/server/sdata/$setGroup
Paramètre Usage
groupName nom du groupe à positionner

Exemple :

POST /sdata/$setgroup HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Host: localhost
Content-Length: 14
Cookie: SID=758479548...

groupname=grp3


Réponse si succès

HTTP/1.1 200
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Content-Length: 673
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Set-Cookie: SID=758479...; Path=/; HttpOnly
Set-Cookie: SIL=1; Path=/

<?xml version="1.0" encoding="ISO-8859-1"?>
<result>
 <params>
  <username>sage</username>
  <userfullname>Utilisateur sage</userfullname>
  <userlanguage>FRA</userlanguage>
  <useremail>[email protected]</useremail>
  <groupname>grp3</groupname>
  <authdirname>Sage1000</authdirname>
  <socname>Démo - Sage FRP 1000 Suite Financière (S1)</socname>
  <appname>Sage FRP 1000 Suite Financière Edition pilotée</appname>
  <glbShareEnable>false</glbShareEnable>
  <database>db700sf</database>
  <databases>
   <database>db700sf</database>
  </databases>
  <GA>
   <dialogUrl>https://eme.sage.fr/pep/home.html</dialogUrl>
   <enable>false</enable>
   <ua/>
  </GA>
 </params>
</result>


Réponse si échec

HTTP/1.1 500
Connection: keep-alive
Content-Type: application/json; charset=utf-8
Content-Length: 42
Last-Modified: Sat, 30 Dec 1899 00:00:00 GMT
Set-Cookie: SID=75847954...; Path=/; HttpOnly
Set-Cookie: SIL=1; Path=/

errorMessage=group+%22grp4%22+is+not+valid







Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Outils personnels