Log Out of the ThingSpace Platform

As a security measure, your application should log out of the Verizon ThingSpace Platform when finished making requests. Logging out will invalidate the current session token, ensuring that it can't be used for any further requests.

The web service definitions (WSDLs) for Logout are part of the Session Service, and they are included in the Wireless Network Services SDK.

A LogOut request takes only one parameter, which is the session token that you want to invalidate. (You must also include the session token in the header.) The ThingSpace Platform verifies the token, invalidates it, and then returns the same token in the response.

LogOut Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:v2="http://nphase.com/unifiedwebservice/v2"
  xmlns:nph="http://schemas.datacontract.org/2004/07NPhase.UnifiedWebService.APIs.v2.Contract.SessionService">
    <soapenv:Header/>
    <soapenv:Body>
       <v2:LogOut>
         <v2:Input>
             <nph:SessionToken>11f33db9-0446-4822-b6a3-07dbf0e724a5</nph:SessionToken>
          </v2:Input>
       </v2:LogOut>
    </soapenv:Body>
 </soapenv:Envelope>
LogOut Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
       <LogOutResponse xmlns="http://nphase.com/unifiedwebservice/v2">
          <Output xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:a="http://schemas.datacontract.org/2004/07NPhase.UnifiedWebService.APIs.v2.Contract.SessionService">
             <a:SessionToken>11f33db9-0446-4822-b6a3-07dbf0e724a5</a:SessionToken>
          </Output>
       </LogOutResponse>
    </s:Body>
 </s:Envelope>