RequestControl 数据对象

可以在 API 的输入数据对象中传递 RequestControl,以指示适配器如何处理请求以及如何检查异步调用状态。

RequestControl 在 API 调用的输入数据对象中传递。其用于使用在 ResponseControl 中收到的凭单来检查异步调用的状态。RequestControl 还用于使用“requiredInteractionStyle”属性来指示适配器如何处理请求

RequestControl 数据对象的结构由以下内容组成:
abandon
是一个布尔属性,如果设置为 true,那么将使应用程序调用能够结束异步操作。缺省设置为 false。
ticket
是不要求调用者进行解释的字符串。在调用完成后,complete 标志设置为 true,并且返回的数据对象包含调用的结果。
requiredInteractionStyle
指示适配器处理请求的方式:
sync
synchronous
async
asynchronous
syncOrAsync
synchronous 或 asynchronous

XML 模式定义

以下是 RequestControl 数据对象的 XML 模式定义。
  <xsd:complexType name="RequestControl">
    <xsd:complexContent>
      <xsd:extension base="Control">
        <!-- supported interaction styles are: sync, async, and syncOrAsync -->
        <xsd:attribute name="requiredInteractionStyle" type="xsd:token"/>
        <xsd:attribute name="ticket" type="xsd:string"/>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

样本数据对象

以下是一个样本 RequestControl 数据对象。其用于使用凭单来检查异步的状态。
<wim:controls xsi:type="wim:RequestControl"
ticket="AsyncLDAP1:1113940307424:-1278154994"/>


使用条款 | 反馈