Expression shape

Home Page Forums BizTalk 2004 – BizTalk 2010 Expression shape

Viewing 1 reply thread
  • Author
    Posts
    • #16057

      can we construct messages in expession shape so that the constructed messages can be send to send port. 

    • #16060

      Yes you can do this, here's a short sample:

      construct SQLinserterrorMSG

      {

      // Use the Variable varXMLDom to load in some XML

      varXMLDOM.LoadXml(@"<ns0:errormsg xmlns:ns0=""http://SQLinsertErrorMSGsSchema""><ns0:sync><ns0:after><ns0:errormsg &#8230;. FileID=""10"" FelTEXT=""errorTEXT_10""/></ns0:after></ns0:sync></ns0:errormsg>");

      // Assign the BizTalk message to the XMLDom variable. Note this can be accomplished becuase a BizTalk message derives from an XMLDocument.

      SQLinserterrorMSG = varXMLDOM;

      // If there are no distinguished fields, then XPATH can be used to set the attributes in the message.

      xpath(SQLinsertMSG , "//@FileID") = "99999";

      xpath(SQLinsertMSG, //@errorTEXT) = "some text…";

      }

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.