BizTalk Transactions scopes and XMLDocument(non-serailizable).

XML document or XML Node is not serailizable.

so the rule of thumb in biztalk is that only serlizable types can be used in orchestrations with long running types and if you require to non serailizable type use them within a Atomic scope.

Now comes the interesting part xmldocument and xmlnode : if you create variable of type xmlnode , you will come across the following exception:

a non-serializable object type ‘System.Xml.XmlNode varXmlNode’ can only be declared within an atomic scope or service

but if you create a xmldocument variable the above error is no thrown why?  BizTalk engine by default serailizes xmldocument….

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: