cancel
Showing results for 
Search instead for 
Did you mean: 

Manually create soap content in iflow in SAP HCI

AntonPierhagen
Active Participant
0 Kudos

Hi!

I have a CPI Iflow were i connect a message coming from the Event Mesh to a SOAP call.

In the CPI flow the message will be enriched, and then send to a ECC system with a SOAP call.

Because the message is coming from a not structured / own type of the Event Mesh, i haven't got a WSDL or IDOC version which i can use for the Message Mapping option and to map it to a SOAP message type.

Therefore i have to add the body of the SOAP myself, but i haven't found any example of someone who is doing that with CPI.

I only see examples of how a soap message is being called with a message created via the Message Mapping.

Then the start of the Iflow is; 'IDOC' or 'SOAP'.

At the moment i have something like:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions">

<soapenv:Body>

<urn:ACTION_NAME>

<FIELD1>VALUE</FIELD1>

<FIELD2>VALUE</FIELD2>

</urn:ACTION_NAME>

</soapenv:Body>

</soapenv:Envelope>

In SAP it's looking for operation 'Evelope' and it should find the operation 'ACTION_NAME' 🙂

So i have to add something to my message, but i don't know what it is?

If you do, please let me know

Kind regards,

Anton

Accepted Solutions (1)

Accepted Solutions (1)

AntonPierhagen
Active Participant
0 Kudos

Got it!

Only the body should contain:

<urn:ACTION_NAME> xmlns:n0="urn:sap-com:document:sap:rfc:functions">

<FIELD>VALUE</FIELD>

<FIELD2>VALUE</FIELD2>

</n0:ACTION_NAME>

And i have to add: xmlns:n0="urn:sap-com:document:sap:rfc:functions" to the body

so the SAP-SOAP compiler knows it's the name of the operation

Answers (0)