Skip to Content
author's profile photo Former Member
Former Member

How to access message-id during processing

Hello,

in our (synchronous) business scenario we want to report current message-id to the caller, so that it can be stored on the sender system for further reference. Is there any way to access the current message-id either in mapping or in some other way?

Thank you and best regards

Jakub Soucek

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 29, 2004 at 09:47 PM

    Message ID is not a part of the Payload so I don't think that you can access it in the Mapping. You should be able to access the Message ID from the SOAP Header you might want to parse the soap header on the receiving end and extract Message ID from the message. I am not sure if there is an easy way of doing this, but I will be interested to know one.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 30, 2004 at 09:08 AM

    Hi Jakub!

    > Is there any way to access the current message-id either

    > in mapping or in some other way?

    You can access the message ID using a container object in an advanced user-defined function of a mapping:

    import com.sap.aii.mapping.api.StreamTransformationConstants;

    String constant;

    java.util.Map map;

    map = container.getTransformationParameters();

    constant = (String) map.get(

    StreamTransformationConstants.MESSAGE_ID);

    return constant;

    Regards, Tanja

    Add comment
    10|10000 characters needed characters exceeded