InteractiveSBProxy
Click here for a complete list of operations.

AgentCloseExperiment

Agent to ServiceBroker call, coupon is from the original ExecuteExperiment collection and is used to route to the issueing SB. Closes an Experiment on the ServiceBroker, if an ESS is associated with this experiment the ESS experiment is closed so that no further ExperimentRecords or BLOBs can be written to the ESS.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.POST /iLab_WSDL/I_ServiceBroker.asmx HTTP/1.1
Host: dexter.mit.edu
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ilab.mit.edu/iLabs/Services/AgentCloseExperiment"

<?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:Header>
<AgentAuthHeader xmlns="http://ilab.mit.edu/iLabs/type">
<agentGuid>string</agentGuid>
</AgentAuthHeader>
</soap:Header>
<soap:Body>
<AgentCloseExperiment xmlns="http://ilab.mit.edu/iLabs/Services">
<coupon xmlns="http://ilab.mit.edu/iLabs/type">
<couponId>long</couponId>
<issuerGuid>string</issuerGuid>
<passkey>string</passkey>
</coupon>
<experimentId>long</experimentId>
</AgentCloseExperiment>
</soap:Body>
</soap:Envelope>
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>
<AgentCloseExperimentResponse xmlns="http://ilab.mit.edu/iLabs/Services">
<AgentCloseExperimentResult>
<experimentId xmlns="http://ilab.mit.edu/iLabs/type">long</experimentId>
<status xmlns="http://ilab.mit.edu/iLabs/type">int</status>
<recordCount xmlns="http://ilab.mit.edu/iLabs/type">int</recordCount>
<creationTime xmlns="http://ilab.mit.edu/iLabs/type">dateTime</creationTime>
<closeTime xmlns="http://ilab.mit.edu/iLabs/type">dateTime</closeTime>
<lastModified xmlns="http://ilab.mit.edu/iLabs/type">dateTime</lastModified>
<issuerGuid xmlns="http://ilab.mit.edu/iLabs/type">string</issuerGuid>
</AgentCloseExperimentResult>
</AgentCloseExperimentResponse>
</soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.POST /iLab_WSDL/I_ServiceBroker.asmx HTTP/1.1
Host: dexter.mit.edu
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Header>
<AgentAuthHeader xmlns="http://ilab.mit.edu/iLabs/type">
<agentGuid>string</agentGuid>
</AgentAuthHeader>
</soap12:Header>
<soap12:Body>
<AgentCloseExperiment xmlns="http://ilab.mit.edu/iLabs/Services">
<coupon xmlns="http://ilab.mit.edu/iLabs/type">
<couponId>long</couponId>
<issuerGuid>string</issuerGuid>
<passkey>string</passkey>
</coupon>
<experimentId>long</experimentId>
</AgentCloseExperiment>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<AgentCloseExperimentResponse xmlns="http://ilab.mit.edu/iLabs/Services">
<AgentCloseExperimentResult>
<experimentId xmlns="http://ilab.mit.edu/iLabs/type">long</experimentId>
<status xmlns="http://ilab.mit.edu/iLabs/type">int</status>
<recordCount xmlns="http://ilab.mit.edu/iLabs/type">int</recordCount>
<creationTime xmlns="http://ilab.mit.edu/iLabs/type">dateTime</creationTime>
<closeTime xmlns="http://ilab.mit.edu/iLabs/type">dateTime</closeTime>
<lastModified xmlns="http://ilab.mit.edu/iLabs/type">dateTime</lastModified>
<issuerGuid xmlns="http://ilab.mit.edu/iLabs/type">string</issuerGuid>
</AgentCloseExperimentResult>
</AgentCloseExperimentResponse>
</soap12:Body>
</soap12:Envelope>

  • No labels