I want to get the MsgId from the msgHeader of an incoming message from a client to stamp into the CorrelId field on an outgoing reply for the client to match on it. On the IS, I have created a listen MsgHandler with a Message Service and an Exception Service. The only way I can get the MsgId in the msgHeader in the Message service is to Modify the Value of an Output String parameter for this service, even though message is not visible in the pipeline(?):
This gives the MsgId string.
There is a problem with using this MsgId string anyway and I should be using the MsgIdByteArray but I cannot get it in the same way as the CorrelId above as in the pipeline I cannot Modify the Value of an Object. There are a couple of questions I am asking here:
Do I need to modify the service generated by the creation of the listen MsgHandler to have it pass the msgHeader into its Message Service?(I have tried most ways but can’t seem to make any work. I get a ‘Copy failed: No source data available’ server log message when I try to access it)
If not, how can I see the msgHeader in the Message Service?
Is there some way I can Modify the value of an Object in the pipeline?