Skip to Content
0

ASA Custom attribute is not working in REST receiver adapter channel

Apr 13 at 07:50 PM

66

avatar image

Hi all,

I am wondering as why my rcv REST adapter channel is accepting the custom defined attribute which i am passing through my UDF.

Below are the steps i have followed so far and please let me know if any suggestion:

1) In my MM UDF, i have defined two custom attributes to use in my rest rcv channel configuration

public String SetASMA(String Digest, String Digesttime, Container container) throws StreamTransformationException{

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);


DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/REST","HeaderDigest");


DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/REST","HeaderDigesttime");


conf.put(key1, Digest);
conf.put(key2, Digesttime);


return " ";

}


2) Screenshot of my rcv channel

rest-channel2.jpg

rest-channel2.jpg (43.7 kB)
rest-channel1.jpg (90.0 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Ashish Goel Apr 16 at 07:27 AM
0

Hi Prashanthi,

What values are you getting ? Or any error ?

You can check in message monitoring what values you are getting.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Ashish,

In monitoring, i see the values in the dynamic configuration but those are not getting populated/consumed in the pattern element names which are being used in CC.

FYI: Have replaced with xpath expression which is working fine but trying to understand as why custom attributes are not being consumed through ASMA.

Thanks,

Prasanthi

0

I don't see any configuration issue.

In which PI/PO SP version are you working ? Seems this issue is not there in higher patches. Raise OSS to SAP.

Thanks,

Ashish

0

Hi Ashish,

We are on PI 7.4 SP12. As said, could be adapter patch issue.Will update if get to know anything.

Thanks,

Prasanthi

0
Manoj K 5 days ago
0

1. In your UDF assign values by :

conf.put(key1, Digest);
conf.put(key2, Digesttime);

2. Enable Pattern Variable Replacement :

3. Add Http Headers

Br,

Manoj


rest1.png (11.4 kB)
rest2.png (4.4 kB)
rest2.png (4.7 kB)
Share
10 |10000 characters needed characters left characters exceeded