cancel
Showing results for 
Search instead for 
Did you mean: 

Can a response from a synchronous webservice be ignored in PI?

former_member190543
Participant
0 Kudos

Help needed please...

My scenario is:

1. We have to send some data from ERP to a thridparty synchronous webservice. The webservice adds some more data to the message and gives a response message.

2. We have to take that response message and send it to another thirdparty synchronous webservice. This webservice changes some fields, adds some extra fields and gives us the message as a response message.

3. We have to send that message as a file to a file system. Also, we have to send a copy of the message back to ERP.

Now my questions are:

a. How to implement this?

b. I am thinking to do all synchronous messages. Can I use the response from the webservice as a seperate asynchronous message in a seperate Message Interface? If so what will happen to the Output message which I define in the Inbound/Synchronous Message Interface for the Webservice?

c. As each step is depended on the previous message, should everything be designed as single interface?

Many thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

former_member207622
Contributor
0 Kudos

This can be implemented using BPM by making the complete thing as one scenario

BPM design could be like this

receive step........>>>>> send ( synchronous )first >>>> send sync second ) >>>> Send ( Async ) file system >>>>> send ( async ) ERP system

1 -- receive step has one abstract interface ( asynchronous)

2 send step has one abstrac interface ( synchronous ) this is for system 1

3 second send step has another abstract interface ( synchronous)

dpending upon the type of message you can keep the resonse message type as same or differnt

4. finally for the file and the ERP system there has to be each one asynchronous interface

looks complicated ... take help of fello SDNERS

thanks

Ninad

former_member190543
Participant
0 Kudos

Many thanks for all the replies.

Veeranjaneyulu and Ninad,

I have created the scenario as below, but getting error. Please correct me if my design is incorrect.

For the first webservice, I Created:

1. Out/Async MI for RFC

2. ABS/Async for BPM

3. ABS/Sync for BPM

4. In/Sync for Webservice

For second webservice,

5. ABS/Sync for BPM

6. In/Sync for second webservice

7. ABS/Asyn for BPM to send a copy to ERP

8. In/Asyn for ERP

9. ABS/Asyn for BPM for file system

10. In/Asyn for file system.

In BPM, I designed the following steps:

Start - Receive1 - Send1 (For 1st W/S) - Send2 (for 2nd W/S) - Send3 (for ERP) - Send4 (For file system) - Stop

The container elements I created are:

1. Request1 / Abstract / Interface no.2 (above)

2. Response1 / Abstract / Interface no.2

Looks like I did something wrong somewhere. When trying to activate the BPM, I am getting error as " the message to be sent Response1 and synchronous interface no.5 are not of the same type"

I tried so many combinations, but still the same error or similar error. Please Help!

Thank you.

Answers (2)

Answers (2)

Former Member
0 Kudos

Use BPM,

1) Receive ERP message - Async, transformation to WS1 structure

2) Send Sync to WS1

3) Response message, transform to WS2 structure

4)Send Sync to WS2

5) Response message, Send Async to write as a file as well as to ERP.

Configure the scenario with relevant ID,RA.

Cheers

Veera

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>Can a response from a synchronous webservice be ignored in PI?

Yes that is possible.

refer this [link|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/23745] [original link is broken] [original link is broken] [original link is broken];