kb:ws:autorizacija_closetoken

CloseToken() metod

Zatvaranje (prevremeno) session tokena, jedinstvenog identifikatora korisničke sesije.

CloseToken (sessToken)

Ne vraća rezultat

NazivVrstaOpisRevizija
sessTokenStringJedinstveni niz znakova dobijen metodom GetToken() koji identifikuje korisničku sesiju.19-6-11
POST https://ws.melany.rs:8191/LogIn/LogIn HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.bort.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:CloseToken>
         <sessToken>20010110091424109009</sessToken>
      </ser:CloseToken>
   </soapenv:Body>
</soapenv:Envelope>
HTTP/1.1 202 Accepted
Server: GlassFish Server Open Source Edition  4.1.2
X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition  4.1.2  Java/Oracle Corporation/1.8)
Server: grizzly/2.3.23
Content-Length: 0

CloseToken [RESTful]

Analogno metodi CloseToken(), implementirano u RESTful tehnologiji.

CloseToken(token)

HTTP MetodPrimer URLaRevizija
GEThttp://<server>/rs/login/closetoken?token=<>19-6-11
ParametarTipOpisRevizija
tokenStringToken koji se poništava, npr:closetoken? token=171220162304124813
Odgovara sessToken parametru
19-6-11
HTTP kodOpisRevizija
200 OKZatvaranje tokena uspelo19-6-11
500 Server errorBilo koji tip greške, uključuje poruku u application/json formatu u Body HTTP odgovora19-6-11


  • kb/ws/autorizacija_closetoken.txt
  • Last modified: 2020/08/06 08:55
  • by aleksandar