Skip to Content
Jan 14, 2019 at 08:03 PM

CPI-SF - Logout of SuccessFactors HCM Suite fails because of empty header Cookie JSESSIONID

434 Views Last edit Jan 15, 2019 at 12:08 PM 2 rev

Hi all,

I'm setting up employee replication from ECC to SAP using package :

SuccessFactors HCM Suite Talent Management integration with SAP ERP HCM

The first CPI interface called by ECC is the logout from SF using this soap path:


This integration fails with the following error:

Outbound processing in endpoint at /hcm2bizx/SFSFSessionHandlingLogoutQueryResult failed with message "Fault:Could not generate the XML stream caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'w' (code 119) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1].", caused by "WstxUnexpectedCharException:Unexpected character 'w' (code 119) in prolog; expected '<'
at [row,col {unknown-source}]: [1,1]"

In debug I can see this error which is generated by the soap call to SF::

org.apache.cxf.binding.soap.SoapFault: while trying to load from index 1 of an object array with length 1, returned from java.lang.String.split(java.lang.String)

A working request (from postman directly to SF) looks like this

<soapenv:Envelope xmlns:soapenv="" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
		<ns1:logout xmlns:ns1=""></ns1:logout>

The body content before the soap call to SF is this:

<?xml version="1.0" encoding="UTF-8"?>
<ns1:logout xmlns:ns1=""></ns1:logout>

I have no idea where this unexpected character is coming from. I can see no more information in CPI or ECC.

Where is this error coming from?




logout-iflow.jpg (53.0 kB)