How to add information from one message to another message?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > How to add information from one message to another message?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

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


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-06-06 12:18 PM

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






[ Post a follow-up to this message ]



    RE: How to add information from one message to another message?  
Michael Elizarov [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-07-06 12:19 AM

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] 






[ Post a follow-up to this message ]



    RE: How to add information from one message to another message?  
Sujesh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-14-06 06: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 'us
e
> of unitilized M2' in the message assignment / contruct shape.
> Is there a possibilty to change an existing message?
>
> Erik
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:40 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register