步骤 3:使用 Siebel 适配器测试已迁移的应用程序
完成时间: 5 分钟
目的: 在此步骤中,将通过对帐户业务组件执行插入操作来测试迁移的应用程序。 为此,请删除符合使用 vPrev Siebel 适配器生成的架构的请求消息。
必备条件
通过将 BizTalk 业务流程中的逻辑端口映射到 BizTalk Server 管理控制台中的物理端口来配置 BizTalk 应用程序。
将 BizTalk 应用程序配置为使用基于 WCF 的 Siebel 适配器的 WCF-Custom 发送端口。
测试迁移的应用程序
从 Siebel_BussComp_Migration 文件夹中,复制 AccountInsert.xml 请求消息。 此请求消息符合 vPrev Siebel 适配器生成的架构。 使用出站映射,WCF-Custom 发送端口会将其转换为符合基于 WCF 的 Siebel 适配器的架构,并将其发送到 Siebel 系统。
<Insert xmlns="http://schemas.microsoft.com/[Siebel://Business Objects/Account/Account]"> <AccountInsertRecordSet> <AccountInsertRecord xmlns="http://schemas.microsoft.com/Business_Objects"> <Currency_Code>USD</Currency_Code> <Customer_Account_Group>Sold-To-Party</Customer_Account_Group> <Location>Location_1</Location> <Main_Phone_Number>012345678</Main_Phone_Number> <Name>John_Smith</Name> <Party_Name>Party_Name_1</Party_Name> <Primary_Address_Id></Primary_Address_Id> </AccountInsertRecord> </AccountInsertRecordSet> </Insert>
将请求消息粘贴到映射到文件接收位置的文件夹。
业务流程使用请求消息并将其发送到 Siebel 系统。 Siebel 系统的响应在架构中接收,该架构符合基于 WCF 的 Siebel 适配器的架构。 使用入站映射,WCF-Custom 发送端口将其转换为 vPrev Siebel 适配器的架构。 Siebel 系统的响应将保存到定义为业务流程的一部分的其他文件位置。 上述请求消息的响应为:
<?xml version="1.0" encoding="utf-8"?> <ns0:InsertResponse xmlns:ns0="http://schemas.microsoft.com/[Siebel://Business Objects/Account/Account]" xmlns:exposed="http://schemas.microsoft.com" xmlns:Business_Objects="http://schemas.microsoft.com/Business_Objects"> <ns0:RowIDList> <exposed:String>1-8EWWZ</exposed:String> </ns0:RowIDList> </ns0:InsertResponse>