SubmitTerminalTransaction

SubmitTerminalTransaction allows users to send terminal transactions using a session. SubmitTerminalTransaction takes a session token, a string request, and an intermediate response (optional). If you do not want to enter an intermediate response, leave the field blank.

The Intermediate Response was designed for use with Links on Apollo. When sending some terminal transactions, the host sends an intermediate response (e.g., Processing...Please Wait). In this case, if you do not designate an intermediate response, the first response from the host is returned, rather than the results that you want.

To use the Intermediate Response field, enter the exact text (or a portion of it) that you expect as the intermediate response. The SubmitTerminalTransaction method loops as long as it finds the intermediate text. The method returns the first response that does not contain the intermediate text. If the SubmitTerminalTransaction method times out before getting a response that does not contain the intermediate text, it returns the last message that it received.

Note:  If the intermediate text that you entered is also contained in the desired response, you have to wait until the SubmitTerminalTransaction method times out to get your response.

Refer to the sample of SubmitTerminalTransaction for an example of a request. The following samples illustrate how to use the SubmitTerminalTransaction method using SOAP.

SOAP Sample

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

Request

POST /XMLSelect/XMLSelect.asmx HTTP/1.1

Host: testws.galileo.com

Content-Type: text/xml; charset=utf-8

Content-Length: length

SOAPAction: "http://webservices.galileo.com/SubmitTerminalTransaction"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <SubmitTerminalTransaction xmlns="http://webservices.galileo.com">

      <Token>string</Token>

      <Request>string</Request>

      <IntermediateResponse>string</IntermediateResponse>

    </SubmitTerminalTransaction>

  </soap:Body>

</soap:Envelope>

Response

HTTP/1.1 200 OK

Content-Type: text/xml; charset=utf-8

Content-Length: length

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

  <soap:Body>

    <SubmitTerminalTransactionResponse xmlns="http://webservices.galileo.com">

      <SubmitTerminalTransactionResult>string</SubmitTerminalTransactionResult>

    </SubmitTerminalTransactionResponse>

  </soap:Body>

</soap:Envelope>