Skip to Content
avatar image
Former Member

Compound employee API response format

When I run Compound Employee API from SOAP UI, I always get a response that looks like this.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <queryResponse xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:sfobject.sfapi.successfactors.com" xmlns:ns2="urn:fault.sfapi.successfactors.com">
         <result>
            <sfobject>
               <id>1120</id>
               <type>CompoundEmployee</type>
               <person>
                  <country_of_birth>DEU</country_of_birth>
                  <created_by>sfadmin</created_by>
                  <created_on_timestamp>2017-11-13T13:36:45.000Z</created_on_timestamp>

How do I get a response that looks like this?

<?xml version="1.0" encoding="UTF-8"?>
<queryCompoundEmployeeResponse>
  <CompoundEmployee>
    <id>3801</id>
    <person>
      <country_of_birth>DEU</country_of_birth>
      <created_by>sfadmin</created_by>
      <created_on_timestamp>2017-11-13T13:36:45.000Z</created_on_timestamp>
      <date_of_birth>1990-01-01</date_of_birth>

This is format of CE API response in the HCI log. I wonder how to get that. Or does HCI automatically convert the former to the latter? Kindly throw some light on this.

Add comment
10|10000 characters needed characters exceeded

  • Hi,

    I am working on the same scenario Compound Employee API -->SAP PO 7.5 -->Third Party scenario.

    Facing the same issue , I get a different response as shown in the screenshot#2 when I send the query request using SAP PO SFSF adapter.

    But when I do a SOAP UI request , I get a response like the screenshot#1.

    Did you resolve it ? kindly share your thoughts.

    Thanks

    Sai

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 07, 2017 at 03:32 AM

    Hello Ido.

    You will get the data like screenshot#2 when you query from SAP CPI.You can use SOAP UI to verify the data instantly or to check what query would return.

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Ido.

      Whats the tool you are using to query the data from SF .Basically this formatting is taken care at adapter level.

      If you are using SOAP UI just to verify the data then I guess no issues.Also you can try Integration Center if you are looking for data extract ( CompoundEmployee OData Beta is available )

      Regards,

      Sriprasad Shivaram Bhat

  • Sep 21 at 04:42 PM

    Hi,

    I am working on the same scenario Compound Employee API -->SAP PO 7.5 -->Third Party scenario.

    Facing the same issue , I get a different response as shown in the screenshot#2 when I send the query(SFAPI) request using SAP PO SFSF(SOAP message protocol)adapter.

    But when I do a SOAP UI request , I get a response like the screenshot#1.

    Did you resolve it ? kindly share your thoughts.

    Thanks

    Sai

    Add comment
    10|10000 characters needed characters exceeded