cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Rest Receiver Adapter Multiple End points

0 Kudos
1,840

Hi Experts,

Good day!

I am new to Rest Adapter, and I am to develop a FTP -> PO -> REST process flow scenario.

The part where I need help is that there are multiple API End Point on the target (REST) as seen on image below.

1. Where will I configure these API End Points on the Integration Directory(receiver communication channel)?

2. This is the initial configuration I have made so far on ID. Also, Is the URL Pattern correct or need to edit something on the URL maybe for variable substitution?

Appreciate your thoughts on this.

Thank You,

Carlo

Accepted Solutions (1)

Accepted Solutions (1)

anupam_ghosh2
Active Contributor
0 Kudos

Hi Carlo,

Here are response to your query

1. Where will I configure these API End Points on the Integration Directory(receiver communication channel)?

Ans) In receiver communication channel but you need to access dynamic configuration in UDF.

2.) This is the initial configuration I have made so far on ID. Also, Is the URL Pattern correct or need to edit something on the URL maybe for variable substitution?

ans)

Th UDF you need is shown below

String dyn_res = "http://v1#/"; // Parameter replace in REST URL tab in the actual receiver REST channel
DynamicConfiguration dynConf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); 
DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/REST", "REST_URL"); dynConf.put(key, dyn_res); 
return "";

the channel will be configured like this

Therefore the URL can be set as per requirement from the UDF itself.

Regards

Anupam

Answers (1)

Answers (1)

0 Kudos

Dear Carlo,

user pattern variable replacement concept to populate dynamic url from mapping. try to do work around on that.

as your mapping i am not clear otherwise i could have explained it.

regards,

Loordh