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();}
}
通过类似这样的方案,就可以将附件添加到消息中了
查看全文
相关阅读:
python实现梯度下降法
sklearn评估模型的方法
sklearn进行拟合
装饰器原理-代码解释
多进程+协程 处理IO问题
mongodb增删改查
关于Redis在Linux手动安装配置
MongoDB安装配置及使用
键盘没有小键盘怎么办?怎么打开屏幕软键盘?
WebService中WSDL和WADL(转)
原文地址:https://www.cnblogs.com/xuzhong/p/236283.html
最新文章
XLSReadWrite使用
如何用SQL语句查询Excel数据?
SQL语句之按in排序
Delphi操作Word的方法
java 错误: 找不到或无法加载主类解决方法
JAVA list 列表 字典 dict
B站大数据资源全套视频
TensorFlow 模型保存和导入、加载
cnn 卷积神经网络 人脸识别
有道翻译接口获取
热门文章
python字典转datafarm,pandas
爬取微博文章内容,关键字搜索爬取
TCP/IP 网络编程的理解
灰色预测 GM11模型
关于scala 集合 List Map Set
TensorFlow非线性拟合
auto-keras 测试保存导入模型
关于auto-keras训练cnn模型
pandas 对时间与日期处理
xgboost与sklearn的接口
Copyright © 2011-2022 走看看