zoukankan
html css js c++ java
[BizTalk]让BizTalk消息中携带附件.
Use System.Xml.XmlDocument as the part type for the message, this is treated
as a generic stream of data. Then you can use a stream of data for this
part.
实现这样一个功能:
1.访问SQL Reporting Service得到一个报表的数据
2.将报表数(stream)赋给BizTalk中的一个消息中。
使用
System.Xml.XmlDocume数据类型.
代码如下:
public
static
void
CreateReportPart(XLANGMessage msg,
int
partIndex,
string
reportName)
{
System.IO.Stream reportStream
=
ReportServicesProxy.GetReport(reportName);
ReportStreamFactory factory
=
new
ReportStreamFactory(reportStream);
msg[partIndex].LoadFrom(factory);
}
public
class
ReportStreamFactory : IStreamFactory
{
System.IO.Stream _stream;
public
ReportStreamFactory(System.IO.Stream stream)
{_stream
=
stream;}
public
System.IO.Stream CreateStream()
{
return
_stream;}
public
void
Dispose()
{_stream.Close();}
}
通过类似这样的方案,就可以将附件添加到消息中了
查看全文
相关阅读:
volumetric rendering ---fog/ light/cloud
strand based hair rendering
一个相当复杂的延迟管线
wenti
ubunt tmux X Error of failed request
Python编程练习题
ubuntu15.04 安装 pylab失败,先记下来,漫漫看
翻译:打造基于Sublime Text 3的全能python开发环境
关于web2py外网访问,图形界面不显示等问题的解决办法
yii2中gii外网访问的配置方法
原文地址:https://www.cnblogs.com/xuzhong/p/236283.html
最新文章
VisualStudio自定义代码段_方法一
常用面试sql语句
C#并行和多线程编程_(1)认识Parallel
MVC-列表页操作按钮调用脚本
MVC-处理时间格式
数据结构与算法之链表
数据结构与算法之归并排序
数据结构与算法之选择排序
数据结构与算法之交换排序
数据结构与算法之插入排序
热门文章
寝室远程登录连接实验室的电脑(亲自测试通过)
Linux/Unix中系统级IO
Java线程的两种实现形式
flat shading/provoking vertex
Nvidia GPU architecture
vulkan multi-thread
对vulkan subpass的理解
hcs 的w的理解
简易版的渲染管线 问答题 graphic renderpipeline
normal map/tbn
Copyright © 2011-2022 走看看