如何发送静态xml。 [英] How to send static xml.

查看:95
本文介绍了如何发送静态xml。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Biztalk中发送未转换的静态xml?这个xml将驻留在我的biztalk项目中。

谢谢,
Rod

How can I send non-transformed static xml in Biztalk? This xml would reside in my biztalk project.

Thanks,
Rod

推荐答案

我假设您要将一些任意XML文件发送到指定的位置。您可以使用XmlDocument类型来避免创建架构。在业务流程中将消息msgXml声明为System.Xml.XmlDocument的类型。要将文档加载到此消息中,请在赋值形状中执行此操作:

msgXml = new System.Xml.XmlDocument();
msgXml.Load(xmlFileUrl);

后跟发送绑定到发送端口的形状(使用默认的Passthrough管道)。您可以获得更多的花哨,例如使用.Net帮助程序类从数据库或嵌入式资源文件加载文件,但这一切都归结为使用XmlDocument类型而不是特定模式,因为您既不需要转换也不需要访问消息数据。
I assume you want to send some arbitrary XML file to the specified location. You can use XmlDocument type to avoid creating schema. Declare message msgXml as type of System.Xml.XmlDocument in the orchestration. To load your document into this message do this in the assignment shape:

msgXml = new System.Xml.XmlDocument();
msgXml.Load(xmlFileUrl);

Followed by the send shape bound to the send port (use default Passthrough pipeline). You can get much more fancy than that, for example using .Net helper class to load file from the database or embedded resource file but it all boils down to using XmlDocument type rather than specific schema since you don't need neither transformation nor access to the message data.


这篇关于如何发送静态xml。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆