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

Assigned Tags

Related questions

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.