@staticmethod
def process_response(response):
    'Process SRFax SOAP response'
    if (not response):
        raise SRFaxError('INVALIDRESPONSE', 'Empty response', retry=True)
    if response.ok:
        response = response.json()
        if (('Status' not in response) or ('Result' not in response)):
            raise SRFaxError('INVALIDRESPONSE', ('Status and/or Result not in response: %s' % response), retry=True)
        result = response['Result']
        LOGGER.debug(('Result: %s' % result))
        if (response['Status'] != 'Success'):
            errmsg = result
            if (isinstance(errmsg, list) and (len(errmsg) == 1) and ('ErrorCode' in errmsg[0])):
                errmsg = errmsg[0]['ErrorCode']
            raise SRFaxError('REQUESTFAILED', errmsg)
        if (result is None):
            result = True
        return result
Process SRFax SOAP response
@staticmethod
def process_response(response):
    
    if (not response):
        raise SRFaxError('INVALIDRESPONSE', 'Empty response', retry=True)
    if response.ok:
        response = response.json()
        if (('Status' not in response) or ('Result' not in response)):
            raise SRFaxError('INVALIDRESPONSE', ('Status and/or Result not in response: %s' % response), retry=True)
        result = response['Result']
        LOGGER.debug(('Result: %s' % result))
        if (response['Status'] != 'Success'):
            errmsg = result
            if (isinstance(errmsg, list) and (len(errmsg) == 1) and ('ErrorCode' in errmsg[0])):
                errmsg = errmsg[0]['ErrorCode']
            raise SRFaxError('REQUESTFAILED', errmsg)
        if (result is None):
            result = True
        return result