WebLogout
Initial Build |
2006.02 |
xWEB |
Web Method |
Response Type |
none |
Forces the authentication token to be destroyed - this method is the companion method to the WebLogin method or the WebValidate method. The xWeb interface does not return an XML Node for success.
Parameters
The authenticationToken as string
o.WebLogout(authenticationToken as string)
Sample Request
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header>
<m:AuthorizationToken xmlns:m="http://www.avectra.com/2005/">
<m:Token>fde4d172-70c4-4fa4-91aa-a683b2435ea6</m:Token>
</m:AuthorizationToken>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<m:WebLogout xmlns:m="http://www.avectra.com/2005/">
<m:authenticationToken>9e2eee63-07cc-4ac3-aff3-dfe34d995c42</m:authenticationToken>
</m:WebLogout>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Sample Response
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>20ff1768-1279-41ff-a7af-34788d7d6e84</Token>
</AuthorizationToken>
<wsa:Action>http://www.avectra.com/2005/WebLogoutResponse</wsa:Action>
<wsa:MessageID>uuid:53fdd975-e267-4c01-a2b0-2e5ca469c77d</wsa:MessageID>
<wsa:RelatesTo>uuid:a192ddb1-7695-4368-9942-5e753ef1d63b</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-13605cb6-4370-439e-a2b7-ee292534547c">
<wsu:Created>2006-09-26T13:52:58Z</wsu:Created>
<wsu:Expires>2006-09-26T13:57:58Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<WebLogoutResponse xmlns="http://www.avectra.com/2005/"/>
</soap:Body>
</soap:Envelope>
JSON Method
Pass in the token for a user to immediately expire the token.
GET /xweb/JSON/WebLogout?authenticationToken=0a06e984-4280-4ec0-982a-a9326725fec8
POST /xweb/JSON/WebLogout
Copy
DATA: JSON
{
"WebLogout": {
"authenticationToken": "0a06e984-4280-4ec0-982a-a9326725fec8"
}
}
Copy
SAMPLE RESULT
HTTP STATUS: 200