cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Post Payload to SOAP API using SAP CPI !

prathmesh009
Explorer
0 Kudos
188

Hello SAP Community,

I am working on integrating Zoho People (Third-Party HRMS) with SAP Public Cloud to create workforce/employee records. I am using SAP CPI to send data to SAP’s SOAP API. However, I am encountering an error, and I need guidance on resolving it.

Scenario Overview

  1. API Selection & Testing:

    • I found the required SOAP API on api.sap.com for replicating workforce data from a third-party HRMS.
    • Using SAP Documentation, I created the SOAP payload and tested it successfully in SOAP UI—it works fine.
  2. Issue When Using SAP CPI:

    • The same SOAP request fails when sent via SAP CPI.
    • Error from SAP SOAP API Log: Message "Envelope{http://schemas.xmlsoap.org/soap/envelope/}" not supported (interface: "WORKFORCEPERSONMASTERDATAREPLI" binding

      CPI Integration Flow (iFlow) Design
  • Sender Adapter: HTTPS
  • Processing Steps:
    1. Content Modifier – Preparing Headers
    2. JSON to XML Converter – Converting JSON to XML
    3. Content Modifier – Adding SOAP envelope, binding values using XPath
    4. Request-Reply – Calling SOAP API
    5. Receiver Adapter: SOAP


      prathmesh009_0-1738824693428.png

       

Observations:

  • I simulated the iFlow and checked the payload before the request-reply step → It matches exactly with the payload tested in SOAP UI.
  • However, the same payload does not work when passed via SAP CPI.
  • When copied from CPI and tested in SOAP UI manually, it works.

Questions:

  1. What could be causing the "Envelope not supported" error when sending the request via SAP CPI?
  2. Are there any specific headers or content-type settings that SAP SOAP APIs expect from CPI?
  3. Could this issue be related to SOAP envelope namespaces? If so, how can I correct them in CPI?
  4. Are there any specific configurations needed in the SOAP receiver adapter for SAP Public Cloud APIs?

Any insights or suggestions would be highly appreciated. Thank you!

Accepted Solutions (0)

Answers (0)