on 2013 Jul 25 3:05 PM
Hi
I am working on XI 7.0 and I have to use SOAP adapter at sender side for the nect scenario. The requiremet expects few values in the message header to come in the query string. Can I get message id and sender service in the the query string if i click do not use soap envelope and use query string options. Where can I find the values populated in the query string in SXMB_MONI? I may have to use the value for determining interface.
Can we get all the required values in query string?
Radhika
Hi Radhika,
Both message id and sender service are available as runtime constants.
For message id, you can use the code below while there is a standard function available in graphical mapping for Sender service.
java.util.Map map = container.getTransformationParameters();
String messageID = (String)map.get(StreamTransformationConstants.MESSAGE_ID);
return messageID;
I don't think it has anything to do with envelope or query string.
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Radhika,
Refer to this document, page 17
Also read:
http://scn.sap.com/thread/2048479
http://scn.sap.com/thread/479487
Hope it helps!
Ambrish
using the map object
A map object enables you to access message-mapping runtime constants. Some mapping programs need to access fields in the message header. To facilitate this, the mapping runtime stores the values of the fields as key-value pairs.
Examples of Key-Value Pairs in the Map for Runtime Constants
“MessageClass” “ApplicationMessage”
“ProcessingMode” “synchronous”
“ReceiverNamespace” “http://demo.com/xi/example”
To read the fields of the message header at runtime, you must access the map for the runtime constants. However, accessing the map using the key literals listed above would render the program code invalid if a key is changed at some point in the future. As an alternative, the mapping API provides string constants that you can use instead of key literals to access the map.
map = container.getTransformationParameters();
headerField = (String) map.get(
StreamTransformationConstants.INTERFACE_NAMESPACE);
AbstractTrace at = container.getTrace();
at.addInfo(headerField);
return a;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.