BizTalk Gurus

What does MsgA(*) = MsgB(*) do?

Latest post 10-29-2007 12:55 PM by nickh. 4 replies.
  • 10-24-2007 2:54 AM

    What does MsgA(*) = MsgB(*) do?

    Some code I have picked up has 2 lines:

     

    SendMessage = DetailsMessage;

    SendMessage(*) = DetailsMessage(*);

     Inside a Construct Message.  What is the difference in meaning of these two assignments?

  • 10-24-2007 3:29 AM In reply to

    • nickh
    • Top 10 Contributor
    • Joined on 03-14-2007
    • Cambridge, UK
    • Posts 215

    Re: What does MsgA(*) = MsgB(*) do?

    mchallis,

    The first line copies the message *content* - e.g. xml. The second line copies the message content *plus* the message *context*.

    Stephen W. Thomas has a quick overview here - http://geekswithblogs.net/sthomas/archive/2005/04/26/38286.aspx 

    Hope this helps,

    Nick. 

    --

    Nick Heppleston

    http://www.modhul.com - At the Coalface: A BizTalk Blog

  • 10-24-2007 7:16 AM In reply to

    • tomasr
    • Top 10 Contributor
    • Joined on 09-03-2006
    • Colombia
    • Posts 231

    Re: What does MsgA(*) = MsgB(*) do?

    Nick, Actually, I seem to remember the first one copies both the message contents *and* the message context, while the second copies *only* the message context.

    http://winterdom.com/

  • 10-25-2007 1:15 PM In reply to

    Re: What does MsgA(*) = MsgB(*) do?

    Yep, I think Tomas is correct. 

    The key is… when you do a transform inside an Orchestration the contaxt isn’t copied for you.  So the 2nd line (from above) would be needed to copy all the context data over if you need it inside the 2nd message.

    This is not the same behavior as mapping on the Receive Port.

    Stephen W. Thomas

    Stephen W. Thomas http://www.BizTalkGurus.com

  • 10-29-2007 12:55 PM In reply to

    • nickh
    • Top 10 Contributor
    • Joined on 03-14-2007
    • Cambridge, UK
    • Posts 215

    Re: What does MsgA(*) = MsgB(*) do?

    Gents, I agree - my bad.

    Please see:

    So what does Msg2(*) = Msg1(*) do exactly?

    Nick.

    --

    Nick Heppleston

    http://www.modhul.com - At the Coalface: A BizTalk Blog

Page 1 of 1 (5 items) | RSS