Skip to Content
0
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:

/cxf/hcm2bizx/SFSFSessionHandlingLogoutQueryResult

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="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
   <soapenv:Header/>
   <soapenv:Body>
		<ns1:logout xmlns:ns1="urn:sfobject.sfapi.successfactors.com"></ns1:logout>
   </soapenv:Body>
</soapenv:Envelope>

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

<?xml version="1.0" encoding="UTF-8"?>
<ns1:logout xmlns:ns1="urn:sfobject.sfapi.successfactors.com"></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?

Thanks,

Tom

Attachments

logout-iflow.jpg (53.0 kB)