Article ID: 867803 - Last Review: January 11, 2005 - Revision: 2.2 A message that is outside a Construct Message shape may not update in BizTalk Server 2004INTRODUCTIONIn Microsoft BizTalk Server 2004, if a schedule tries to assign an XML document to a message that is outside a Construct Message shape, the XML representation will be updated. However, the underlying message object will not be updated. For example, a schedule receives a message that is named Message_1 in a Receive shape. The message has a variable that is named xmlDoc of type XmlDocument and has the following code in an Expression shape: For example, a subsequent Expression shape contains the following code: MORE INFORMATIONMessages that are inside a BizTalk Server-based server are immutable. They cannot be modified as soon as they have been constructed. The initialization of a message and all modification to a message should occur in a Construct Message shape for the message. The XML representation for the message can still be retrieved and manipulated outside the Construct Message shape. However, the underlying message representation itself will not be updated with any changes to this XML representation. To update a message, a schedule should retrieve the original message, modify the data, and then assign the modified data to a new message that is inside a Construct Message shape for the new message. In the following example, a schedule has messages that are named Message_1 and Message_2. The schedule also has a variable that is named xmlDoc of type XmlDocument. To update the Message_1 message, follow these steps:
REFERENCESFor more information, see the "Constructing Messages" topic in the BizTalk Server 2004 Help.
| Article Translations
Audio/Video Resources
|
Back to the top
