Improve protocol resolution from service url

Do not rely on provided protocol params which are being resolved later