可以在 API 的输入数据对象中传递 RequestControl,以指示适配器如何处理请求以及如何检查异步调用状态。
RequestControl 在 API 调用的输入数据对象中传递。其用于使用在 ResponseControl 中收到的凭单来检查异步调用的状态。RequestControl 还用于使用“requiredInteractionStyle”属性来指示适配器如何处理请求
<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>
<wim:controls xsi:type="wim:RequestControl"
ticket="AsyncLDAP1:1113940307424:-1278154994"/>