[BTS]a non-serializable object type 'System.Xml.XmlNode varXmlNode' can only be declared within an atomic scope or service

How to use XmlNode in BizTalk?

I need use XmlNode to query a message in biztalk.  By default can't user xmlnode in vs.

Solution

 

 

 

 

 

// Get Xml Body 
varXmlData = MsgEventMessage;
varXPath = "/*[local-name()='Root']/*[local-name()='Data']/*[local-name()='XmlBody']";
varXmlNode = varXmlData.SelectSingleNode(varXPath);
varXmlString = varXmlNode.InnerXml;

 

posted on 2022-09-08 22:11  徐中  阅读(23)  评论(0编辑  收藏  举报

导航