runxinzhi.com
首页
百度搜索
[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();}
}
通过类似这样的方案,就可以将附件添加到消息中了
相关阅读:
文本信息检索基本知识【转】
单纯形【转】
云飘忽不定?且看多种多样的云存储应用【转】
海量数据来临 分层存储才是解决之道【转】
伽玛函数_gamma
设计模式理解创建模式
Memory management demo from TCPL
Welcome to asm!
Monokai scheme for Qt
Astyle for qtcreator
原文地址:https://www.cnblogs.com/xuzhong/p/236283.html
最新文章
cv::CascadeClassifier类在多次读取新版本xml模型时的错误及其修正[转]
opencv各版本之间区别
DirectX11 Toturial1
几个常识
git用法
gtest用法速记
拦截导弹
窗口函数
poj1961 Period
hdu1016 Prime Ring Problem
热门文章
Exponential family(指数簇)
极大似然估计
LinuxC函数库详解词典(转)
Normal distribution(正态分布,高斯分布)
什么是固态硬盘及其优缺点【转】
大型WEB服务器【转】
竹石 诗歌欣赏
计算语言学(Computational Linguistics)【转】
字符串拷贝和内存拷贝函数(转)
Dirichlet distribution
Copyright © 2020-2023
润新知