适用于 Oracle 电子商务套件的 Microsoft BizTalk 适配器根据 Oracle E-Business Suite 中的目标对象,提供与轮询相关的各种入站操作。 对于接口表、接口视图、表和视图,将呈现单个轮询操作,而你可以对 PL/SQL API、函数和存储过程执行多个自定义轮询操作。
通过在 Oracle 电子商务适配器中设置绑定属性来配置轮询操作。 有关这些绑定属性的详细信息,请参阅 阅读有关 BizTalk Adapter for Oracle E-Business Suite 绑定属性的信息。 设置 PollingStatement 绑定属性,以便为轮询查询指定 SQL 语句、存储过程、函数或包中的过程。 此查询的结果集作为数据返回到轮询操作中的代码。
轮询操作的消息结构
下表显示了各种轮询操作的 XML 消息结构。
注意
请参阅表后面的实体说明。
| 操作 | 目标对象 | XML 消息 | 说明 | 
|---|---|---|---|
| 轮询 | - 接口表 - 接口视图 -表 -视图 | <?xml version="1.0" encoding="utf-8" ?>  <Poll xmlns="[Version]/[TargetObject]/[Schema]/[TargetObject_Name]">    <DATA>      <SelectRecord>        <Column1>[Value]</Column1>        <Column2>[Value]</Column2>        …        </SelectRecord>    </DATA> </Poll> | 例如,针对接口表的轮询操作的 XML 消息将如下所示: <?xml version="1.0" encoding="utf-8" ?>  <Poll xmlns="[Version]/InterfaceTables/[Schema]/[InterfaceTable_Name]">    <DATA>      <SelectRecord>        <Column1>[Value]</Column1>        <Column2>[Value]</Column2>        …        </SelectRecord>    </DATA> </Poll> | 
| [CustomPollingOperation] | - PL/SQL API - 存储过程 -功能 | PL/SQL API <?xml version="1.0" encoding="utf-8" ?>  <[CustomPollingOperation] xmlns="[Version]/PollingPackageAPis/[Schema]/[PL/SQL API]">    <[CustomPollingOperation]Result>[Value]</[CustomPollingOperation]Result> </[CustomPollingOperation]>函数 <?xml version="1.0" encoding="utf-8" ?> <[CustomPollingOperation] xmlns="[Version]/PollingFunctions/[Schema]">    <[CustomPollingOperation]Result>      <COL1>[Value]</COL1]>      <COL2>[Value]</COL2>      …    </[CustomPollingOperation]Result> </[CustomPollingOperation]>存储过程 <?xml version="1.0" encoding="utf-8" ?>  <[CustomPollingOperation] xmlns="[Version]/PollingFunctions/[Schema]">    <[CustomPollingOperation]Result>      <PRM1>[Value]</PRM1>      <PRM2>[Value]</PRM2>      …    </[CustomPollingOperation]Result> </[CustomPollingOperation]> | 轮询操作中结果集的结构由目标对象中元素的数据类型确定。 | 
实体说明:
[版本] = http://schemas.microsoft.com/OracleEBS/2008/05。
[CustomPollingOperation] = 自定义轮询操作的名称。
[Schema] = Oracle 架构的名称。 例如 SCOTT。
[PL/SQL API] = 对其执行自定义轮询操作的 PL/SQL API 的名称。