sqloptions:sqlSession 标头元素

sqloptions:sqlSession 选项包括 SOAP 标头并显示为 SOAP 标头时,该选项可使客户端控制请求的会话。

标头由一个元素组成,称为**“sqloptions:sqlSession”。该元素有五个可选属性:initiateterminatesessionIdtimeouttransactionDescriptor**。有关各属性的用法和行为的详细信息,请参阅使用 SOAP 会话

在一个请求或响应中,只能有一个 sqloptions:sqlSession 选项实例。多个选项实例将会生成错误。

下面是 sqloptions:sqlSession 选项的架构片断:

<xs:element name="sqlSession form="qualified">
    <xs:annotation>
        <xs:documentation>
            SQL Server SOAP Session
        </xs:documentation>
    </xs:annotation>
    <xs:complexType>
        <xs:attribute
          name="initiate"
          default="false"
          type="xs:boolean"
          form="unqualified">
            <xs:annotation>
                <xs:documentation>
                    TRUE to request to start a new session
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute
          name="terminate"
          default="false"
          type="xs:boolean"
          form="unqualified">
            <xs:annotation>
                <xs:documentation>
                    TRUE to request to terminate an existing session
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="sessionId" type="xs:base64Binary" form="unqualified">
            <xs:annotation>
                <xs:documentation>
                    The ID of a session
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute name="timeout" type="xs:int" form="unqualified">
            <xs:annotation>
                <xs:documentation>
                    The timeout in seconds before the session expires.
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
        <xs:attribute
          name="transactionDescriptor"
          type="xs:base64Binary"
          form="unqualified">
            <xs:annotation>
                <xs:documentation>
                    The descriptor of a transaction to enlist to.
                </xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:element>

请参阅

参考

SOAP 扩展标头

帮助和信息

获取 SQL Server 2005 帮助