Skip to Content

Success Factors SAP HCM Integration Issue - SFAPI Invalid SFAPI session

Hi guys,

I have an issue while trying to call SFAPI operations via SAP PO.

We have not installed the add ons for SuccessFactors, as we can't do that at the moment. So I tried to build up the scenario by myself with the SOAP Axis adapter. But I'm getting the error "Invalid SFAPI session" when trying to call a query.

This is my scenario:

I have an ABAP program, that calls the login operation at first to retrieve a sessionID. I have used the ordinary SOAP Receiver adapter to call SF and it works fine --> In the ABAP program I get the session id.

The next step is the query scenario call, that comes as the next step in the same program after the login. In that call I'm sending the sessionID and the query string via proxy to SAP PO. In the mapping I'm putting the session ID into the dynamic configuration and used the SOAP Axis Receiver Adapter to call the SFAPI with the query operation.

Unfortunately this throws the error message. My config is the following:

First I thought there might be an issue here, but I did the following to verfiy:

Run the ABAP program until I receive the sessionID from the login operation call. Copy this sessionid and call the query operation from SoapUI in the http header:

Name: Cookie

Value: JSESSIONID=myid

This doesn't work either! So that means I can't do it manually either.

Any ideas what I do wrong?

Thank you very much!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 19, 2018 at 09:22 AM

    No ideas anyone?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 22, 2018 at 04:25 AM

    Hello Arne,

    Check the cookie length. It could be more than 80 which could be one of the reason for this issue.

    If you find it to be more than 80 try mapping the session ID directly from the response in the mapping.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Muni,

      thank you for your answer. This is my module configuration in my Soap Axis adapter:

      I can't use the SF Adapter, as the AddOn is not installed yet. As long as we don't have it, I would like to try it by my own.

      Do you see any issues with the module config?

      Thank you