def process_Submit(self):
    lab_server_id, experiment_specification, _, _ = serializer.parse_submit_request(request.data)
    ilab_request = {
        'operation' : 'submit',
        'payload'   : experiment_specification
    }
    reservation_status = weblab_api.api.reserve_experiment(ExperimentId(lab_server_id, 'iLab experiments'), json.dumps(ilab_request), '{}')
    weblab_api.ctx.other_cookies = {'weblab_reservation_id' : reservation_status.reservation_id.id}

    return """<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<SubmitResponse xmlns="http://ilab.mit.edu">
<SubmitResult>
<vReport>
<accepted>true</accepted>
<errorMessage />
<estRuntime>8</estRuntime>
</vReport>
<experimentID>61</experimentID>
<minTimeToLive>0</minTimeToLive>
<wait>
<effectiveQueueLength>%s</effectiveQueueLength>
<estWait>5</estWait>
</wait>
</SubmitResult>
</SubmitResponse>
</soap:Body>
</soap:Envelope>""" % reservation_status.position
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/weblab/core/web/ilab.py/process_Submit/original