Beispiel #1
0
 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
Beispiel #2
0
 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
Beispiel #3
0
    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
Beispiel #4
0
    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
Beispiel #5
0
    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
Beispiel #6
0
 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