def release(self, soap_data): header, request = helper.parseRequest(soap_data) d = self.provider.release(header, request.connectionId) d.addCallbacks( lambda _: helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa, request.connectionId)) return d
def reserveCommit(self, soap_data, request_info): header, confirm = helper.parseRequest(soap_data) d = self.provider.reserveCommit(header, confirm.connectionId, request_info) d.addCallbacks( lambda _: helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa, confirm.connectionId)) return d
def queryRecursive(self, soap_data): header, query = helper.parseRequest(soap_data) d = self.provider.queryRecursive(header, query.connectionId, query.globalReservationId) d.addCallbacks( lambda _: helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa, )) return d
def queryRecursive(self, soap_data, request_info): header, query = helper.parseRequest(soap_data) d = self.provider.queryRecursive(header, query.connectionId, query.globalReservationId, request_info) d.addCallbacks(lambda _ : helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa,)) return d
def terminate(self, soap_data, request_info): header, request = helper.parseRequest(soap_data) d = self.provider.terminate(header, request.connectionId, request_info) d.addCallbacks(lambda _ : helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa, request.connectionId)) return d
def reserveCommit(self, soap_data): header, confirm = helper.parseRequest(soap_data) d = self.provider.reserveCommit(header, confirm.connectionId) d.addCallbacks(lambda _ : helper.createGenericProviderAcknowledgement(header), self._createSOAPFault, errbackArgs=(header.provider_nsa, confirm.connectionId)) return d