[BizTalk][Adapter][部署]BTS学习笔记1:建立一个简单的Biztalk数据交换项目(一)
Posted on 2008-05-23 13:11 personable 阅读(306) 评论(0) 编辑 收藏 举报目标:建立一个从计算机A到计算机B的数据交换项目。
环境:WIN2003+.NET 2003+Biztalk2004+SQLServer2000
1、准备工作:
1)建表。在计算机A和B上同样建立此表。
1
if exists (select 1
2
from sysobjects
3
where id = object_id('TestTable1')
4
and type = 'U')
5
drop table TestTable1
6
go
7![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
8
/*==============================================================*/
9
/* Table: TestTable1 */
10
/*==============================================================*/
11
create table TestTable1 (
12
TID int identity,
13
Data1 nvarchar(20) null,
14
Data3 nvarchar(20) null,
15
Data4 nvarchar(20) null,
16
Data2 nvarchar(20) null,
17
constraint PK_TESTTABLE1 primary key (TID)
18
)
19
go
20![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
2
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
3
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
4
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
5
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
6
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
7
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
8
![](https://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif)
9
![](https://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif)
10
![](https://www.cnblogs.com/images/OutliningIndicators/ExpandedBlockStart.gif)
11
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
12
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
13
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
14
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
15
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
16
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
17
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
18
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
19
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
20
![](https://www.cnblogs.com/images/OutliningIndicators/None.gif)
2)在计算机A上准备几条数据:)
2、开始项目
1)计算机A上建立一个BTS项目。
2)添加一个适配器,生成的文件命名为TestTable1_XML.xsd和SendData.odx:
3)加入接收形状和一个接收端口,并连接。
加入一个端口:
4)加入一个发送形状和发送端口,并连接起来。
5)加入强名称,并部署项目。
“所有程序”-“Microsoft Visual Studio .NET 2003”-“Visual Studio .NET 工具”-“Visual Studio .NET 2003 命令提示”
激活接收形状
6)配置接收发送端口。
添加发送端口
![](https://www.cnblogs.com/images/cnblogs_com/qwerttyy/zzzzzTemp12.jpg)
创建一个新接收端口:
7)绑定端口并启动流程
7)查看XML文档。
OK,发送流程完成,到这里就完成了一半了。
接下来是接收流程了。