BizTalk Server Orchestration - How to add information from one message to another message?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > June 2006 > How to add information from one message to another message?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to add information from one message to another message?
Erik

2006-06-06, 7:18 am

Hi all,

I'm looking for a solution to add information which is contained message
(M2) I received by a web service invocation in the restulting response
message to another message (M1) I received early in the orchestration.
I tried to use a message assignment shape to set the field of M1 where the
information should be added / updated, but I always get the buid error 'use
of unitilized M2' in the message assignment / contruct shape.
Is there a possibilty to change an existing message?

Erik

Michael Elizarov [MSFT]

2006-06-06, 7:19 pm

Eric,

One thing that you need to keep in mind is that messages are immutable. So
if your orchestration looks like:

Receive (M1)
Receive (M2)

UpdateM1WithDataFromM2

You will meed to construct a third message. Then in assignment shape you
will say something like:

M3(*) = M1(*); // copy all fields from M1
M3.myValue = M1.value;

Hope that helps.

-- Michael

--------------------[vbcol=seagreen]
the[vbcol=seagreen]
'use[vbcol=seagreen]

Sujesh

2006-06-14, 1:19 am

Erik,

You cannot change an existing message. Messages are immutable in BizTalk.
You have to make a copy of the message, which you want to update and then
update the right values.

"Erik" wrote:

> Hi all,
>
> I'm looking for a solution to add information which is contained message
> (M2) I received by a web service invocation in the restulting response
> message to another message (M1) I received early in the orchestration.
> I tried to use a message assignment shape to set the field of M1 where the
> information should be added / updated, but I always get the buid error 'use
> of unitilized M2' in the message assignment / contruct shape.
> Is there a possibilty to change an existing message?
>
> Erik
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com