2410526 - SFAPI logout call returns false in the response

SAP Knowledge Base Article - Public

2410526 - SFAPI logout call returns false in the response

Symptom

This KBA explains the reason why an SFAPI logout call will return false in the result field.

Environment

BizX, SFAPI

Reproducing the Issue

1. Make a log in call through SFAPI

2. After the completion of the respective operation intended to be done, make a logout call to the API server.

3. The log out response will have false returned in the SOAP body

LogOut Response:

<?xml version='1.0' encoding='UTF-8'?>
   <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
      <S:Body>
        <logoutResponse xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
          <result>false</result>
       </logoutResponse>
  </S:Body>
</S:Envelope>

Cause

There are three scenarios under which this will occur:

1. The session is already invalid, due to long time.
2. When sending logout request, the session ID returned from the log in is not sent. Instead the log out is made for a different session ID.
3. Logout is sent multiple times.

Resolution

As suggested in the root cause section:

1. It is not recommended to do logout multiple times

2. Always pass the correct session ID in the header request for the log out call.

 

Keywords

KBA , sfapi logout call returns false in the r , LOD-SF-INT-API , SF API & Adhoc API Framework , LOD-SF-INT , SF Integrations - EC Payroll, Boomi/ HCI, API , Problem

Product

SAP SuccessFactors HCM Core all versions