code: def handleResponse(self, data):
          
  
          self.factory.response_xml = data
  
          if self.status == '200':
              self.factory.parseErrorAndResponse(data)
  
          self.factory.deferred = None
          self.transport.loseConnection()
docs: Called when all response data has been received.