def process_request(self, method, params):
    'Process SRFax SOAP request'
    params['action'] = method
    try:
        response = requests.post(self.url, json=params)
    except Exception as exc:
        raise SRFaxError('REQUESTFAILED', 'REST request failed', cause=exc, retry=True)
    return SRFax.process_response(response)
Process SRFax SOAP request
def process_request(self, method, params):
    
    params['action'] = method
    try:
        response = requests.post(self.url, json=params)
    except Exception as exc:
        raise SRFaxError('REQUESTFAILED', 'REST request failed', cause=exc, retry=True)
    return SRFax.process_response(response)