Get the URI from a given URL.

        :returns: URI within the URL

def get_services_url(url, base_url):
        """Get the URI from a given URL.

        :returns: URI within the URL

        """
        length = len(base_url)
        checks = ['http://', 'https://']
        for check in checks:
            if url.startswith(check):
                length = length + len(check)
                break

        result = url[length:]
        logger.debug('{0} from {1} equals {2}'
                     .format(base_url, url, result))
        return result