on 02-13-2018 8:06 AM
Good Morning,
I´m searching for a solution to find out which user has effected the incoming soap-message in the PI (Dual Stack). This should be read out at runtime in the message mapping (for example java-mapping).
I want a general EDI-Input Scenario for external partners and so i need to know at runtime which user has sent the message. The information i need is written in the Header-Information of the SOAP-Message in the bullet "RunTime".
Any idea how a java-mapping for example could look like?
Hi Max!
Sender SOAP adapter has an ASMA attribute called "SRemoteUser". Didn't you try to make use of it?
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
thank you for the fast answer.
I´ve read about that attribute, but i can´t bring it realy in connection to my problem.
How can i make use of it in the message mapping or use it to proove if the customer-nr in the payload is right to the User? Is it possible to read this attribute with java-Mapping?
Regards, Max.
Hi Max!
These attributes are sent within message header in "Dynamic Attributes" section:
Sure, you can read it using any kind of mapping. Here is the code snippet for pure java mapping:
public void transform(TransformationInput in, TransformationOutput out)throws StreamTransformationException {
DynamicConfiguration dc = in.getDynamicConfiguration();
DynamicConfigurationKey remUsrKey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP", "SRemoteUser");
String remoteUser = dc.get(remUsrKey);
}
Regards, Evgeniy.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.