cancel
Showing results for 
Search instead for 
Did you mean: 

Design question : Intercept logic

Former Member
0 Kudos

hello ,

I have a question , it is a web service to ABAP proxy sory of synchronous scenario.

So once a webservice request is sent , we have ABAP proxy request which takes this request does a process and sends a response back. But in response xml which it sends there is a field : Flag

IF flag is SUCCESS , webservice response should be mapped

but if flag is FAILURE , the abap proxy response should go to a database / table.

How do we achieve this intercept logic in FLAG ? do we do something in mapping OR something in RECEIVER determination or INTERFACE determination ?

suggestions could help me in thinking on this issue.

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

you can try this way..

SOAP--->(RFC Lookup)---->JDBC(FLAG = Failure)

-


>SOAP(flag success).

RFC lookup usage to get flag status ,in this case you can avoid BPM.

OR

Use BPM in this case dont required rfc lookp,use sync send step to get abap proxy response and write a condition to send response to jdbc or soap.

Regards,

Raj

Former Member
0 Kudos

So basically do you imply besides RFC Lookup, we cannot do some simple logic on root node : using function Createif in abap proxy response mapping.

like if flag is true map to a different xml ( soap response)

or if flag is false map to a different xml ( jdbc structure)

and do separate interface mapping

and a separate comm channel and all the configuration steps in ID for jdbc.

so basically like 2 scenarios....

This approach wont work??

Regards

/ M

rajasekhar_reddy14
Active Contributor
0 Kudos

its only one interface but multi mapping concept.

search in sdn 1:n multi mapping concept,logic implemented in one message mapping but source will have one req message from soap and target two structures(soap response and JDBC).

BUT RFC lookup required to get flag status.

Regards,

Raj

Former Member
0 Kudos

Thank you for updating thread.

so if only 2 ways exist for doing this logic : BPM Or RFC Lookup

which method is preferred for performance reasons and cleaner code design ?

Regards

/ M