EndQuery operation


The EndQuery operation terminates the query cycle. The EndQuery operation is invoked by the client after it has obtained the query results through the RetrieveQueryResults operation. In the EndQuery operation, the client sends the ID associated with the query cycle back to the BMC Impact Integration Web Services server, notifying the server that the query has terminated.

Error
Warning

You must invoke the EndQuery operation to terminate the query cycle. Otherwise, the query ID (resultHandle) is not cleaned up in the BMC Impact Integration Web Services server and the cell, and the connection with the specified cell is not closed. As long as the query is not closed, it will continue to take resources from the cell.

WSDL for EndQuery operation

<wsdl:operation name="EndQuery" parameterOrder="inargs">
<wsdl:input message="tns:EndQuery_Request"/>
<wsdl:output message="tns:EndQuery_Response"/>
<wsdl:fault message="tns:Execution_Fault" name="Execution_Fault"/>
</wsdl:operation>

WSDL messages for EndQuery

<wsdl:message name="EndQuery_Request">
<wsdl:part element="elems:EndQuery" name="inargs"/>
</wsdl:message>
<wsdl:message name="EndQuery_Response">
<wsdl:part element="elems:NoValue_output" name="outargs"/>
</wsdl:message>

XSD schema for request and response for EndQuery

<xsd:element name="EndQuery">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="resultHandle" nillable="true" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>

Parameters for EndQuery

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC ProactiveNet 9.6