LogOut

Ends an M2M Platform session and invalidates the session token.

NOTE: The M2M Platform will continue to send callback responses after a session has been logged out.

Request Parameters

Parameter Type Description
SessionToken
required
string The unique token for the session that you want to terminate.

Response Parameters

Parameter Type Description
SessionToken string The unique token of the session that was terminated.

Example SOAP 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/07
  /NPhase.UnifiedWebService.APIs.v2.Contract.SessionService">
  <soapenv:Header>
    <v2:token>fa59c858-833e-4a4e-a6a8-56f382abcdd5</v2:token>
  </soapenv:Header>
  <soapenv:Body>
    <v2:LogOut>
      <v2:Input>
        <nph:SessionToken>fa59c858-833e-4a4e-a6a8-56f382abcdd5</nph:SessionToken>
      </v2:Input>
    </v2:LogOut>
  </soapenv:Body>
</soapenv:Envelope>

Example SOAP Response

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv: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/07/NPhase.UnifiedWebService.APIs.v2.Contract.SessionService">
        <a:SessionToken>fa59c858-833e-4a4e-a6a8-56f382abcdd5</a:SessionToken>
      </Output>
    </LogOutResponse>
  </soapenv:Body>
</soapenv:Envelope>

Request Schema Diagram

Response Schema Diagram