Skip to Content
avatar image
Former Member

ASA Custom attribute is not working in REST receiver adapter channel

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 16 at 07:27 AM

    Hi Prashanthi,

    What values are you getting ? Or any error ?

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Ashish Goel

      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

  • Apr 18 at 08:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded