cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous communication: Build sender specific response to sender

0 Kudos

Hello Experts,

My requirement is to create asynchronous communication with sender adding to this I should build a meaningful response and send it back to sender.

As per my requirement sender is not bothered about message status(completed/failed) in CPI all they want is confirmation from CPI saying "hey we received your message..." something like below.

<ns0:response>

<ack>true</ack>

</ns0:response>

I tried below step 2 in below blog of linking response back to sender but for some reason I couldn't create dummy channel.

https://blogs.sap.com/2015/01/05/blog-2-request-reply-pattern-in-integration-flows-hci-pi/

I tried using https adapter, yes I'm able to send desired response, since https is synchronous if message fails in CPI sender is getting error response.

For time being I'm using JMS adapter as a work around but it is not an effective solution for my integrations because I'm suppose to create 20+ integration, so I end up using 20+ JMS adapters which I feel is not feasible.

Can you please suggest me how to achieve this requirement without JMS adapter?

Any inputs from you is highly appreciated!!

Accepted Solutions (1)

Accepted Solutions (1)

yatanveersingh
Active Participant
0 Kudos

Hi Vineeth,

Why do you want to send the response before starting the iflow, you can send the response at the end of the process once its completed or if there is any error it can be send from the exception flow.

Regards,

Yatan

0 Kudos

Hi Yatanveer,

Yes we can do that..let's say we're sending response from exception flow so in this case is there any way to trigger error message as well?

Answers (2)

Answers (2)

0 Kudos

Hi Yatanveer,

Like you said I've kept response in exception flow(in case of error) and in normal flow, created an iflow using process direct adapter and it's working as expected.

When error occurred in consumer flow, producer triggers exception sub-process response.

Thanks for the trigger! also if you have any other way to do this please share that.

yatanveersingh
Active Participant
0 Kudos

Hi Vineeth,

You need synchronous communication, where you send input to your iflow and get the response back, Async is fire and forget. You can either use HTTP (REST) or SOAP based IFlows to achive this.

HTTP is more straight forward, for SOAP you will need WSDL (synchronous)

Regards,

Yatan

0 Kudos

Hi Yatanveer,

Thanks for your input,

yes my current flow is using SOAP where wsdl is with request and response messages but my problem is sending constructed response back to sender without starting iflow steps execution.

In my case I have to create response by adding value("TRUE") in response body which is causing issue, do you know how to achieve this?